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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.