#38574 [Opn->Asn]: enable ssl for ftp (CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH)
ID: 38574
Updated by: tony2001@php.net
Reported By: php at gozer dot org
-Status: Open
+Status: Assigned
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.4.4
-Assigned To:
+Assigned To: iliaa
Previous Comments:
------------------------------------------------------------------------
[2006-08-23 23:07:15] php at gozer dot org
Description:
------------
CURLOPT_FTP_SSL, CURLOPT_FTPSSLAUTH, and related options aren't
registered in ext/curl.c. Without these, you can't do any ssl-related
ftp bits...
patch:
http://www.gozer.org/test/php-4.4.4.ftpssl.diff
Reproduce code:
---------------
<?php
$curl = curl_init();
if($curl) {
curl_setopt($curl, CURLOPT_URL, "ftp://ftp.mozilla.org/");
curl_setopt($curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);
curl_setopt($curl, CURLOPT_VERBOSE, 1);
curl_exec($curl);
curl_close($curl);
}
?>
Expected result:
----------------
* Connected to ftp.mozilla.org (63.245.208.138) port 21
< 220 (vsFTPd 2.0.1)
> AUTH SSL
< 530 Please login with USER and PASS.
> AUTH TLS
< 530 Please login with USER and PASS.
> USER anonymous
< 331 Please specify the password.
(unsupported here, but you get the idea)
Actual result:
--------------
* Connected to ftp.mozilla.org (63.245.208.138) port 21
< 220 (vsFTPd 2.0.1)
> USER anonymous
< 331 Please specify the password.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38574&edit=1
Thread (3 messages)