in reply to HTTP POST Problems...
{ undef $/; my $input = <$client>; my ($headers, $body) = split(/(\r?\n){2}/, $input, 2); }
Also too, from memory, if I recall correctly, the content length header also includes the header component of the response, not merely the response body component which may account for some of your difficulties. I am however willing to be corrected on this point ...
Update - Updated code and comments to reflect the comments below ... ++Marcello
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTTP POST Problems...
by Marcello (Hermit) on Jan 20, 2002 at 17:34 UTC |