sirikata/liboauthcpp

Problem with two parameters with same name

Closed this issue · 2 comments

If you have a query with two parameters of the same name, only one will be copied to the output query string, eg for the linkedin api:

http://api.linkedin.com/v1/people-search:(facets:(code,buckets:(code,name,count)))?facets=location,network&facet=location%2Cus%3A84&facet=network%2CF

I tested this with http://api.linkedin.com/v1/people/~/network/updates, which lets you specify multiple values for type, e.g. type=PRFU&type=CONN&count=100, and it works fine through the simple_request demo. I think the people search provided as an example in the report may still have an issue, possibly due to some urlencode/decode issue (maybe we don't handle '(' and ')' properly? Don't often encounter those in URLs).

Thanks Ewen, this is now working fine (and no problems with parentheses)