C# Class WxPayAPI.HttpService

http连接基础类,负责底层的http通信
Mostrar archivo Open project: hiihellox10/ICanPay Class Usage Examples

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