curl-and-php
multipart form
From: Mikolaj Jan Podlaszewski <mikolaj_at_webgate.bg>
Date: Tue, 01 Feb 2005 12:44:47 +0200
Date: Tue, 01 Feb 2005 12:44:47 +0200
Is it possible to mimic multipart form with file field with PHP/CURL?
If so what is the proper way?
The problem seems to be simple but the more I read the more mess comes
to my head. I saw some examples giving '@filename' as POST variable
value but they results in "failed creating formpost data" error.
Man pages says to use CURLOPT_HTTPPOST for file upload. Unfortunately
earlier post from that list
(http://curl.haxx.se/mail/curlphp-2001-10/0002.html) says it is
unsupported in PHP yet. Have things changed till year 2001?
Could you please describe what is the current state of the problem?
Thanks
M.
Using PHP 4.3.10 with libcurl/7.12.3 OpenSSL/0.9.7e zlib/1.1.4
Received on 2005-02-01