Bill Platt wrote:

> Hello, 
> 
> I am trying to build a search engine submitter using perl 5.0. 
> When I try to post to specific search engines, I get the 
> following error:
> 
> Response Code: 411 Response Message:Length Required
> 
> I am still a moderate perl programmer, but I am learning. 
> Could you point me in the direction I need to know to make
> a determination of the Content-Length and how to deliver it
> through the standard  use HTTP::Request::Common qw/POST/
> module?


Assuming you have all of the POST data in a vrbl (eg: $post_args):


$request->header('Content-Length', length $post_args);

-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to