cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: --ftp-port bug with unresolvable names?

From: <jon.turner_at_thomson.com>
Date: Thu, 19 Jan 2006 11:14:00 -0000

Thanks for the responses.

I had been using libcurl 7.15.1 in my own application, but I assumed it
was the same problem on the older version of curl.exe I had. After
upgrading to a later version it doesn't crash, but doesn't work with the
correct name either, but it does when using IP.

C:\Temp>curl -V
curl 7.15.1 (i586-pc-mingw32msvc) libcurl/7.15.1 OpenSSL/0.9.7c
zlib/1.2.2
Protocols: tftp ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL libz

C:\Temp>curl ftp://turnerj > out
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
100 2564 0 2564 0 0 9639 0 --:--:-- --:--:-- --:--:--
0

C:\Temp>curl -P turnerj2 ftp://turnerj > out
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
curl: (30) Failed to do PORT

C:\Temp>curl -P idontexist ftp://turnerj > out
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0
curl: (30) Failed to do PORT

C:\Temp>ping -a turnerj2
Pinging turnerj2.datastream.com [159.104.223.11] with 32 bytes of data:
Reply from 159.104.223.11: bytes=32 time<1ms TTL=128

C:\Temp>curl -P 159.104.223.11 ftp://turnerj > out
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
100 2564 0 2564 0 0 12630 0 --:--:-- --:--:-- --:--:--
0
 

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: 19 January 2006 10:01
To: libcurl development
Subject: RE: --ftp-port bug with unresolvable names?

On Thu, 19 Jan 2006, jon.turner_at_thomson.com wrote:

> Libcurl 7.15.1, running on WindowsXP. I try and get some information
> about this later when I have time.
>
> C:\Documents and Settings\Jon>curl -V
> curl 7.12.0 (i386-pc-win32) libcurl/7.12.0 OpenSSL/0.9.7c zlib/1.2.1

...

> C:\Documents and Settings\Jon>curl -P idontexist ftp://turnerj > out

Heh, there's a mismatch between your belief and what curl -V outputs.

This clearly looks like you're seeing a bug in 7.12.0. Can you test it
again and make sure you're running 7.15.1 ?

--
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
Received on 2006-01-19