Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Craft http request?

by arkturuz (Curate)
on Sep 25, 2009 at 10:02 UTC ( #797443=note: print w/ replies, xml ) Need Help??


in reply to Craft http request?

Use LWP::UserAgent with HTTP::Request like this:

my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new( POST => $my_uri ); $req->header("Header 1", "Value 1"); $req->header("Header 2", "Value 2"); # etc


Comment on Re: Craft http request?
Download Code
Re^2: Craft http request?
by perlpreben (Beadle) on Sep 25, 2009 at 10:10 UTC
    Cool. Is PUT, TRACE etc also supported? or is it only POST and GET?
      I believe no. But check the documentation anyway.
        It was supported :), but how do I add the content to post requests? any idea?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-06 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (69 votes), past polls