Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by dorko (Prior)
on Feb 10, 2016 at 13:34 UTC ( #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
Node Status?
node history
Node Type: note [id://1154862]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2021-03-01 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?