|
1金钱
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;
//Console.WriteLine(html);
item = new HttpItem()
{
URL = "http://user.qjy168.com/new/do/vip_add_provide.php",
Method="post",
Postdata = "title=112222222222222222&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, */*",
ContentType = "multipart/form-data; boundary=---------------------------7df1661e707ca",
Cookie=cookie,
};
item.Encoding = Encoding.GetEncoding("gb2312");
HttpResult ceshi = http.GetHtml(item);
string html = ceshi.Html;
Console.WriteLine(html);
还有我看他们发帖子代码都是一行一行有标示的怎么弄的
|
|