C# 클래스 Cedar.Foundation.WeChat.WxPay.Lib.HttpService

http连接基础类,负责底层的http通信
파일 보기 프로젝트 열기: Chinaccn/surfboard

공개 메소드들

메소드 설명
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

메소드 상세

CheckValidationResult() 공개 정적인 메소드

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
리턴 bool

Get() 공개 정적인 메소드

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

Post() 공개 정적인 메소드

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