curl-and-python

Re: Using PyCurl to connect to a FTP with TLSv1 ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 21 Dec 2006 10:30:57 +0100 (CET)

On Thu, 21 Dec 2006, Stefan Schneider wrote:

> curl --trace-ascii "output.log" -1 -k --ftp-ssl --connect-timeout 40
> -l --max-time 50 -s -S --user MyUser:MyPass "ftp://MyFTPServer:2121"
> -Q "CWD /backup/date/" -Q "PWD" -Q "QUIT"

> Since i don't get a real status code back from the "CWD", i currently grep
> in the "output.log" for "ailed" and by that decide if the test was fine or
> not - which is pretty ugly i think :]

Just wanted to point out that you could CWD to the proper path in a less
complicated way by using this URL:

   ftp://MyFTPServer:2121//backup/date/"

... and it'll return a failure if it can't change to that directory.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2006-12-21