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?

Kat

Reply via email to