Nested parameters converted to strings #35

Closed
zacharydanger opened this Issue Dec 18, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@zacharydanger

Given a request like this:

$params = array(
  'foo' => array('bar' => 'asdf')
);

Request::post($some_url, array(), $params);

This ends up posting over as 'foo=Array' instead of 'foo[bar]=asdf'. Right now the workaround it to pass it in as Request::post($some_url, array(), http_build_query($params));, but it seems like it should be detected and handled by the library.

@rmccue

This comment has been minimized.

Show comment Hide comment
@rmccue

rmccue Dec 19, 2012

Owner

Related: #33

I'm guessing this is with the cURL transport, since fsockopen uses http_build_query internally.

Owner

rmccue commented Dec 19, 2012

Related: #33

I'm guessing this is with the cURL transport, since fsockopen uses http_build_query internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment