S
sunsland
Unregistered / Unconfirmed
GUEST, unregistred user!
使用Twebbrowser来模拟浏览器用户手动登陆,发现get时Referer在Herders中显示的位置不对,IE显示是:Referer: http://引用页面Accept-Language: zh-cnAccept-Encoding: gzip, deflateTwebbrowser显示为:Accept-Language: zh-cnReferer: http://引用页面Accept-Encoding: gzip, deflate设置:Headers := 'Referer: ' + Ref+#13#10+'Accept-Language: zh-cn'后Twebbrowser显示为:Accept-Encoding: gzip, deflateReferer: http://引用页面Accept-Language: zh-cn设置:Headers := 'Referer: ' + Ref+ +#13#10+'Accept-Language: zh-cn'+#13#10+'Accept-Encoding: gzip, deflate'后Twebbrowser显示为:Accept-Encoding: gzip, deflateReferer: http://引用页面Accept-Language: zh-cn调用:procedure NavRef(url,ref:string;wbWeb:Twebbrowser);varFlags, Headers, TargetFrameName, PostData: OLEVariant;beginFlags := '1';TargetFrameName := '';PostData := '';Headers := 'Referer: ' + Ref; // +#13#10+'Accept-Language: zh-cn' // +#13#10+'Accept-Encoding: gzip, deflate';wbWeb.Navigate(Url, Flags, TargetFrameName, PostData, Headers);end;如何设置能做到Referer与IE中提交是一样?