C# 클래스 QualityBot.Util.WebRequestClient

A Wrapper for WebClientBase.
상속: WebRequestClientBase
파일 보기 프로젝트 열기: Ancestry/quality-bot 1 사용 예제들

공개 메소드들

메소드 설명
DoGetFile ( string url ) : byte[]

Gets the content from the Url as a byte stream.

DoGetFile ( string url, string filename ) : void

Gets the content from the Url and saves it as the specified file.

DoGetUrl ( string url ) : string

Gets the content from the Url.

DoGetUrl ( string url, string>.Dictionary valuesDictionary ) : string

Gets the content from the Url. Creates the query string from the dictionary provided.

DoGetUrl ( string url, HttpStatusCode &statusCode ) : string

Gets the content from the Url.

DoGetUrl ( string url, HttpStatusCode &statusCode, string &statusDescription ) : string

Gets the content from the Url.

DoGetUrlHeadOnly ( string url ) : Uri

Performs a HEAD request.

DoGetUrlHeadOnly ( string url, HttpStatusCode &statusCode ) : Uri

Performs a HEAD request.

DoGetUrlHeadOnly ( string url, HttpStatusCode &statusCode, string &statusDescription ) : Uri

Performs a HEAD request.

DoGetUrlHtml ( string url ) : HtmlAgilityPack.HtmlDocument

Gets the content from the Url as an Html Agility Pack document.

DoGetUrlXml ( string url ) : XmlDocument

Gets the content from the Url as xml.

DoPost ( string url, string data ) : string

Posts the data to the url provided.

DoPostForm ( string url, string>.Dictionary valuesDictionary ) : string

Posts a form to the Url.

EncodeJson ( string json ) : string

Url encodes json.

WebRequestClient ( ) : System

Initializes a new instance of the WebRequestClient class.

WebRequestClient ( CookieContainer cookies ) : System

Initializes a new instance of the WebRequestClient class.

비공개 메소드들

메소드 설명
WriteFormData ( string>.Dictionary dictionary ) : string

Given a dictionary, creates Form data to be used in a Post.

메소드 상세

DoGetFile() 공개 메소드

Gets the content from the Url as a byte stream.
public DoGetFile ( string url ) : byte[]
url string The url.
리턴 byte[]

DoGetFile() 공개 메소드

Gets the content from the Url and saves it as the specified file.
public DoGetFile ( string url, string filename ) : void
url string The url.
filename string The filename, absolute or relative.
리턴 void

DoGetUrl() 공개 메소드

Gets the content from the Url.
public DoGetUrl ( string url ) : string
url string The url.
리턴 string

DoGetUrl() 공개 메소드

Gets the content from the Url. Creates the query string from the dictionary provided.
public DoGetUrl ( string url, string>.Dictionary valuesDictionary ) : string
url string The url.
valuesDictionary string>.Dictionary The values dictionary { form key, value }.
리턴 string

DoGetUrl() 공개 메소드

Gets the content from the Url.
public DoGetUrl ( string url, HttpStatusCode &statusCode ) : string
url string The url.
statusCode HttpStatusCode The status code returned.
리턴 string

DoGetUrl() 공개 메소드

Gets the content from the Url.
public DoGetUrl ( string url, HttpStatusCode &statusCode, string &statusDescription ) : string
url string The url.
statusCode HttpStatusCode The status code returned.
statusDescription string The status description.
리턴 string

DoGetUrlHeadOnly() 공개 메소드

Performs a HEAD request.
public DoGetUrlHeadOnly ( string url ) : Uri
url string /// The url. ///
리턴 System.Uri

DoGetUrlHeadOnly() 공개 메소드

Performs a HEAD request.
public DoGetUrlHeadOnly ( string url, HttpStatusCode &statusCode ) : Uri
url string /// The url. ///
statusCode HttpStatusCode /// The status code returned. ///
리턴 System.Uri

DoGetUrlHeadOnly() 공개 메소드

Performs a HEAD request.
public DoGetUrlHeadOnly ( string url, HttpStatusCode &statusCode, string &statusDescription ) : Uri
url string /// The url. ///
statusCode HttpStatusCode /// The status code returned. ///
statusDescription string /// The status description. ///
리턴 System.Uri

DoGetUrlHtml() 공개 메소드

Gets the content from the Url as an Html Agility Pack document.
public DoGetUrlHtml ( string url ) : HtmlAgilityPack.HtmlDocument
url string The url.
리턴 HtmlAgilityPack.HtmlDocument

DoGetUrlXml() 공개 메소드

Gets the content from the Url as xml.
public DoGetUrlXml ( string url ) : XmlDocument
url string The url.
리턴 System.Xml.XmlDocument

DoPost() 공개 메소드

Posts the data to the url provided.
public DoPost ( string url, string data ) : string
url string The url.
data string The data.
리턴 string

DoPostForm() 공개 메소드

Posts a form to the Url.
public DoPostForm ( string url, string>.Dictionary valuesDictionary ) : string
url string The url.
valuesDictionary string>.Dictionary The values dictionary { form key, value }.
리턴 string

EncodeJson() 공개 메소드

Url encodes json.
public EncodeJson ( string json ) : string
json string The json.
리턴 string

WebRequestClient() 공개 메소드

Initializes a new instance of the WebRequestClient class.
public WebRequestClient ( ) : System
리턴 System

WebRequestClient() 공개 메소드

Initializes a new instance of the WebRequestClient class.
public WebRequestClient ( CookieContainer cookies ) : System
cookies System.Net.CookieContainer The cookies.
리턴 System