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

http连接基础类,负责底层的http通信
Afficher le fichier Open project: Chinaccn/surfboard

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

Get() public static méthode

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

Post() public static méthode

public static Post ( string xml, string url, bool isUseCert, int timeout ) : string
xml string
url string
isUseCert bool
timeout int
Résultat string