[REBOL] Re: Setting Referer on HTTP request.
From: tom:conlin:gma:il at: 27-Jun-2005 13:29
oh yea ..
you would also want a
page: copy port
before you close the port ...
On 6/27/05, Tom Conlin <[tom--conlin--gmail--com]> wrote:
> sorry bout that ... I'll write it somewhere more tolerant of my
> typing abilities..
> ( untested )
>
> base-url: "over-there.com"
> path-info: "/some/interesting.html"
> referer-url: http://sure.I.was.there/honest.html
>
> request-header: ["GET http://" base-url path-info " HTTP/1.0^/"]
> "Referer: " referer-url "^/"
> "Accept: text/html^/"
> ;... other headers as needed
>
> "^/^/" ;need to end header with two newline (CRLF CRLF)
> ]
>
> port: open [
> scheme: 'tcp
> host: base-url
> port-id: 80
> ;... other port parameters as needed
> ]
>
> insert port rejoin request-header
>
> close port
>
> 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
>
--
... nice weather eh