c#post发送httprequest请求url怎么写

时间:2016.08.22 发布人:zhao00yao

c#post发送httprequest请求url怎么写

已解决问题

谷歌zhao00yao用户在2016.08.22提交了关于“美国恐怖故事第二季c#post发送httprequest请求url怎么写”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2024-10-23T06:40:58。希望大家能够帮助她。

详细问题描述及疑问:期待您的答案,你无异于雪中送炭,让我感激涕零 !

希望以下的回答,能够帮助你。

第1个回答

用户名:dasen**ail  

简单点就是

h**ttpWebRequestrequest=newh**ttpWebRequest("请求地址?参数");//创建请求

***.method="Pos的完消实甚点仅握t";//设置访问方式

h**ttpWebResponseresult=***.getresponse()ash**ttpWebResponse;

StreamReadersr=newStreamReader(***.getresponsestream(),***.default);

stringstrResult=***.readtoend();

***.close();

//请求后返回的值就是strResult