From: Ehud Rosenberg Date: 2007-11-09T03:23:35+09:00 Subject: Re: Faking the refering page with Mechanize OK, I'm stupid :) I don't need mechanize to fake the referring page at all, but rails itself in a redirect_to statement. The flow is as such: a. mechanize retrieves a page and scrapes it for a url b. a redirect_to to that url is sent back to the cient c. he goes and fetches the url (only right now he gets redirected since his referrer is wrong. I am trying to do the following to set the referrer: request.env['HTTP_REFERER'] = 'http://www.something.com redirect_to "www.site.com" but when I sniff the headers, it's still set to my own site... Any ideas? Thanks! -- Posted via http://www.ruby-forum.com/.