Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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).

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020299]
[choroba]: TITS = Try It To See :-)
[LanX]: buongiorno!
[Discipulus]: buongiorno a te!
[choroba]: LanX ciao! BTW, yesterday evening I arrived home in my new car ;-)
[Discipulus]: it seems some signal is issued but only by services
[Discipulus]: which one choroba?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-01-17 09:23 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (153 votes). Check out past polls.