[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem() //post
{
URL = "http://user.qjy168.com/new/login.php?skipurl=index.php",
Method = "post",
Postdata = "username=weilang1&psw=090824&hidaction=login",
Referer = "user.qjy168.com",
ContentType = "application/x-www-form-urlencoded",
};
HttpResult okpost = http.GetHtml(item);
string html = okpost.Html;
string cookie = okpost.Cookie;
item = new HttpItem()
{
URL = "http://user.qjy168.com/new/do/vip_add_provide.php",
Method = "post",
Postdata = "title=QQ:80310134&protypeid=3411440&sort1=8&sort2=8-3&sort3=8-3-17&sort4=8-3-17-6&kw[]11111111&kw[]=22222222&price=3333&units=444&prod_area=555&csm_area&=666&pay_mode=777&stop_date=360&num=888&pack=999&spec=101010&content=123456789123456789&hidaction=add&proimg[]=2013/11/28/3663466_20131128162826.jpg",
Referer = "http://user.qjy168.com/new/vip_add_provide.php",
Host = "user.qjy168.com",
Accept = "text/html, application/xhtml+xml, */*",
Cookie = cookie,
};
item.Encoding = Encoding.GetEncoding("gb2312");
HttpResult ceshi = http.GetHtml(item);
string html1 = ceshi.Html;
Console.WriteLine(html1); |