| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
RE: Posting multiple values for a single key
From: YupLounge website analyse en optimalisatie <info_at_yuplounge.com>
Date: Fri, 4 Jul 2008 10:14:35 +0200
Hi Daniel,
$postfields['salaries'] = urlencode(serialize($salaries));
curl_setopt ($conn, CURLOPT_POSTFIELDS , $postfields );
makes it a multi part post. But your right, you have to build your
Example scripts:
$postfields['salaries'] = urlencode(serialize($salaries));
$ch = curl_init();
PHPdocument2.php
Keep up the good work Daniel (and hopefully they once listen to you at
Willem.
-----Oorspronkelijk bericht-----
On Fri, 4 Jul 2008, YupLounge website analyse en optimalisatie wrote:
> Posting an associative array with php-curl is possible After hours of work
[...]
> The only way you can send this is by serialize and urlencode. You must
Right, but by doing the serializing stuff you also no longer make it a
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2008-07-04 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info