C# Class Hank.BrowserParse.SFHttpHelper

Http连接操作帮助类
Mostrar archivo Open project: hanksoft/KillJD Class Usage Examples

Public Methods

Method Description
GetHtml ( HttpItem item ) : HttpResult

根据相传入的数据,得到相应页面数据

Private Methods

Method Description
CheckValidationResult ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors ) : bool

回调验证证书问题

GetByte ( ) : byte[]

提取网页Byte

GetData ( HttpItem item, HttpResult result ) : void

获取数据的并解析的方法

GetMemoryStream ( Stream streamResponse ) : MemoryStream

4.0以下.net版本取数据使用

SetCer ( HttpItem item ) : void

设置证书

SetCerList ( HttpItem item ) : void

设置多个证书

SetCookie ( HttpItem item ) : void

设置Cookie

SetEncoding ( HttpItem item, HttpResult result, byte ResponseByte ) : void

设置编码

SetPostData ( HttpItem item ) : void

设置Post数据

SetProxy ( HttpItem item ) : void

设置代理

SetRequest ( HttpItem item ) : void

为请求准备参数

Method Details

GetHtml() public method

根据相传入的数据,得到相应页面数据
public GetHtml ( HttpItem item ) : HttpResult
item HttpItem 参数类对象
return HttpResult