Click or drag to resize

IWebClient Interface

Represents a web client that handles cookies and redirection.

Namespace:  NScrape
Assembly:  NScrape (in NScrape.dll) Version: 0.4.0.0
Syntax
public interface IWebClient

The IWebClient type exposes the following members.

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 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.
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