发送http请求
2015-09-02 11:10
423 查看
tool.HttpHelper helper = new tool.HttpHelper();
tool.HttpItem item = new tool.HttpItem();
item.URL = InterfaceUrl;
item.Method = "post";
item.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
item.KeepAlive = false;
item.Postdata = "Action=GetAllProduct&key={0}&item={pageIndex:1,pageSize:1,where:\"\"}".Replace("{0}", MultipleShopKey);
tool.HttpResult result = helper.GetHtml(item);
return result.Html;
tool.HttpItem item = new tool.HttpItem();
item.URL = InterfaceUrl;
item.Method = "post";
item.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
item.KeepAlive = false;
item.Postdata = "Action=GetAllProduct&key={0}&item={pageIndex:1,pageSize:1,where:\"\"}".Replace("{0}", MultipleShopKey);
tool.HttpResult result = helper.GetHtml(item);
return result.Html;
相关文章推荐
- 一张图读懂https加密协议
- 如何申请https证书、搭建https网站
- 使用TCP协议的NAT穿透技术(转)
- Http状态码枚举(摘自 Microsoft 程序集 System.dll)
- HttpClient_HttpClient 4.3.6 HTTP状态管理
- HTTPS
- caffe-将图片转化为siamese网络需要的数据库格式
- Android提高第二十一篇之MediaPlayer播放网络视频
- HttpClient_HttpClient 对 cookie的处理
- TCP Nagel算法
- Socket通信---网络通信学习笔记(一)
- apache配置文件 httpd-vhosts.conf 和 htaccess
- 解析 Linux 中的 VFS 文件系统机制 http://www.ibm.com/developerworks/cn/linux/l-vfs/
- 网络管理技术(一)
- 欧姆龙PLC以太网FINSTCP通信例程与操作步骤
- ubuntu网络设置
- 深化改革是建设教育强省的根本动力
- 你知道ping和traceroute,但你知道mtr网络诊断工具么?
- Socket——基于TCP通信的实现
- Socket——服务端与客户端交互的简单实现