Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Reading tcp ports in rebol line by line

From: g:santilli:tiscalinet:it at: 9-Nov-2000 12:28

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. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/