in reply to Re: HTTP POST Problems...
in thread HTTP POST Problems...

Hi, The content length does NOT include the header component, only the POSTed data. Also, I would like to change your example to the following:
{ undef $/; my $input = <$client>; $input =~ s/\r//g; my ($headers, $body) = split(/\n\n/, $input, 2); }
since the standard defines that headers and body should be separated by \r\n\r\n, and this solution works both on \r\n\r\n and \n\n.