curl-and-php
Re: CURLOPT_POSTFIELDS and associative arrays
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 May 2002 18:04:42 +0200 (MET DST)
Date: Fri, 10 May 2002 18:04:42 +0200 (MET DST)
On Thu, 9 May 2002 timhewitt_at_myostrich.net wrote:
> I'm new to curl, and have been trying to use an associative array as the
> argument to CURLOPT_POSTFIELDS. According to the upgrade notes for PHP
> v4.0.3, this is now possible, but I can't for the life of me make it work.
It is possible, but it then makes a multipart formpost instead of a regular
url-encoded one. They're not simply interchangeable.
(I just read the ext/curl.c code, I'm not a PHP hacker.)
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.netReceived on 2002-05-10