Linked Questions
32 questions linked to/from Authoritative position of duplicate HTTP GET query keys
1 vote
1 answer
105 views
How do I convert a string to an associative array when the string contains a duplicate key in PHP? [duplicate]
Because of the way our application is built, there are sometimes duplicate keys in the URL query, like these two m keys: foo=bar&foz=baz&fom=bam&m=q50&m=350Z They are then used to do ...
2694 votes
73 answers
5.5m views
How can I get query string values in JavaScript?
Is there a plugin-less way of retrieving query string values via jQuery (or without)? If so, how? If not, is there a plugin which can do so?
498 votes
34 answers
531k views
How to convert URL parameters to a JavaScript object? [duplicate]
I have a string like this: abc=foo&def=%5Basf%5D&xyz=5 How can I convert it into a JavaScript object like this? { abc: 'foo', def: '[asf]', xyz: 5 }
389 votes
46 answers
526k views
POST unchecked HTML checkboxes
I've got a load of checkboxes that are checked by default. My users will probably uncheck a few (if any) of the checkboxes and leave the rest checked. Is there any way to make the form POST the ...
376 votes
34 answers
498k views
Parse a URI String into Name-Value Collection
I've got the URI like this: https://google.com.ua/oauth/authorize?client_id=SS&response_type=code&scope=N_FULL&access_type=offline&redirect_uri=http://localhost/Callback I need a ...
368 votes
7 answers
496k views
Correct way to pass multiple values for same parameter name in GET request
I'm looking into what is the correct way to pass multiple values for the same parameter name in a GET request. I've seen URLs like this: http://server/action?id=a&id=b And I've seen URLs like ...
124 votes
18 answers
213k views
Manipulate a url string by adding GET parameters
I want to add GET parameters to URLs that may and may not contain GET parameters without repeating ? or &. Example: If I want to add category=action $url="http://www.acme.com"; // will add ?...
101 votes
8 answers
125k views
How can I build a URL with query parameters containing multiple values for the same key in Swift?
I am using AFNetworking in my iOS app and for all the GET requests it makes, I build the url from a base URL and than add parameters using NSDictionary Key-Value pairs. The problem is that I need ...
156 votes
6 answers
186k views
How to construct a REST API that takes an array of id's for the resources
I am building a REST API for my project. The API for getting a given user's INFO is: api.com/users/[USER-ID] I would like to also allow the client to pass in a list of user IDs. How can I construct ...
125 votes
2 answers
148k views
REST api: requesting multiple resources in a single get [duplicate]
I'm trying to design a RESTful API where the users can fetch a single product or list of products in a single GET request. Each product has a unique id. The single product URL is simple enough: http://...
22 votes
9 answers
60k views
Access GET directly from JavaScript?
I suppose I could use PHP to access $_GET variables from JavaScript: <script> var to = $_GET['to']; var from = $_GET['from']; </script> <script src="realScript" type="text/javascript"&...
12 votes
6 answers
18k views
Parse NSURL path and query on iOS
Are there any standard objects or functions to parse an NSURL's components? Clearly I could write one, but why re-invent the wheel? [NSURL path] will return an NSString like "argX=x&argY=y&...
17 votes
4 answers
6k views
Portable Class Library (PCL) Version Of HttpUtility.ParseQueryString
Is there a Portable Class Library (PCL) version Of HttpUtility.ParseQueryString contained in System.Web or some code I could use? I want to read a very complex URL.
8 votes
2 answers
20k views
Python Bottle how to read request parameters
I am using http://dingyonglaw.github.com/bootstrap-multiselect-dropdown/#forms to display a dropdown with multiple check boxes. <li> <label> <input type="checkbox" name="filters" ...
6 votes
5 answers
7k views
PHP http_build_query with two array keys that are same
I want to construct this url using http_build_query: https://www.googleapis.com/freebase/v1/topic/m/0d6lp?filter=/common/topic/notable_for&filter=/common/topic/alias Please note that the "filter="...