----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 1999 7:51 AM
Subject: [REBOL] Re: http server... Re:(3)


> On 03-Nov-99, [EMAIL PROTECTED] wrote:
>
> (reply at bottom of mail)
>
> -snip-
>
> >
> > Doesn't. I downloaded several web pages, IE5 showed them fine from the
web
> > and from my server, and hung on them from my server. Other people using
> > various non-Rebol web browsers http'd me, and read the files ok too.
> >
> > I typed this in IE5:
> > http://localhost/Autism/Asperger's%20Syndrome%20and%20Making%20Sense.htm
> >
> > and this happens in the status window in the server:
> > .. HTTPD is now ON ..
> > -----
> > Connecting ip: 127.0.0.1
> > Filename req: e:\Autism\Asperger's Syndrome and Making Sense.htm
> > .. 11/02/99 11:02:40pm Sending "e:\Autism\Asperger's Syndrome and Making
> > Sense.htm" ; 185,462 bytes. ..
>
> -snip-
>
> > Notice that it was sending several files at once thru the same port,
async,
> > and no errors, the page showed in IE5 exactly as it did from the web
> > originally.
> >
> > Now i type this in Rebol:
> >>> print read
> > http://localhost/Autism/Asperger's%20Syndrome%20and%20Making%20Sense.htm
> >
> > and Rebol says this:
> > connecting to: localhost
> > ** Script Error: Invalid argument: HTML.
> > ** Where: make integer! value
> >>>
> >
> > The server said this:
> > -----
> > Connecting ip: 127.0.0.1
> > Filename req: e:\Autism\Asperger's Syndrome and Making Sense.htm
> > .. 11/02/99 11:15:42pm Sending "e:\Autism\Asperger's Syndrome and Making
> > Sense.htm" ; 185,462 bytes. ..
> >
> > The first lines of that html file are:
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <!-- saved from
url=(0046)http://www.accesscom.com/~hcross/mindblind.htm -->
> > <HTML><HEAD><TITLE>Asperger's Syndrome and Making Sense.</TITLE>
> > <META content="text/html; charset=windows-1252" http-equiv=Content-Type>
> > <META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
> > <BODY background="Asperger's Syndrome and Making
> > Sense_files/background2.gif"
> > link=#0000ff text=#000000>
> > <CENTER><IMG alt="Asperger's Syndrome and Making sense." height=50
> > src="Asperger's Syndrome and Making Sense_files/title.gif"
> > width=748></CENTER>
> >
> > But it dosen't matter what file i request in IE5, it's served ok,,, but
> > Rebol chokes on every file. Rebol does work on the web, and so does my
> > server when acting as a proxy for IE5.
> >
> > If i type this in IE5:
> > http://localhost/Books/Dictionary/A-dct.txt
> >
> > the browser shows it properly, Rebol says this:
> >
> >>> print read http://localhost/Books/Dictionary/A-dct.txt
> > connecting to: localhost
> > ** Script Error: Out of range or past end.
> > ** Where: either none? result: select response-actions
> >>>
> >
> > And the first lines of that file are:
> >
> > <html>
> >
> >
> >
> > <hr>
> > <page="1">
> > Page 1<p>
> >
> > <centered><point26>A.</point26></centered>
> >
> > <h1>A</h1>
> > <Xpage=1>
> >
> > <hw>A</hw> <tt>(<it>named \'be in the English, and most commonly
> >
> > The server said it went out to IE5 normally, and timed out on Rebol.
> >
> > What's happening?
> >
> > Kat
> >
>
> This is really strange, I can suggest some things that might be the
problem:
>
> 1) you have some kind of patch installed (ie. in %user.r) which worked
>    in previous versions of rebol, but not in the new ones...
>    (I have this problem with a patch I wrote for 'do)
>    Try to install a clean %user.r or otherwice prevent REBOL from starting
>    any non-standard stuff and try again

How? I have no idea what user.r does other than storing init data for things
about my puter.

> 2) Perhaps your web-server sends something in the header that REBOL
doesn't
>    like.
>    It would be interesting to see the header that your server sends.
>    Below is a cut from a REBOL session that establishes a direct tcp
>    connection to localhost:80 (tcp example from www.rebol.com).
>    Could you try the same and send the output? It might help solve the
>    problem.

K, that works:
>> http-port: open tcp://localhost:80
>>
>> insert http-port "GET /dctfiles_new\AA.htm HTTP/1.0^m^j^m^j"
>>
>> while [data: copy http-port] [prin data]
<html>
<h1>A's</h1> <b><sylables>A's</sylables></b> <br>
</html>
== none
>>

And that is what that file has in it, it's one line. What *is* that
"^m^j^m^j" ? Note the server accepted the slashes either way, that's my
fault, i told it to. What is "== none" ?Then i did:
>> http-port: open tcp://localhost:80
>>
>> insert http-port "GET /HTMLPrimerAll.htm HTTP/1.0^m^j^m^j"
>>
>> while [data: copy http-port] [prin data]


And Rebol spit out the 84K file of html. Why is this working and the "print
read http://localhost/HTMLPrimerAll.htm " does not work?

Kat





Reply via email to