[REBOL] Re: Setting Referer on HTTP request.
From: tom:conlin:gm:ail at: 27-Jun-2005 13:27
sorry bout that ... I'll write it somewhere more tolerant of my
( untested )
request-header: ["GET http://" base-url path-info " HTTP/1.0^/"]
"Referer: " referer-url "^/"
;... other headers as needed
"^/^/" ;need to end header with two newline (CRLF CRLF)
port: open [
;... other port parameters as needed
insert port rejoin request-header
On 6/27/05, Tom Conlin <[tom--conlin--gmail--com]> wrote:
> do not know if you can do that with the ...user friendly http interface
> but you can do whatever you want at the port level.
> something like
> port: open [ scheme: TCP
> host: wherever.com
> On 6/27/05, Bruno G. Albuquerque <[bga--bug-br--org--br]> wrote:
> > Hello.
> > Is there a way to generally change the header that is sent in an HTTP
> > request? Specifically, is there any way to add/change the "Referer"
> > header? I have this page that I need to get that will only be sent if
> > the referer matches a specific URL. I did browse the HTTP scheme but
> > didn't notice anything obvious there. I only saw a field to change the
> > User-Agent.
> > -Bruno
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> ... nice weather eh
... nice weather eh