Hi, Dick,

If you are looking to post a form and include a Referer field in that post,
then Martin Johannesson's script at:
http://www.rebol.com/library/script-web.html
under "http-post.r"
can be readily hacked to achieve the result.  Simply change the definition
for HTTP-Header.  Currently it is:

HTTP-Header: make object! [
        HTTP-Response: Date: Server: Last-Modified: none
        Accept-Ranges: Content-Encoding: Content-Type: none
        Content-Length: Location: Expires: Referer: Connection: none
    ]

change it to whatever for Referer, such as:

HTTP-Header: make object! [
        HTTP-Response: Date: Server: Last-Modified: none
        Accept-Ranges: Content-Encoding: Content-Type: none
        Content-Length: Location: Expires: none
        Referer: http://www.thissillydomain.dom
        Connection: none
    ]

Then send the post command, such as:

 tmp: http-post-form
http://www.anothersillydomain.dom/cgi-bin/a-post-query.cgi reduce
["field-name" "field-data"]

then check the response by inspecting the tmp object.  This method worked
like a charm on my test set-up.

Hope this both helps and saves you some time.

Referer: Scott <grin>

----- Original Message -----
From: "Dick Whiting" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 1:41 PM
Subject: [REBOL] Setting http referer field question


> Hi all,
>
> The subject says it, the questions are:
>
> CAN I?
> HOW?
>
> Dick
>
> --
> #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
>  *Dick Whiting* <[EMAIL PROTECTED]>
>  _http://www.europa.com/~dwhiting/_
>  /Satyre/ on Undernet #AmigaCafe#
> #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to