Méthode | Description | |
---|---|---|
CsqWebRequest ( string url ) : System |
Creates a new CsqWebRequest for a given URL using the default IHttpWebRequestFactory.
|
|
CsqWebRequest ( string url, IHttpWebRequestFactory webRequestFactory ) : System |
Creates a new CsqWebRequest for a URL using the provided IHttpWebRequestFactory. (Usually, you should use the default constructor, unless replacing the .NET framework HttpWebRequest object for testing or some other purpose)
|
|
Get ( ) : string |
Get the HTML using a synchronous HTTP request. This will return a string using the encoding specified by the MIME type. If the document uses an encoding specified in a content-type header, it will NOT be reflected by the results of this method.
|
|
Get ( IHttpWebRequest request ) : string |
Initiate a synchronous GET request from an existing IHttpWebRequest object
|
|
GetAsync ( Action |
Initiates an asynchronous GET request.
|
|
GetAsync ( IHttpWebRequest request, Action |
Initiates an asynchronous GET request from an IHttpWebRequest object.
|
|
GetEncoding ( IHttpWebResponse response ) : |
Return the character set encoding for an IHttpWebResponse, or null if no encoding is specified.
|
|
GetWebRequest ( ) : IHttpWebRequest |
Gets a new HttpWebRequest object for the URL bound to this CsqWebRequest.
|
|
Post ( ) : string |
Initiate an http POST request.
|
|
Post ( string url ) : string |
Initiate an http POST request.
|
|
Post ( string url, string>.IEnumerable |
Initiate an http POST request.
|
Méthode | Description | |
---|---|---|
GetResponseStreamReader ( IHttpWebRequest request ) : |
Gets response stream from a webrequest using the correct encoding. If the encoding is not specified, then the encoding will be detected from the BOM.
|
Méthode | Description | |
---|---|---|
ApplyOptions ( IHttpWebRequest request ) : void |
public CsqWebRequest ( string url ) : System | ||
url | string | /// URL of the document. /// |
Résultat | System |
public CsqWebRequest ( string url, IHttpWebRequestFactory webRequestFactory ) : System | ||
url | string | /// URL of the document. /// |
webRequestFactory | IHttpWebRequestFactory | /// The web request factory. /// |
Résultat | System |
public Get ( IHttpWebRequest request ) : string | ||
request | IHttpWebRequest | /// The request. /// |
Résultat | string |
public GetAsync ( Action |
||
success | Action |
/// A delegate that will be invoked with the response data structure upon successful resolution /// of the request. /// |
fail | Action |
/// A delegate that will be invoked with the response data structure upon failure. /// |
Résultat |
public GetAsync ( IHttpWebRequest request, Action |
||
request | IHttpWebRequest | /// The request. /// |
success | Action |
/// A delegate that will be invoked with the response data structure upon successful resolution /// of the request. /// |
fail | Action |
/// A delegate that will be invoked with the response data structure upon failure. /// |
Résultat |
public static GetEncoding ( IHttpWebResponse response ) : |
||
response | IHttpWebResponse | /// The response. /// |
Résultat |
protected GetResponseStreamReader ( IHttpWebRequest request ) : |
||
request | IHttpWebRequest | /// The request. /// |
Résultat |
public Post ( string url ) : string | ||
url | string | /// URL of the document. /// |
Résultat | string |
public Post ( string url, string>.IEnumerable |
||
url | string | /// URL of the document. /// |
postData | string>.IEnumerable | /// The information describing the post data to be sent this request. /// |
Résultat | string |