Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Passing both GET and POST params to HTTP Request

by moritz (Cardinal)
on Feb 23, 2013 at 12:19 UTC ( #1020299=note: print w/ replies, xml ) Need Help??


in reply to Passing both GET and POST params to HTTP Request

What you call "GET params" are just URL params. HTTP::Request doesn't have a special syntax for constructing an URL from path and parameter, that's not its job.

But for example URI has a method query_form that can help you in constructing the URL.

In general, HTTP::Request is pretty low level. If you want convenience, you might want to use a a more high-level abstraction (like LWP::UserAgent or Mojo::UserAgent or so).


Comment on Re: Passing both GET and POST params to HTTP Request
Download Code
Re^2: Passing both GET and POST params to HTTP Request
by Doctrin (Beadle) on Feb 23, 2013 at 15:25 UTC
    Thanks! URI would do the trick, I think :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2014-12-26 17:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (173 votes), past polls