Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Building a URL Query String from a Data Structure

by dorko (Prior)
on Feb 10, 2016 at 13:07 UTC ( #1154851=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
    say $request->decoded_content;
    
    say Dumper $request;
    
  2. or download this
    {"file_ids":[1,2],"name":"test name","sub":{"message":"bar","name":"fo
    +o"}}
    $request = bless( {
                        '_content' => '{"file_ids":[1,2],"name":"test name
    +","sub":{"message":"bar","name":"foo"}}',
    ...
                                             }, 'HTTP::Headers' ),
                        '_method' => undef
                      }, 'HTTP::Request::JSON' );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2021-08-04 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (41 votes). Check out past polls.

    Notices?