[REBOL] Re: headers in a HTTP-request

2001-01-12 Thread Gunjan Karun

Hi Petter,
Have you tried seeing the system/options/cgi
Try the following cgi script and see its output.
#!rebol -cs
REBOL[]
print "Content-type:text/html^/"
print ""
print mold system/options/cgi
print ""

the output of this script is here
make object! [
server-software: {Apache/1.3.12 (Unix)  (Red Hat/Linux) PHP/3.0.15
mod_perl/1.21}
server-name: "dummy61.ezee"
gateway-interface: "CGI/1.1"
server-protocol: "HTTP/1.0"
server-port: "80"
request-method: "GET"
path-info: none
path-translated: none
script-name: "/cgi-bin/viewr.r"
query-string: ""
remote-host: none
remote-addr: "192.168.1.67"
auth-type: none
remote-user: none
remote-ident: none
Content-Type: none
content-length: none
other-headers: ["HTTP_ACCEPT" {image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, image/png, */*} "HTTP_ACCEPT_CHARSET" "iso-8859-1,*,utf-8"
"HTTP_ACCEPT_ENCODING" "gzip" "HTTP_ACCEPT_LANGUAGE" "en" "HTTP_CONNECTION"
"Keep-Alive" "HTTP_HOST" "dummy61" "HTTP_PRAGMA" "no-cache"
"HTTP_USER_AGENT" "Mozilla/4.7 [en] (Win98; I)"]
]

I think this is what you want...
Smiles and cheers
Gunjan

-
Gunjan Karun
Technical Presales Consultant
Zycus, Mumbai, India
Tel: +91-22-8730591/8760625/8717251
Extension: 120
Fax: +91-22-8717251
URL: http://www.zycus.com
-



- Original Message -
From: Petter Egesund <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 14:44
Subject: [REBOL] headers in a HTTP-request


>
> Does anybody know how to read the headers after reading a HTTP-request?
>
> Regards,
>
> Petter Egesund, Helpinhand
>
> --
> 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.




[REBOL] Re: headers in a HTTP-request

2001-01-12 Thread sterling


You are looking for the headers of the HTTP response, right?
a: open http://www.yahoo.com
probe a/locals/headers
copy a ; to get the page
close a

Sterling

> Does anybody know how to read the headers after reading a HTTP-request?
> 
> Regards,
> 
> Petter Egesund, Helpinhand
> 
> -- 
> 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.




[REBOL] Re: headers in a HTTP-request

2001-01-12 Thread Elan

Hi Petter,

you can find the header info in system/options/cgi. Note that besides
providing default header info, system/options/cgi also contains block
called other-headers, where remaining header info is stored.

Elan

Petter Egesund wrote:
> 
> Does anybody know how to read the headers after reading a HTTP-request?
> 
> Regards,
> 
> Petter Egesund, Helpinhand
> 
> --
> 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.