| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: Hi + Multipart/Post question
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 3 Nov 2005 12:41:22 +0100 (CET)
On Thu, 3 Nov 2005, Simon Yorkston wrote:
> curl_setopt($ch, CURLOPT_POSTFIELDS,
This makes a plain normal post and not a multipart one.
> But I can't include the file in that string. I tried with &file=@file, and
The PHP/CURL multipart formpost API is rather... eh, silly, if you ask me and
> $this->post['file'] = @$filename;
You can only set one CURLOPT_POSTFIELDS.
> Anyone have any ideas?
Yes, use the curl command line tool (from your PHP script). It can do this
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2005-11-03 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info