|
老大麻烦帮忙看一下 辛苦了
//提交回复
item = new HttpItems();
string urlCoder = xj.UrlEncoding("这是极好的呀",Encoding.GetEncoding("GB2312")).ToUpper();
item.URL = "http://data.loulanpo.com/forum.php?mod=post&action=reply&fid=2&tid=1&extra=page%3D1&replysubmit=yes&infloat=yes&handlekey=fastpost&inajax=1";
item.Referer = "http://data.loulanpo.com/forum.php?mod=viewthread&tid=1&extra=page%3D1";//设置请求来源
item.Cookie = referCookies;//设置字符串方式提交cookie
item.ContentType = "application/x-www-form-urlencoded";//内容类型
item.Method = "POST";//设置请求数据方式为Post
item.Postdata = "message=" + urlCoder + "&seccodehash=" + seccode + "&seccodemodid=forum%3A%3Aviewthread&seccodeverify=" + this.textBox_ReferCode.Text.Trim() + "&posttime=" + postTime + "&formhash=" + formSh + "&usesig=1&subject=++";//Post提交的数据
result = helper.GetHtml(item);
string html2 = result.Html;
|
|