Could someone answer this please? I'd like to use Rebol to connect, and
*know* that it will.

Thanks,
Kat


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 23, 1999 11:14 PM
Subject: [REBOL] http server...


> Hey all,
>
> I wrote a server that accepts http requests, and displays the data the
> requestor is sending,, and sends the files.
>
> Ok, when i connect with Internet Explorer 5 using this url:
> http://localhost/d:/aliases/tests.txt
>  it shows:
>
> temp = GET /d:/aliases/tests.txt HTTP/1.1
> temp = Accept: */*
> temp = Accept-Language: en-us
> temp = Accept-Encoding: gzip, deflate
> temp = User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt)
> temp = Host: localhost
> temp = Connection: Keep-Alive
>
> and IE5 shows the file.
>
> But when i use this line in Rebol:
>  print read http://localhost/d:/aliases/tests.txt
> the server shows this:
>
> temp = GET /d:/aliases/tests.txt HTTP/1.0
> temp = Accept: */*
> temp = User-Agent: REBOL 2.1.2.3.1
> temp = Host: localhost
> temp =
>
> and Rebol prints this:
> connecting to: localhost
> ** Script Error: Invalid argument: {.
> ** Where: make integer! value
> >>
>
> The first "line" in the file is:
> maskhextodns  {
>
> and i say "line" in quotes because there *may* not be a CRLF, or just the
CR
> or LF. How can i read this file without Rebol trying to execute it? I also
> tried "read/binary" and "read /binary" , /string , /direct ,  /lines , and
> then i gave up. What is it?
>
>
> Also, the line when IE5 connects that shows "Connection: Keep-Alive" is
> blank in the Rebol connect, shouldn't Rebol spec the connection?

I've also served html web pages downloaded from the net, and IE5 displays
them properly when i http://localhost , but Rebol still won't get the files.

Kat

Reply via email to