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

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

by dorko (Prior)
on Feb 10, 2016 at 13:34 UTC ( [id://1154862]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use JSON;
    ...
    
    my $json_string = JSON::to_json($perl_structure);
    print URI::Escape::uri_escape($json_string);
    
  2. or download this
    https://example.com/api/v1/dosomething?name=test+name&file_ids[]=1&fil
    +e_ids[]=2&sub[name]=foo&sub[message]=bar
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found