21,491
社区成员
发帖
与我相关
我的任务
分享POST /account.cgi HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Referer: http://www.easyhits4u.com/
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip,deflate
Host: www.easyhits4u.com
Connection: Keep-Alive
Cache-Control: no-cache
Content-Length: 87
f=logon&manual=1&fb_id=&fb_token=&google_code=&username=joke&password=qazwsxedc&x=7&y=5
//这里是构造要发送的数据
QByteArray postData;
postData.append("f=logon&manual=1&fb_id=&fb_token=&username=");
postData.append(ui->lineEdit_user->text());
postData.append("&password=");
postData.append(ui->lineEdit_Passwd->text());
postData.append("&x=7&y=5");
request = new QNetworkRequest(QUrl("http://www.easyhits4u.com/account.cgi"));
//request->setUrl(param);
//request->setHeader();
request->setUrl(QUrl("http://www.easyhits4u.com/account.cgi"));
request->setHeader(QNetworkRequest::ContentTypeHeader,"application/x-www-form-urlencoded");
request->setRawHeader("Accept","image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*");
request->setRawHeader("Referer","http://www.easyhits4u.com");
request->setRawHeader("Accept-Language","zh-cn");
request->setRawHeader("User-Agent","Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E)");
request->setRawHeader("Content-Type","application/x-www-form-urlencoded");
request->setRawHeader("Accept-Encoding","gzip,deflate");
request->setRawHeader("Content-Length","94");
request->setRawHeader("Connection","Keep-Alive");
request->setRawHeader("Cache-Control","no-cache");
reply = netWorkAcessM->post(*request,postData);
connect(reply,SIGNAL(error(QNetworkReply::NetworkError)),this,SLOT(replyErrprSlot()));
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" xml:lang="en" lang="en" style="height: 100%; "><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EasyHits4U.com - Your Traffic Exchange, 1:1 Exchange Ratio, Manual Surfing, Innovative Referral Program. FREE Traffic!</title>
</head>
<body style="position: relative; min-height: 100%; top: 0px; ">
<table cellpadding="0" cellspacing="0" border="0" valign="top" width="19%">
<tbody><tr>
<td width="235" valign="top" class="left_column">
<form action="http://www.easyhits4u.com/account.cgi" method="post">
<input type="hidden" name="f" value="logon">
<input type="hidden" name="manual" value="1">
<input type="hidden" name="fb_id" value="">
<input type="hidden" name="fb_token" value="">
<!-- <input type="hidden" name="google_code" value=""> -->
<div style="width:175px; padding-left:16px; padding-right:0px; font-size:11px; padding-top:8px; ">Username or Email:<br>
<input type="text" name="username" size="30" class="login" value="" style="border: 1px solid rgb(109, 191, 109); "><br>
Password:<br>
<input type="password" name="password" class="login" value="" style="border: 1px solid rgb(109, 191, 109); "><br>
<div align="center">
<input type="image" src="./EasyHits4U.com - Your Traffic Exchange, 1 1 Exchange Ratio, Manual Surfing, Innovative Referral Program. FREE Traffic!_files/enter_btn.jpg" id="enter_btn" alt="Enter" title="Enter">
<div id="fb-root"></div>
</div>
</div></form></td>
</tr>
</tbody></table>