RE: 'POST' method leads to "411 Length Required"

"Dirk-Willem van Gulik" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <F3685F4A877F284F8054E328390447D1FA8E@bbcxues17.national.core.bbc.co.uk>
Note that this 'expect' is fairly soft
 

> -----Original Message-----
> From: Bjoern Hoehrmann [mailto:[email protected]] 
> Sent: 21 April 2009 23:42
> To: Aaron Naiman
> Cc: [email protected]
> Subject: Re: 'POST' method leads to "411 Length Required"
> 
> * 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.
> --
> Björn Höhrmann · mailto:[email protected] · 
> http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: 
> +49(0)160/4415681 · http://www.bjoernsworld.de
> 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · 
> http://www.websitedev.de/ 
> 

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
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.