C# Class Huoqishi.ISC.MyHttpUtility

处理服务器端,发送Get,Post请求
Show file Open project: huoqishi/Code-Library

Public Methods

Method Description
SendGetFile ( string url ) : byte[]

请求文件,返回byte数组,get请求

SendGetHttpRequest ( string url ) : string

SendGetHttpRequest ( string url, string contentType ) : string

发送请求

SendPostHttpRequest ( string url, string data ) : string

发送请求

SendPostHttpRequest ( string url, string contentType, string requestData ) : string

发送请求

Method Details

SendGetFile() public static method

请求文件,返回byte数组,get请求
public static SendGetFile ( string url ) : byte[]
url string
return byte[]

SendGetHttpRequest() public static method

public static SendGetHttpRequest ( string url ) : string
url string
return string

SendGetHttpRequest() public static method

发送请求
public static SendGetHttpRequest ( string url, string contentType ) : string
url string Url地址
contentType string
return string

SendPostHttpRequest() public static method

发送请求
public static SendPostHttpRequest ( string url, string data ) : string
url string Url地址
data string 数据
return string

SendPostHttpRequest() public static method

发送请求
public static SendPostHttpRequest ( string url, string contentType, string requestData ) : string
url string Url地址
contentType string
requestData string 数据
return string