Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
though still no luck. What am I doing wrong here?while ($input = <$client>) { $input =~ s/\r\n//g; # kill CR and NL chars $input =~ /^Content-Length: (\S*)/i && ($content_length=$1); ... more code .... ## find a blank line and we already have the content length then rea +d the POST data if (length($input) == 0 && $content_length > 0) { $client->recv($form_content,$content_length); } }
Edit kudra, 2002-01-20 replaced pre with code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP POST Problems...
by rob_au (Abbot) on Jan 20, 2002 at 13:58 UTC | |
by Marcello (Hermit) on Jan 20, 2002 at 17:34 UTC | |
|
Re: HTTP POST Problems...
by metadoktor (Hermit) on Jan 20, 2002 at 14:21 UTC | |
|
Re: HTTP POST Problems...
by Anonymous Monk on Jan 21, 2002 at 05:54 UTC | |
|
Re: HTTP POST Problems...
by Anonymous Monk on Jan 21, 2002 at 05:33 UTC |