cURL / Mailing Lists / curl-library / Single Mail


Re: PHP curLib

From: Daniel Stenberg <>
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 -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
This 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!
Received on 2003-12-10