Property | Type | Description | |
---|---|---|---|
CookieContainers | |||
FireFoxAgent | string | ||
IE7 | string |
Method | Description | |
---|---|---|
GetRegexString ( string pattern, string source ) : string | ||
GetRegexStrings ( string pattern, string source ) : string[] | ||
GetResponse ( string url, string method, string data, |
获取网页数据
|
|
GetResponseGBK ( string url, string method, string data ) : string | ||
GetResponseImage ( string url ) : Stream | ||
GetResponseUTF ( string url, string method, string data ) : string |
public static GetRegexString ( string pattern, string source ) : string | ||
pattern | string | |
source | string | |
return | string |
public static GetRegexStrings ( string pattern, string source ) : string[] | ||
pattern | string | |
source | string | |
return | string[] |
public static GetResponse ( string url, string method, string data, |
||
url | string | |
method | string | "POST" or "GET" |
data | string | when the method is "POST", the data will send to web server, if the method is "GET", the data should be string.empty |
encode | ||
return | string |
public static GetResponseGBK ( string url, string method, string data ) : string | ||
url | string | |
method | string | |
data | string | |
return | string |
public static GetResponseImage ( string url ) : Stream | ||
url | string | |
return | Stream |
public static GetResponseUTF ( string url, string method, string data ) : string | ||
url | string | |
method | string | |
data | string | |
return | string |
public static CookieContainer,System.Net CookieContainers | ||
return |