C# Class Cedar.Foundation.WeChat.WxPay.Lib.HttpService

http连接基础类,负责底层的http通信
显示文件 Open project: Chinaccn/surfboard

Public Methods

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

处理http GET请求,返回数据

Post ( string xml, string url, bool isUseCert, int timeout ) : string

Method Details

CheckValidationResult() public static method

public static CheckValidationResult ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors ) : bool
sender object
certificate System.Security.Cryptography.X509Certificates.X509Certificate
chain System.Security.Cryptography.X509Certificates.X509Chain
errors SslPolicyErrors
return bool

Get() public static method

处理http GET请求,返回数据
public static Get ( string url ) : string
url string 请求的url地址
return string

Post() public static method

public static Post ( string xml, string url, bool isUseCert, int timeout ) : string
xml string
url string
isUseCert bool
timeout int
return string