Method | Description | |
---|---|---|
AddHeader ( String key, String ctx ) : void |
添加自定义头
|
|
ClearHeader ( ) : void |
清空自定义头
|
|
DebugCookies ( ) : void | ||
HttpGet ( String url ) : String |
发送GET请求
|
|
HttpGet ( String url, String refer ) : String |
发送GET请求
|
|
HttpGetMine ( String url ) : Byte[] |
获取MINE文件
|
|
HttpHelper ( ) : System | ||
HttpPost ( String url, String data ) : String |
发送POST请求
|
|
HttpPost ( String url, String data, String refer ) : String |
发送POST请求
|
|
InitCookie ( ) : void | ||
RandUserAgent ( ) : void | ||
SetAccept ( String accept ) : void | ||
SetContentType ( String type ) : void | ||
SetCookiesString ( string c ) : void | ||
SetEncoding ( |
设置当前编码
|
|
SetTimeOut ( int msec ) : void |
设置超时时间
|
|
SetUserAgent ( String ua ) : void |
设置UserAgent
|
|
UrlEncode ( string str ) : string |
Method | Description | |
---|---|---|
CheckCertificate ( object sender, |
检测证书
|
|
ConvertCookieString ( string ck ) : |
转换cookie字符串到CookieCollection
|
|
GetStringFromResponse ( |
获取HTTP返回的内容
|
public AddHeader ( String key, String ctx ) : void | ||
key | String | |
ctx | String | |
return | void |
public HttpGet ( String url, String refer ) : String | ||
url | String | |
refer | String | |
return | String |
public HttpPost ( String url, String data ) : String | ||
url | String | |
data | String | |
return | String |
public HttpPost ( String url, String data, String refer ) : String | ||
url | String | |
data | String | |
refer | String | |
return | String |
public SetEncoding ( |
||
en | ||
return | void |