cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Lib Curl not uploading file while FTPS

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 6 Dec 2004 14:11:11 +0100 (CET)

On Mon, 6 Dec 2004, vamsi wrote:

> I have downloaded the DLL from
> http://curl.haxx.se/download/curl-7.12.2-win32-ssl-devel-mingw32.zip which
> is just the dll not the library.

That is a weird thing to say. The DLL *is* the library! Not that it matters
much...

> 2004-12-06 15:35:03,947: INFO: Connection from vamsi.APPIQ.COM
> (192.168.100.23).

...

> 2004-12-06 15:35:04,400: DEBUG: line from server = 227 Entering Passive Mode
> (192,168,100,23,14,171)

> 2004-12-06 15:35:04,432: DEBUG: pasvInfo = 192,168,100,23,12,162

What is this log coming from? And how come this line claims "12,162" at the
end of the line when the previous line said "14,171" ?

> 2004-12-06 15:35:04,447: DEBUG: line from client = STOR winzip.log
> 2004-12-06 15:35:04,447: DEBUG: waiting for line from server (1)
> 2004-12-06 15:35:04,447: DEBUG: line from server = 150 File status okay; about to open data connection
> 2004-12-06 15:35:04,447: DEBUG: waiting for line from server (2)
> 2004-12-06 15:35:04,447: DEBUG: starting transmitData

... at this point libcurl connects to the server to setup the data connection.
Which of those port numbers are correct and which does libcurl use?

> 2004-12-06 15:40:52,081: DEBUG: line from server = 451 Requested action
> aborted. Local error in processing

It seem libcurl didn't connect to the right port in time.

Suggestion: use this kind of command line with curl the command line tool:

$ curl -T filetoupload --ftp-ssl ftp://server.com/path/ --trace-ascii dump

And submit that dump file here.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-12-06