コード例 #1
0
        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)));
        }
コード例 #2
0
 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));
 }