Skip to content

FTP fails when tunneled through HTTP proxy #701

@daboul

Description

@daboul

Hi.
I think I've found an easy way to replicate known bug 65

"65. When doing FTP over a socks proxy or CONNECT through HTTP proxy and the
multi interface is used, libcurl will fail if the (passive) TCP connection
for the data transfer isn't more or less instant as the code does not
properly wait for the connect to be confirmed. See test case 564 for a first
shot at a test case."

Sharing it with you in case it could help. I'm not very familiar with GitHub and participating on projects, so my apologies if I should have done something else instead of posting here.

Using win32, VS compiled version of the "LIB Release - LIB OpenSSL - LIB LibSSH2" version of the 7.47.1.

FileZilla Server for the FTP server, and I've used CCproxy and FreeProxy as HTTP proxies.

A simple: .\curl.exe -T "{bla.txt,bla2.txt}" ftp://X.X.X.X -u ftpuser:xxx -v -x X.X.X.X:808 -p fails on the upload of the second file (code 425), while the same command works fine without the proxy specified.

Connected on port 21, sending welcome message...
220-FileZilla Server 0.9.56 beta
220-written by Tim Kosse (tim.kosse@filezilla-project.org)
220 Please visit https://filezilla-project.org/
USER ftpuser
331 Password required for ftpuser
PASS ******
230 Logged on
PWD
257 "/" is current directory.
EPSV
229 Entering Extended Passive Mode (|||57046|)
TYPE I
200 Type set to I
STOR bla.txt
150 Opening data channel for file upload to server of "/bla.txt"
226 Successfully transferred "/bla.txt"
EPSV
229 Entering Extended Passive Mode (|||51815|)
STOR bla2.txt
425 Can't open data connection for transfer of "/bla2.txt"
QUIT
221 Goodbye
disconnected.

Thanks,
daboul

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions