From: Jeremy Bopp Date: 2010-12-08T05:26:56+09:00 Subject: Re: HTTP POST request --> Ruby server On 12/7/2010 2:20 PM, Chananya Freiman wrote: > Alex Stahl wrote in post #966971: >> Can't say I know a solution for you... but you might want to try using >> Wireshark to check what's being sent. FF dev tools, in my experience, >> tend to be somewhat buggy and don't always accurately report what's >> going on. Wireshark will give you a much more exacting view as to >> what's in the content-body of the POST request. >> >> Especially because this part sounds really odd and not at all reflective >> of what's happening - "FireFox simply stops sending data" - FF doesn't >> send a header, wait for a response, and then send the body, which is >> what this implies. Lest you somehow configured it to use HEAD instead >> of POST. >> >> >> ________________________________________________________________________ > > Well, it seems like everything is ok by what Wireshark sees, yet it > doesn't work. > > I thought that maybe Ruby doesn't like printing whatever data it > received, for some reason, but just iterating over gets the thread > stuck. > > This is just weird... How are you iterating over the input? Are you using each or each_line? This is just a complete guess, but the problem could be that your iteration logic is waiting to see an end of line from the client. -Jeremy