in reply to Re: HTTP POST Problems...
in thread HTTP POST Problems...
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.{ undef $/; my $input = <$client>; $input =~ s/\r//g; my ($headers, $body) = split(/\n\n/, $input, 2); }
|
|---|