Net/http (Referer:?)

Hi,

I’m downloading stuff with net/http. Some URLs send different stuff,
depending on from where the “browser” comes (with a browser, it only
works correctly when the link was clicked from a certain page).

Should I send this refering URL in the Referer field? Howto?

Tobi

···


http://www.pinkjuice.com/

You can specify header fields by a hash option.

http.get(path, “Referer” => “http://www.example.com/from/where”)
http.get(path, “Referer” => “…/from/where/index.html”,
“Accept-Language” => “ja; q=1.0, en; q=0.5”)

– Gotoken

···

At Sat, 27 Jul 2002 14:48:26 +0900, Tobias Reif wrote:

I’m downloading stuff with net/http. Some URLs send different stuff,
depending on from where the “browser” comes (with a browser, it only
works correctly when the link was clicked from a certain page).

Should I send this refering URL in the Referer field? Howto?