curl-library
Re: IPv6 FTP PASV problems
Date: Tue, 28 Aug 2007 11:10:10 -0700
On Tue, Aug 28, 2007 at 05:01:18PM +0000, balson_at_comcast.net wrote:
> OK, I tried the FTPPORT command, but that doesn't seem to work either.
> The output from all of the various parameters I passed to FTPPORT are below.
>
> Any ideas?
>
>
> OS: Linux (Redhat EL4)
> CURL: Curl and libcurl 7.16.4
>
> curl_easy_setopt( pCURL, CURLOPT_FTPPORT, "-" );
>
>
> 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
> > EPRT |2|::1|34163|
> < 425 Can't create the data socket: Invalid argument
> * disabling EPRT usage
The 425 error code implies that there is an IPv6 routing problem between the
server and the client, and the server can't connect to curl. Can you check
with netstat to make sure that libcurl is opening the correct receive socket
when the EPRT command is sent? Are you able to connect to this server
using another ftp client using IPv6?
>
>
> curl_easy_setopt( pCURL, CURLOPT_FTPPORT, "fe80::213:72ff:fe8e:6d99%1" );
>
>
> < 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
> > EPRT |2|fe80::213:72ff:fe8e:6d99|34168|
> < 425 Can't create the data socket: Invalid argument
> * disabling EPRT usage
Interesting--libcurl is stripping the zone ID in this case. I don't know
if that's always desired behaviour.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2007-08-29