7,656
社区成员
发帖
与我相关
我的任务
分享
System.Net.WebRequest aa = System.Net.WebRequest.Create("http://192.168.1.174/WebSite30/Default.aspx");
aa.Method = "POST";
aa.ContentType = "application/x-www-form-urlencoded";
byte[] by = new byte[] { 55, 77, 88 };
aa.ContentLength = by.Length;
System.IO.Stream newStream = aa.GetRequestStream();
newStream.Write(by, 0, by.Length);
newStream.Close();
System.Net.WebResponse bb = aa.GetResponse(); //
label1.Text = bb.GetResponseStream().ReadByte().ToString();