cURL / Mailing Lists / curl-library / Single Mail

curl-library

Réf. : Re: Crash of command line tool "curl. exe" with not so bogus parameters

From: Philippe HAMEAU <philippe.hameau_at_sagem.com>
Date: Thu, 20 Jan 2005 14:47:30 +0100

Here is the output with tracing enabled :
**********************************************************
== Info: About to connect() to localhost port 9021
== Info: Trying 127.0.0.1... == Info: connected
== Info: Connected to localhost (127.0.0.1) port 9021
<= Recv header, 53 bytes (0x35)
0000: 220 Msy-w00-3704 X2 WS_FTP Server 5.0.0 (543543170
=> Send header, 16 bytes (0x10)
0000: USER anonymous
<= Recv header, 23 bytes (0x17)
0000: 331 Password required
=> Send header, 29 bytes (0x1d)
0000: PASS curl_by_daniel_at_haxx.se
<= Recv header, 20 bytes (0x14)
0000: 230 user logged in
== Info: We have successfully logged in
=> Send header, 5 bytes (0x5)
0000: PWD
<= Recv header, 30 bytes (0x1e)
0000: 257 "/" is current directory
== Info: Entry path is '/'
=> Send header, 9 bytes (0x9)
0000: CWD top
<= Recv header, 20 bytes (0x14)
0000: 250 CWD successful
=> Send header, 6 bytes (0x6)
0000: EPSV
<= Recv header, 21 bytes (0x15)
0000: 500 illegal command
=> Send header, 6 bytes (0x6)
0000: PASV
<= Recv header, 46 bytes (0x2e)
0000: 227 Entering Passive Mode (127,0,0,1,14,93).
== Info: Trying 127.0.0.1... == Info: connected
== Info: Connecting to 127.0.0.1 (127.0.0.1) port 3677
== Info: Connected the data stream with PASV!
=> Send header, 8 bytes (0x8)
0000: TYPE I
<= Recv header, 24 bytes (0x18)
0000: 200 Type set to IMAGE.
=> Send header, 18 bytes (0x12)
0000: STOR tmpfile.csp
<= Recv header, 52 bytes (0x34)
0000: 150 Opening BINARY data connection for tmpfile.csp
*** We read 1 bytes from file
=> Send data, 1 bytes (0x1)
0000: !
*** We read 0 bytes from file
== Info: Closing connection #0
Curl_easy_perform returns : 18
**********************************************************

I just don't get why libcurl will try to read since it has already read
the whole one-byte file.

My libCurl version is MinGW 7.12.2 SSL enabled. I use the curldll version
(libcurldll.a + libcurl.dll) since I don't want to rebuild the whole of
libcurl.

I'm using Ipswitch WS_FTP Server 5.0 as test FTP Server.

> It helps if you show us a protocol dump made with --trace-ascii.
Received on 2005-01-20