Open GoogleCodeExporter opened 8 years ago
I also ran into this problem. Essentially, the library doesn't handle
multidimensional parameter arrays at all. I assume this might be because
different frameworks handle it differently (see
http://stackoverflow.com/questions/7578269/where-did-this-ruby-parameter-convent
ion-come-from). PHP and Rails expect data in this format:
foo[]=bar&foo[]=baz
whereas other frameworks expect to see
foo=bar&foo=baz
So if the library uses http_build_query, it'll output multidimensional arrays
in the PHP-style format. That will work for PHP and Rails endpoints, but others
(Java, say) will choke on it.
Probably the best way to handle it is a switch of some kind
(::setPostEncodingMethod() or some such) that lets you use
http_build_query()-style parameters if you know you're dealing with a PHP or
Rails endpoint.
Original comment by katherin...@acquia.com
on 16 Nov 2011 at 8:51
Original issue reported on code.google.com by
archul...@seqcentral.com
on 17 Mar 2011 at 6:05