curl-and-php
How to POST multidimensional array data
From: Dshah <divxtamana_at_gmail.com>
Date: Sat, 22 Feb 2014 01:34:22 +0200
Date: Sat, 22 Feb 2014 01:34:22 +0200
Hi,
I have to post and a site which is using data like multidimensional arrays
like
Content-Disposition: form-data; name="attributes['price']"
Content-Disposition: form-data; name="features['URGENT'].productName"
$postFields = array (
'attributes[\'price\'].productName' => 'URGENT',
'features[\'URGENT\'].productName' => 'URGENT'
);
is that the right way to send post data? Because its not returning any
result and no error.. Thanks
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2014-02-22