您的位置:首页 > 理论基础 > 计算机网络

发送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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: