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
System..::..MarshalByRefObject
System.Net..::..WebRequest
Rebex.Net..::..FtpWebRequest