R
Reghawk
Unregistered / Unconfirmed
GUEST, unregistred user!
var
WB: TWebBrowser;
vFlags,vTarget,vPost,Headers:OleVariant;
begin
Headers:='Referer:http://www.163.com/'+ #10#13;
WB.Navigate('http://localhost/office/Untitled-2.asp',vFlags,vTarget,vPost,Headers);
end;
在asp文件中可以正常返回referer的值,
Response.Write Request.ServerVariables("HTTP_REFERER"
返回:http://www.163.com/
javascript却返回referer为空值,
<script language="javascript">
var values = document.referrer;
document.write("FORM JAVA:"
document.write(values );
</script>
返回: (空)
谁知是为什么!
WB: TWebBrowser;
vFlags,vTarget,vPost,Headers:OleVariant;
begin
Headers:='Referer:http://www.163.com/'+ #10#13;
WB.Navigate('http://localhost/office/Untitled-2.asp',vFlags,vTarget,vPost,Headers);
end;
在asp文件中可以正常返回referer的值,
Response.Write Request.ServerVariables("HTTP_REFERER"
返回:http://www.163.com/
javascript却返回referer为空值,
<script language="javascript">
var values = document.referrer;
document.write("FORM JAVA:"
document.write(values );
</script>
返回: (空)
谁知是为什么!