所以这是解决方案:
string URI = "http://www.myurl.com/post.php";string myParameters = "param1=value1¶m2=value2¶m3=value3";using (WebClient wc = new WebClient()){ wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlenpred"; string HtmlResult = wc.UploadString(URI, myParameters);}
它像魅力一样工作:)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)