After much mucking, removing perl from the FreeBSD box, installing just perl 5.6.1, and the required modules (which didn't fix my problem!), I decided to scrap it and attack it another way (HTTP::Request::Common) as follows:
use HTTP::Request::Common; my %params = $q->Vars; my $http_response = $ua->request(POST 'https://www.paypal.com/cgi-bin/webscr',[%params]); this worked. I still have NO idea why I could not use the methods in LWP::UserAgent originally... At 05:10 PM 2/3/02 -0800, Mike Ciavarella wrote: >Thanks in advance for ANY help anyone can offer! > >My script continues to die when trying to set the content-type to my >HTTP::Request object. > >I have made clean, rebuilt, and reinstalled libwww-perl 5.63 after >remaking the following modules: >Compress-Zlib-1.16 >Digest-MD5-2.16 >HTML-Parser-3.25 >MIME-Base64-2.12 >libnet-1.0901 >URI-1.18 > >everything makes , makes test, and makes install just fine. > >Removing the die statement from the assignment, and using LWP::Debug >confirms the problem of lack of headers: >LWP::UserAgent::new: () >LWP::UserAgent::request: () >LWP::UserAgent::send_request: POST https://www.paypal.com/cgi-bin/webscr >LWP::UserAgent::_need_proxy: Not proxied > > >Can anyone please offer any help or direction on troubleshooting? I've >been beating my head for about two weeks on this, and am probably >overlooking something quite simple. > >Thanks again for your time, >--Mike > > > ><code> >use LWP::UserAgent; >use strict; > >$CGI::DISABLE_UPLOADS = 1; >$CGI::POST_MAX = 512 * 1024; > >.. >.. >.. >my $httprequest = HTTP::Request->new ( 'POST', >'https://www.paypal.com/cgi-bin/webscr' ); >$httprequest->content_type('application/x-www-form-urlencoded') or die >"Setting content-type in request object: $!"; >.. >.. >.. ></code> > > >System Specs are as follows: > Platform: > osname=freebsd, osvers=4.2-release, archname=i386-freebsd >Characteristics of this binary (from libperl): > Compile-time options: USE_LARGE_FILES > Built under freebsd > Compiled at Jan 31 2002 20:52:26 > @INC: > /usr/local/lib/perl5/5.6.1/i386-freebsd > /usr/local/lib/perl5/5.6.1 > /usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd > /usr/local/lib/perl5/site_perl/5.6.1 > /usr/local/lib/perl5/site_perl/5.6.0/i386-freebsd > /usr/local/lib/perl5/site_perl/5.6.0 > /usr/local/lib/perl5/site_perl/5.005/i386-freebsd > /usr/local/lib/perl5/site_perl/5.005 > /usr/local/lib/perl5/site_perl > . > >This is perl, v5.6.1 built for i386-freebsd >
