From: Ehud Rosenberg Date: 2007-11-09T03:50:56+09:00 Subject: Re: Faking the refering page with Mechanize C辿dric Finance wrote: > I don't think that you can do what you want this way, the referer is set > by > your browser not by the website you are browsing. > (Moreover, you are changing the referer from the request, not from the > response). And I don't see why a server response > could have a referer header. > If you want to load a page with another referer from your rails app, try > to > use some javascript to change the referer of the > browser or make an ajax page request with the right referer (I think it > should be possible to set the header from the ajax > request). Yes, it has finally dawned on me that what I'm trying to do is not really possible this way. I doubt it can be done using ajax, though it's work a bit of research. Anyway, thanks for putting me on the right track. -- Posted via http://www.ruby-forum.com/.