public byte[] PostData(string url, string data) { NoKeepAliveClient cli = new NoKeepAliveClient(); cli.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); return(cli.UploadData(new Uri(url), "POST", System.Text.Encoding.ASCII.GetBytes(data))); }
public byte[] PostData(string url, string data) { NoKeepAliveClient cli = new NoKeepAliveClient(); cli.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); return cli.UploadData(new Uri(url), "POST", System.Text.Encoding.ASCII.GetBytes(data)); }