Provides an FTP-specific implementation of the WebRequest class.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Class FtpWebRequest _
	Inherits WebRequest
C#
public class FtpWebRequest : WebRequest

Examples

The following example demonstrates how to use FtpWebResponse.
            // Registers FtpWebRequest for the specified schema.
            WebRequest.RegisterPrefix ("ftp://", FtpWebRequest.Creator);
            // Creates a WebRequest for the specified URL. 
            WebRequest request = WebRequest.Create (url);
            // Sends the WebRequest and waits for a response.
            WebResponse response = request.GetResponse();
            Console.WriteLine("\nResponse Received. Trying to Close the response stream...");
            // Releases the resources of the response.
            response.Close();
            Console.WriteLine("\nResponse Stream successfully closed");
            

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    System.Net..::..WebRequest
      Rebex.Net..::..FtpWebRequest

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also