note 88999 deleted from function.httprequest-setpostfields by danbrown
| From: | danbrown@php.net | Date: | Wed, 18 Feb 2009 01:32:37 +0000 |
| Subject: | note 88999 deleted from function.httprequest-setpostfields by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-150770@lists.php.net to get a copy of this message | ||
Note Submitter: Trey Hyde
----
Setting arrays doesn't do what you may expect.
$request->setPostFields(array('foo' => array('bar','baz')));
will look like this (in GET speak)
foo[0]=bar&foo[1]=baz
AND NOT
foo=bar&foo=baz
I think the only way to do the right thing is to use the set raw post functionality and write your
own marshaller. Any other workaround?