Re: 'POST' method leads to "411 Length Required"
Aaron Naiman <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
Dear Björn,
Thank you for the quick result.
* Aaron Naiman wrote:
> >$request = new HTTP::Request 'POST', 'http://www.google.com';
> >
> >$response = $ua->request($request);
>
> You are using POST but are not posting any data, and apparently the
> server ...
>
> >An Error Occurred 411 Length Required
>
> ... expects you to post some data when using POST.
But as can be seen from .../HTTP/Status.pm, this is a *client* error, and
not a server error.
Still stuck, ....
Thanx,
Aaron
--
Aaron ("Aharon") Naiman
Jerusalem College of Technology--Machon Lev
[email protected]
http://math.jct.ac.il/~naiman