Click or drag to resize

WebClient Class

Represents a web client that handles cookies and redirection.
Inheritance Hierarchy
SystemObject
  NScrapeWebClient

Namespace:  NScrape
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
public class WebClient : IWebClient

The WebClient type exposes the following members.

Constructors
  NameDescription
Public methodWebClient
Initializes a new instance of the WebClient class.
Top
Properties
  NameDescription
Public propertyCookieJar
Gets the cookies that have been collected by the WebClient in the course of executing requests.
Public propertyCode exampleUserAgent
Gets or sets the user agent for requests made by a WebClient.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnAddingCookie
Raises the AddingCookie event.
Protected methodOnProcessingResponse
Raises the ProcessingResponse event.
Protected methodOnSendingRequest
Raises the SendingRequest event.
Public methodCode exampleSendRequest(Uri)
Sends a GET request.
Public methodCode exampleSendRequest(WebRequest)
Sends a GET or POST request.
Public methodCode exampleSendRequest(Uri, Boolean)
Sends a GET request, specifying redirection.
Public methodCode exampleSendRequest(Uri, String)
Sends a POST request.
Public methodCode exampleSendRequest(Uri, String, Boolean)
Sends a POST request, specifying redirection.
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventAddingCookie
Occurs when a cookie is added to the CookieJar.
Public eventProcessingResponse
Occurs when a response has been received and is about to be processed.
Public eventSendingRequest
Occurs when a request is being sent.
Top
See Also