cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PHP curLib

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 10 Dec 2003 16:05:02 +0100 (CET)

On Tue, 9 Dec 2003, ed wrote:

> Help!!! curl newbie in deep!!!

No need to cross-post. Besides, you missed the most important mailing list for
you: curl-and-php.

> $sendvars['fname'] = "John";
> $sendvars['lname'] = "Smith";
> $sendvars['upfile'] = "@$logo";
> $enc=array();
> foreach($sendvars as $key=>$value)
> $enc[]=urlencode($key)."=".urlencode($value);
> curl_setopt($ch,CURLOPT_POSTFIELDS,implode("&",$enc));

This looks very odd. Is this really the documented way to do multipart
formposts using the PHP/CURL interface?

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2003-12-10