Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP via PROXY with ICS

Status
Not open for further replies.

NuWood

Programmer
Mar 14, 2002
44
GB
Hi [noevil]

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 &quot;&quot;
[11:51:03] --- PWD
[11:51:03] --- > PWD
[11:51:03] --- < 257 &quot;/web/cgi-bin&quot; is current directory.
[11:51:03] --- Request 32 Done.
[11:51:03] --- StatusCode = 257
[11:51:03] --- LastResponse was : '257 &quot;/web/cgi-bin&quot; is current directory.'
[11:51:03] --- No error
[11:51:03] --- Directory is &quot;/web/cgi-bin&quot;
[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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top