Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 chilling in the Monastery: (3)
As of 2015-07-05 09:44 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 (61 votes), past polls