D:\smth>curl.exe ftp://upload-2.cdn.farm.net:21 --proxytunnel --config "credentials4ftp.txt" --config "credentials4proxy.txt" --disable-epsv -v -l * About to connect() to proxy 145.176.8.21 port 8012 (#0) * Trying 145.176.8.21... * Connected to 145.176.8.21 (145.176.8.21) port 8012 (#0) * Establish HTTP proxy tunnel to upload-2.cdn.farm.net:21 * Proxy auth using Basic with user 'proxyuser' * Server auth using Basic with user 'ftpuser' > CONNECT upload-2.cdn.farm.net:21 HTTP/1.1 > Host: upload-2.cdn.farm.net:21 > Proxy-Authorization: Basic giEbbHJ1ePrgABerHmkpms= > User-Agent: curl/7.29.0 > Proxy-Connection: Keep-Alive > < HTTP/1.1 200 Connection established < * Proxy replied OK to CONNECT request < 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- < 220-You are user number 1 of 700 allowed. < 220-Local time is now 10:47. Server port: 21. < 220-This is a private system - No anonymous login < 220-IPv6 connections are also welcome on this server. < 220 You will be disconnected after 15 minutes of inactivity. > USER ftpuser < 331 User ftpuser OK. Password required > PASS ftppassword < 230-User ftpuser has group access to: ftpgroup < 230-This server supports FXP transfers < 230 OK. Current restricted directory is / > PWD < 257 "/" is your current location * Entry path is '/' > PASV * Connect data stream passively < 227 Entering Passive Mode (124,128,228,10,233,112) * Trying 145.176.8.21... * Connecting to 124.8.128.10 (145.176.8.21) port 8012 * Establish HTTP proxy tunnel to 124.8.128.10:59760 * Proxy auth using Basic with user 'proxyuser' * Server auth using Basic with user 'ftpuser' * Send failure: Socket is not connected * Failed sending CONNECT to proxy * Failure sending ABOR command: Failed sending data to the peer * Closing connection 0 curl: (55) Send failure: Socket is not connected D:\Smth>