From: Jeremy Bopp Date: 2010-12-08T05:44:44+09:00 Subject: Re: HTTP POST request --> Ruby server On 12/7/2010 2:36 PM, Chananya Freiman wrote: > No, wait, you were right! > I tried readchar and it worked! > > Thanks a lot, I've been stuck on this for two days :) Great to hear. For the record, the other methods you tried will all run until the end of the stream is seen, even each_byte. FireFox is probably not closing the stream it opens for the POST message after sending the payload, in case you want use it to make another request most likely. Beware that readchar will also block if you try to use it to read when there is no more data but the stream is still open. In any case, you really should try out one of the existing web frameworks unless your goal is actually to learn how to build your own HTTP server. ;-) -Jeremy