[REBOL] Re: Setting Referer on HTTP request.
From: gabriele::colellachiara::com at: 28-Jun-2005 11:09
Hi Bruno,
On Monday, June 27, 2005, 6:23:28 PM, you wrote:
BGA> Is there a way to generally change the header that is sent in an HTTP
BGA> request? Specifically, is there any way to add/change the "Referer"
BGA> header? I have this page that I need to get that will only be sent if
BGA> the referer matches a specific URL. I did browse the HTTP scheme but
BGA> didn't notice anything obvious there. I only saw a field to change the
BGA> User-Agent.
If you are doing a POST, add a block after the post data in the
custom block:
[POST "some data" [Referer: "whatever"]]
you can include any header and override the ones REBOL provides by
default.
If you are doing a GET, use a custom block:
[header [Referer: "whatever"]]
and so on.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/