[REBOL] Re: Reading tcp ports in rebol line by line
From: petr::krenzelok::trz::cz at: 9-Nov-2000 12:40
----- Original Message -----
From: Gabriele Santilli <[g--santilli--tiscalinet--it]>
To: <[rebol-list--rebol--com]>
Sent: Thursday, November 09, 2000 12:28 PM
Subject: [REBOL] Re: Reading tcp ports in rebol line by line
> Andrew Martin wrote:
>
> > I found this function for a server to be the best (so far) to read all
of
> > the headers of a http request from a client.
>
> I should warn you that opening the port as /string may not always
> be a good idea, since the browser could send you binary data with
> a POST method (for example), and you will want to send images as
> binary data. Of course you can use READ-IO and WRITE-IO to
> read/write binary data on a /string port, but shouldn't we avoid
> those functions if possible?
>
> YARWeS always used /binary ports to communicate with the browser.
hmm, I remember the case when I used /binary port, then I looked at
Sterling's proxy script and saw there is just 'open used without any
refinement and also read/lines always worked for me ... not used ports for
some time now, so maybe read/lines is buggy, as Holger explains ...
Cheers,
-pekr-