C# Class HttpUtil, ICanPay

Show file Open project: hiihellox10/ICanPay Class Usage Examples

Public Methods

Method Description
HttpGet ( string Url, string postDataStr ) : string

发生get请求

HttpPost ( string Url, string postDataStr ) : string

发生post请求

Upload ( string filePath, string fileName, string data, string customernumber ) : string
UrlEncode ( string str ) : string

将字符串进行urlencode

Method Details

HttpGet() public static method

发生get请求
public static HttpGet ( string Url, string postDataStr ) : string
Url string
postDataStr string
return string

HttpPost() public static method

发生post请求
public static HttpPost ( string Url, string postDataStr ) : string
Url string
postDataStr string
return string

Upload() public static method

public static Upload ( string filePath, string fileName, string data, string customernumber ) : string
filePath string
fileName string
data string
customernumber string
return string

UrlEncode() public static method

将字符串进行urlencode
public static UrlEncode ( string str ) : string
str string
return string