#39637 [NEW]: Add more curl_setopt options
| From: | apinstein at mac dot com | Date: | Sun, 26 Nov 2006 16:22:54 +0000 |
| Subject: | #39637 [NEW]: Add more curl_setopt options | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-105446@lists.php.net to get a copy of this message | ||
From: apinstein at mac dot com
Operating system: all
PHP version: 5.2.0
PHP Bug Type: Feature/Change Request
Bug description: Add more curl_setopt options
Description:
------------
PHP's curl_setopt is missing many options available in
libcurl.
Reproduce code:
---------------
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FTP_USE_EPSV, false);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, 138 /* CURLOPT_FTP_FILEMETHOD */, 3 /*
CURLFTPMETHOD_SINGLECWD */); // not supported yet; integers don't work
$localFH = fopen($localCopyPath, 'w+');
curl_setopt($ch, CURLOPT_FILE, $localFH);
$ok = curl_exec($ch);
curl_close($ch);
Expected result:
----------------
I would expect that the curl extension would keep more up-
to-date with the curl options.
man curl_easy_setopt
will show all available curl options.
Alternatively, it'd be nice if there were a curl_easy_setopt
() function in php so that one could use options even if
they were not "supported" in php. At present, even passing
the correct integer values to curl_setopt() will not do
anything since the php curl extension only accepts defined
options.
In particular, I need the following options:
option: CURLOPT_FTP_FILEMETHOD
values: CURLFTPMETHOD_MULTICWD, CURLFTPMETHOD_NOCWD,
CURLFTPMETHOD_SINGLECWD
--
Edit bug report at http://bugs.php.net/?id=39637&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39637&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39637&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39637&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39637&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39637&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39637&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39637&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39637&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39637&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39637&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39637&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39637&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39637&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39637&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39637&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39637&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39637&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39637&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39637&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39637&r=mysqlcfg