18,356
社区成员
发帖
与我相关
我的任务
分享
CInternetSession session;
CHttpConnection* pConnection = session.GetHttpConnection("www.myfamliy.net");
CHttpFile* pFile = pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST,"/do.php?ac=0cfd4043ccd45b8608e9fe78db25bb56");
CString strHeaders = "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/QVOD, application/QVOD, */*\r\nReferer: http://www.myfamliy.net\r\nAccept-Language: zh-cn\r\nContent-Type: application/x-www-form-urlencoded\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)\r\nHost: www.myfamliy.net\r\nContent-Length: 122\r\nConnection: Keep-Alive\r\nCache-Control: no-cache\r\nCookie: uchome_sendmail=1; uchome_loginuser=gez1; uchome_synfriend=1\r\n";
CString strFormData = "username=gez1&loginsubmit=%B5%C7%C2%BC&password=123456&refer=space.php%3Fdo%3Dhome&formhash=df842aa7&x=22&y=29";
MessageBox("kai");
BOOL result=pFile->SendRequest(strHeaders,strHeaders.GetLength(),(LPVOID)(LPCTSTR)strFormData,strFormData.GetLength());