|
|
 |
RE: FN-FORUM $ENV{'HTTP_REFERER'}
date posted 1st December 2000 16:13
Are other environment variables being set?
What output do you get from this CGI script:
#!/usr/bin/perl
print "Content-type: text/plain
";
for (keys %ENV)
{
print "$_ ----> $ENV{$_}
";
}
Mr(s) Anon.
Thanks for your help,
here is the C&P of the output minus some deatils held in the cookies that I
have replaced with **********
It all seems to working ok except the damn referrer. Am I right in saying
that in fact I should be looking at my browser rather than the server as
everything looks ok to me. As to browsers im testing with both IE5.5 and
Opera and get the same results in each.
If you want to see if its working as it should the script is at
http://www.strangelogic.com/cgi-bin/env.cgi (FYI thats my play with code
till it works right domain)
If it comes back ok I think the next step is to ask the list if they could
check this script (the one I am working on) to see if it passes the referrer
variable across from their browser.
Thanks again everyone. (esp Mr Anon)
--
Jason Duke | Tel: +44 7050 802831
Founder |
One Eye | Fax: +44 7050 802832
[EMAIL REMOVED]
Looking Forward
With Dedicated Vision
SERVER_SOFTWARE ----> Apache/1.3.9 (Unix) (Red Hat/Linux) PHP/3.0.12
GATEWAY_INTERFACE ----> CGI/1.1
DOCUMENT_ROOT ----> /home/strangelogiccom/www
REMOTE_ADDR ----> 212.159.1.3
SERVER_PROTOCOL ----> HTTP/1.1
REQUEST_METHOD ----> GET
QUERY_STRING ---->
HTTP_USER_AGENT ----> Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x
4.90)
PATH ----> /usr/local/bin:/usr/bin:/bin
HTTP_ACCEPT ----> image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
*/*
HTTP_CONNECTION ----> keep-alive
REMOTE_PORT ----> 10951
SERVER_ADDR ----> 64.65.22.26
HTTP_ACCEPT_LANGUAGE ----> en-gb
SCRIPT_NAME ----> /cgi-bin/env.cgi
SCRIPT_FILENAME ----> /home/strangelogiccom/www/cgi-bin/env.cgi
SERVER_NAME ----> strangelogic.com
REQUEST_URI ----> /cgi-bin/env.cgi
HTTP_COOKIE ----> ***********************************
HTTP_X_FORWARDED_FOR ----> 212.159.33.8
SERVER_PORT ----> 80
HTTP_HOST ----> www.strangelogic.com
HTTP_VIA ----> 1.1 c550-03.cache
SERVER_ADMIN ----> [EMAIL REMOVED]
|
 |
|