note 88999 added to function.httprequest-setpostfields

From: Date: Wed, 18 Feb 2009 01:26:50 +0000
Subject: note 88999 added to function.httprequest-setpostfields
Groups: php.notes 
Request: Send a blank email to php-notes+get-150768@lists.php.net to get a copy of this message
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? ---- Server IP: 69.147.83.197 Probable Submitter: 99.24.6.121 ---- Manual Page -- http://www.php.net/manual/en/function.httprequest-setpostfields.php Edit -- https://master.php.net/note/edit/88999 Del: integrated -- https://master.php.net/note/delete/88999/integrated Del: useless -- https://master.php.net/note/delete/88999/useless Del: bad code -- https://master.php.net/note/delete/88999/bad+code Del: spam -- https://master.php.net/note/delete/88999/spam Del: non-english -- https://master.php.net/note/delete/88999/non-english Del: in docs -- https://master.php.net/note/delete/88999/in+docs Del: other reasons-- https://master.php.net/note/delete/88999 Reject -- https://master.php.net/note/reject/88999 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150768) next »