HTTP_REFERER can't be obtained

I run request.env in view and no HTTP_REFERER there. How i can get
HTTP_REFERER ? I trace using “Live HTTP Header” in Firefox, the referer
is obtained. I tested to IE, Mozzila, Opera, Gecko & Firefox, the
result is the same. Referer is traced but http_referer in rails still
can’t be obtained.

I am using rails 2.0.2 & ruby 1.8.5, here the list of @request.env in my
view :


SERVER_NAME localhost

PATH_INFO /editor

REMOTE_HOST 127.0.0.1

HTTP_ACCEPT_ENCODING gzip,deflate

HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.1;MEGAUPLOAD 1.0

SERVER_PROTOCOL HTTP/1.1

HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5

HTTP_HOST localhost:3005

REMOTE_ADDR 127.0.0.1

SERVER_SOFTWARE WEBrick/1.3.1 (Ruby/1.8.5/2006-08-25)

HTTP_KEEP_ALIVE 300

HTTP_COOKIE _skate_session_id=ba502ec7409365e31a062be46bbed56d

HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7

REQUEST_URI http://localhost:3005/editor

SERVER_PORT 3005

GATEWAY_INTERFACE CGI/1.1

QUERY_STRING

REMOTE_USER

HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5

REQUEST_METHOD GET

HTTP_CONNECTION keep-alive


any advice?

Reinhart
http://teapoci.blogspot.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs