Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: LWP Http Port

by kabeldag (Hermit)
on Jun 06, 2008 at 12:16 UTC ( [id://690660]=note: print w/replies, xml ) Need Help??


in reply to LWP Http Port

Actually, all those parameters are still being passed along, you are just not attaching them to the uri. Passing parameters to $req->content() is adding the parameters to the content portion of the HTTP packet... The port number makes no difference. Hmmm...

This is how I would do it (in case anybody was wondering):
use strict; use LWP::UserAgent; use LWP::Debug qw(+); use HTTP::Request; my $ua = LWP::UserAgent->new; $ua->agent("Wobbygong Shark/ 0.1"); # Create a request my $req_method = 'GET'; my $url = "http://thebigwobbygongsharkonheat.aquaworld.tv:8081/"; my $res; my $content_params = 'oneandthesame=;'; my $req = HTTP::Request->new( $req_method=>$url, HTTP::Headers->new( 'Content-Type'=>'application/x-www-form-urlencoded') ); $req->content($content_params); $ua->request($req);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://690660]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-23 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found