Curl POST doesn't support multidimensional arrays

119 views
Skip to first unread message

Alexander Obuhovich

unread,
Jul 8, 2010, 12:11:59 PM7/8/10
to In-Portal Bugs
I'm trying to post multidimensional array using curl, but I get array instead.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
curl_multi_dimensional_array_support.patch

Dmitry Andrejev

unread,
Jul 8, 2010, 12:30:08 PM7/8/10
to in-port...@googlegroups.com
Hi Alex,


Thanks for the patch.

How do I test this properly? and what does it mean as comment in the code //NEW?


DA

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
Jul 8, 2010, 1:34:47 PM7/8/10
to in-port...@googlegroups.com
This must be removed before commit. I just simply copied it from another project, when it has meaning.

To test you must pass multidimensional array to kCurlHelper::setPostData method, e.g.

$curl_helper->setPostData( Array( Array ('test', test'), Array ('test', test') ));

And then verify, that $_POST is exactly as array given to setPostData method.

I won't be explaining how to use kCurlHelper class of course.

Alexander Obuhovich

unread,
Jul 23, 2010, 5:06:12 PM7/23/10
to in-port...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages