当前位置:编程学习 > C#/ASP.NET >>

如何接收post过来的数据

我采用下面的方式向一个url  post数据

请问在网页里如何接收到
string param="abcd";
string url="http://192.168.0.163/HttpServer/";
WebClient wc = null; 
try 

wc = new WebClient(); 
wc.Headers.Add("Content-Type","application/x-www-form-urlencoded"); 

byte[] postdata = System.Text.Encoding.ASCII.GetBytes(param); 

byte[] result = wc.UploadData(url,"post",postdata); 
//return System.Text.Encoding.ASCII.GetString(result);
}  --------------------编程问答-------------------- 按照表单POST方法提交数据的读取方式去读不行吗?
补充:.NET技术 ,  C#
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,