W
wang_hn
Unregistered / Unconfirmed
GUEST, unregistred user!
idhttp post 网页出现http/1.0 500 错误, 我已抓包,并且摹仿和抓 包后的内容一样发现但是不成功。还是500错误。但是我用网页去提交就没有问题。请大家帮下忙。我也是采用: Param := TIdMultipartFormDataStream.Create; Param.AddFormField('__EVENTTARGET', 'btn_Submit'); ............ IdHTTP.Post('http://www.*****/reg/index.aspx',param,rcv);这样的提交,如果验证码错误,还可以顺利提交,返回验证码错误的内容。。如果验证码是正确的。就会出现 http/1.0 500的错误。。。。。以下是抓包内容:POST /reg/index.aspx HTTP/1.1Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-silverlight, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel, */*Referer: http://******/reg/index.aspxAccept-Language: zh-cnContent-Type: multipart/form-data; boundary=---------------------------7da2de780a7eAccept-Encoding: gzip, deflateUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQDownload 618; TencentTraveler 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; CIBA; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)Host: www.*****.com.cnContent-Length: 5918Connection: Keep-AliveCache-Control: no-cacheCookie: __utma=222580740.195550132.1271226114.1271226114.1271226114.1; __utmb=222580740; __utmc=222580740; __utmz=222580740.1271226114.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); ASP.NET_SessionId=o0o33zzgfkkimw55kfm1sw55-----------------------------7da2de780a7eContent-Disposition: form-data; name="__EVENTTARGET"btn_Submit-----------------------------7da2de780a7eContent-Disposition: form-data; name="__EVENTARGUMENT"-----------------------------7da2de780a7eContent-Disposition: form-data; name="__VIEWSTATE"/wEPDwUJMjA1NDY4MjEyD2QWAgIDD2QWBgIGDxBkEBVvBDE5MDAEMTkwMQQxOTAyBDE5MDMEMTkwNAQx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2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgMFHHJhZGlvX1VzZXJOYXR1cmVsbGFCcmFuZEZsYWcFFHJhZGlvX1VzZXJQR0luZm9GbGFnBQtyYWRpb19UZXJtc2u8A3HtpS4pTnMEDOmS0b1U+sIz-----------------------------7da2de780a7eContent-Disposition: form-data; name="__EVENTVALIDATION"/wEWHgKk082QBAL3xJvhBAL85dX3CgLQ5NbVDAK/0I2QDwKWtKQFAtHRig0ClYmKDQKcjKHjDAL76/apCQLo0IoRAr+N3QgCj+7pwQ4C16TklAUCy4DxqQIC4rfQpQ4C2K2lgQYCj7LinQoC+u601gECjJeCkQwC5oOTTALKiobsDALw+eKAAQKmmfu7BAKQ/p2iDwKu+KaXCQLn38yfCgLU2uCzBwKQvbbdDwLBt6SGDaF/FDv2lgrrixOogIYZcZ1l7whh-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserName"fddfbvcfxc-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserRealName"cxfcd-----------------------------7da2de780a7eContent-Disposition: form-data; name="inputFile"; filename=""Content-Type: application/octet-stream-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserPwd"fffffddd-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserConfirmPwd"fffffddd-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserEmail"fgbnfxgn@ddd.com-----------------------------7da2de780a7eContent-Disposition: form-data; name="radioList_Sex"濂?-----------------------------7da2de780a7eContent-Disposition: form-data; name="dorp_regyear"1990-----------------------------7da2de780a7eContent-Disposition: form-data; name="dorp_regmonth"03-----------------------------7da2de780a7eContent-Disposition: form-data; name="dorp_regdate"30-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserMobile"-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserQQ"-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserMsn"-----------------------------7da2de780a7eContent-Disposition: form-data; name="inputProvince"閲嶅簡-----------------------------7da2de780a7eContent-Disposition: form-data; name="inputCity"閲嶅簡-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserAddress"-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserPostCode"-----------------------------7da2de780a7eContent-Disposition: form-data; name="txt_UserImgCode"04j6x-----------------------------7da2de780a7eContent-Disposition: form-data; name="radio_UserNaturellaBrandFlag"radio-----------------------------7da2de780a7eContent-Disposition: form-data; name="radio_UserPGInfoFlag"radio-----------------------------7da2de780a7eContent-Disposition: form-data; name="radio_Terms"radio-----------------------------7da2de780a7eContent-Disposition: form-data; name="txtArea_UserInput"鑷?劧鏄?..-----------------------------7da2de780a7eContent-Disposition: form-data; name="hid_Province"閲嶅簡-----------------------------7da2de780a7eContent-Disposition: form-data; name="hid_City"閲嶅簡-----------------------------7da2de780a7eContent-Disposition: form-data; name="hid_Year"1990-----------------------------7da2de780a7eContent-Disposition: form-data; name="hid_Month"03-----------------------------7da2de780a7eContent-Disposition: form-data; name="hid_Day"30-----------------------------7da2de780a7e--