C# Class WareDealer.Helper.HttpHelper

ファイルを表示 Open project: hanksoft/KillJD

Public Properties

Property Type Description
CookieContainers System.Net.CookieContainer
FireFoxAgent string
IE7 string

Public Methods

Method Description
GetRegexString ( string pattern, string source ) : string
GetRegexStrings ( string pattern, string source ) : string[]
GetResponse ( string url, string method, string data, Encoding encode ) : string

获取网页数据

GetResponseGBK ( string url, string method, string data ) : string
GetResponseImage ( string url ) : Stream
GetResponseUTF ( string url, string method, string data ) : string

Method Details

GetRegexString() public static method

public static GetRegexString ( string pattern, string source ) : string
pattern string
source string
return string

GetRegexStrings() public static method

public static GetRegexStrings ( string pattern, string source ) : string[]
pattern string
source string
return string[]

GetResponse() public static method

获取网页数据
public static GetResponse ( string url, string method, string data, Encoding encode ) : string
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 System.Text.Encoding
return string

GetResponseGBK() public static method

public static GetResponseGBK ( string url, string method, string data ) : string
url string
method string
data string
return string

GetResponseImage() public static method

public static GetResponseImage ( string url ) : Stream
url string
return Stream

GetResponseUTF() public static method

public static GetResponseUTF ( string url, string method, string data ) : string
url string
method string
data string
return string

Property Details

CookieContainers public_oe static_oe property

public static CookieContainer,System.Net CookieContainers
return System.Net.CookieContainer

FireFoxAgent public_oe static_oe property

public static string FireFoxAgent
return string

IE7 public_oe static_oe property

public static string IE7
return string