Hi
I have used the ICS FTP Client in DELPHI 6 with great success. I have one problem though I cannot seem to PUT anything through a proxy server.
If I set the application to communicate directly with the server all is well. When I setup for proxy usage all works well except for the PUT which fails with
550 (Unable to establish data connection, error #10061)
I have tried Mailgate and Sambar FTP proxies and neither works (SAMBAR just times out on the STOR command)
Here is a log of the session for Mailgate (I have changed the site details for security) I am logging everything so there may be some duplication
[11:50:59] --- < 220 MailGate ftp gateway, enter [<user>@]<site>[:<port>]
[11:50:59] --- Connected
[11:50:59] --- USER someone@ftp.somesite.co.uk
[11:50:59] --- > USER someone@ftp.somesite.co.uk
[11:51:02] --- < 331 Password required for someone.
[11:51:02] --- PASS
[11:51:02] --- > PASS
[11:51:03] --- < 230 User someone logged in.
[11:51:03] --- Request 5 Done.
[11:51:03] --- StatusCode = 230
[11:51:03] --- LastResponse was : '230 User someone logged in.'
[11:51:03] --- No error
[11:51:03] --- TYPE A
[11:51:03] --- > TYPE A
[11:51:03] --- < 200 Type set to A.
[11:51:03] --- Request 37 Done.
[11:51:03] --- StatusCode = 200
[11:51:03] --- LastResponse was : '200 Type set to A.'
[11:51:03] --- No error
[11:51:03] --- CWD /web/cgi-bin
[11:51:03] --- > CWD /web/cgi-bin
[11:51:03] --- < 250 CWD command successful.
[11:51:03] --- Request 4 Done.
[11:51:03] --- StatusCode = 250
[11:51:03] --- LastResponse was : '250 CWD command successful.'
[11:51:03] --- No error
[11:51:03] --- Directory is ""
[11:51:03] --- PWD
[11:51:03] --- > PWD
[11:51:03] --- < 257 "/web/cgi-bin" is current directory.
[11:51:03] --- Request 32 Done.
[11:51:03] --- StatusCode = 257
[11:51:03] --- LastResponse was : '257 "/web/cgi-bin" is current directory.'
[11:51:03] --- No error
[11:51:03] --- Directory is "/web/cgi-bin"
[11:51:03] --- PASV
[11:51:03] --- > PASV
[11:51:03] --- < 227 Entering Passive Mode (213,232,100,30,169,99).
[11:51:03] --- Ready to Transmit
[11:51:04] --- Request 18 Done.
[11:51:04] --- StatusCode = 550
[11:51:04] --- LastResponse was : 'Unable to establish data connection, error #10061'
[11:51:04] --- Error = 550 (Unable to establish data connection, error #10061)
[11:51:04] --- QUIT
[11:51:04] --- > QUIT
[11:51:04] --- < 221 Goodbye.
[11:51:04] --- Request 15 Done.
[11:51:04] --- StatusCode = 221
[11:51:04] --- LastResponse was : '221 Goodbye.'
[11:51:04] --- No error
Regards
Andrew Wood
I have used the ICS FTP Client in DELPHI 6 with great success. I have one problem though I cannot seem to PUT anything through a proxy server.
If I set the application to communicate directly with the server all is well. When I setup for proxy usage all works well except for the PUT which fails with
550 (Unable to establish data connection, error #10061)
I have tried Mailgate and Sambar FTP proxies and neither works (SAMBAR just times out on the STOR command)
Here is a log of the session for Mailgate (I have changed the site details for security) I am logging everything so there may be some duplication
[11:50:59] --- < 220 MailGate ftp gateway, enter [<user>@]<site>[:<port>]
[11:50:59] --- Connected
[11:50:59] --- USER someone@ftp.somesite.co.uk
[11:50:59] --- > USER someone@ftp.somesite.co.uk
[11:51:02] --- < 331 Password required for someone.
[11:51:02] --- PASS
[11:51:02] --- > PASS
[11:51:03] --- < 230 User someone logged in.
[11:51:03] --- Request 5 Done.
[11:51:03] --- StatusCode = 230
[11:51:03] --- LastResponse was : '230 User someone logged in.'
[11:51:03] --- No error
[11:51:03] --- TYPE A
[11:51:03] --- > TYPE A
[11:51:03] --- < 200 Type set to A.
[11:51:03] --- Request 37 Done.
[11:51:03] --- StatusCode = 200
[11:51:03] --- LastResponse was : '200 Type set to A.'
[11:51:03] --- No error
[11:51:03] --- CWD /web/cgi-bin
[11:51:03] --- > CWD /web/cgi-bin
[11:51:03] --- < 250 CWD command successful.
[11:51:03] --- Request 4 Done.
[11:51:03] --- StatusCode = 250
[11:51:03] --- LastResponse was : '250 CWD command successful.'
[11:51:03] --- No error
[11:51:03] --- Directory is ""
[11:51:03] --- PWD
[11:51:03] --- > PWD
[11:51:03] --- < 257 "/web/cgi-bin" is current directory.
[11:51:03] --- Request 32 Done.
[11:51:03] --- StatusCode = 257
[11:51:03] --- LastResponse was : '257 "/web/cgi-bin" is current directory.'
[11:51:03] --- No error
[11:51:03] --- Directory is "/web/cgi-bin"
[11:51:03] --- PASV
[11:51:03] --- > PASV
[11:51:03] --- < 227 Entering Passive Mode (213,232,100,30,169,99).
[11:51:03] --- Ready to Transmit
[11:51:04] --- Request 18 Done.
[11:51:04] --- StatusCode = 550
[11:51:04] --- LastResponse was : 'Unable to establish data connection, error #10061'
[11:51:04] --- Error = 550 (Unable to establish data connection, error #10061)
[11:51:04] --- QUIT
[11:51:04] --- > QUIT
[11:51:04] --- < 221 Goodbye.
[11:51:04] --- Request 15 Done.
[11:51:04] --- StatusCode = 221
[11:51:04] --- LastResponse was : '221 Goodbye.'
[11:51:04] --- No error
Regards
Andrew Wood