[REBOL] Re: Reading tcp ports in rebol line by line
From: al:bri:xtra at: 10-Nov-2000 17:48
Gabriele Santilli wrote:
> 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.
That's a very good point. Thanks for pointing it out, Gabriele. I'll see if
I can do it better, by using binary mode.