public static string GetPostString(string urladdress, string @params) { string returnValue = null; using (WebClient client = new WebClient()) { client ...
public static string GetPostString(string urladdress, string @params)
{
string returnValue = null;
using (WebClient client = new WebClient())
{
client.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
client.Encoding = Encoding.UTF8;
returnValue = client.UploadString(urladdress, "POST", @params);
}
return returnValue;
}
-------------------------以上 為 與同事之間的介面查詢-------------------------------------