curl-library
IPv6 FTP PASV problems
Date: Tue, 28 Aug 2007 13:11:24 +0000
Hello. I am having IPv6 related problems with FTP that seem to revolve around the use of PASV. The problem is that I don't know how to turn of PASV as there doesn't seem to be a CURPOPT for it. Here's the error we are getting:
< 230-User guest has group access to: guest
< 230 OK. Current directory is /home/guest
> PWD
< 257 "/home/guest" is your current location
* Entry path is '/home/guest'
> CWD incoming
< 250 OK. Current directory is /home/guest/incoming
> EPSV
* Connect data stream passively
< 425 All reserved TCP ports are busy
* disabling EPSV usage
> PASV
< 425 You cannot use PASV on IPv6 connections. Use EPSV instead.
* Bad PASV/EPSV response: 425
* Remembering we are in dir incoming/RSC_CELERRA_11111_22222_33333.end.gzip.en2
* Connection #0 to host fe80::213:72ff:fe8e:6d99%1 left intact
* FTP: unknown PASV reply
> QUIT
< 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
< 221 Logout.
* Closing connection #0
The CURL call that we're making are as follows:
curl_easy_setopt( pCURL, CURLOPT_UPLOAD, TRUE );
curl_easy_setopt( pCURL, CURLOPT_VERBOSE, TRUE );
curl_easy_setopt( pCURL, CURLOPT_TRANSFERTEXT, FALSE );
curl_easy_setopt( pCURL, CURLOPT_USERPWD, chUserIDPassword );
curl_easy_setopt(pCURL, CURLOPT_URL, chFTPCmd);
curl_easy_setopt(pCURL, CURLOPT_READDATA, fp);
//-----------------
// try the transfer
//-----------------
CURLcode res = curl_easy_perform( pCURL );
Anyone know how to turn off the PASV?
We've tried the following as well:
curl_easy_setopt( pCURL, CURLOPT_FTP_USE_EPSV, TRUE );
curl_easy_setopt( pCURL, CURLOPT_FTP_USE_EPSV, FALSE );
curl_easy_setopt( pCURL, CURLOPT_FTP_USE_EPRT, TRUE );
We've tried all in various configurations. But it doesn't seem to change anything.
Any help is greatly appreciated
Thanks, Jim
Received on 2007-08-29