in reply to Reading in Post Variables from a socket

The problem is that you might receive the http request in pieces, that’s normal, so a single socket read does not guarantee you the whole msg, you have to do couple of socket read to get the whole request, then do that m// or whatever you want.
  • Comment on Re: Reading in Post Variables from a socket

Replies are listed 'Best First'.
Re: Re: Reading in Post Variables from a socket
by pg (Canon) on Nov 14, 2002 at 19:42 UTC
    Forgot to mention, you can determine that you have received the whole request, if you get two blank lines in a row.