[twsocket] SSL FTP clients (demo) connects but timeout on List command

2012-07-03 Thread Dusan Halicky
I use FTP client demo from OverbyteIcsSslFtpTst1.dpr. I set up server, port, username, password, host file (directory on server). Then I use these commands: Open - ok Auth TLS/SSL - ok User - ok Pass - ok Cwd Winsock version 2.2 WinSock 2.0 Running Executing Requested Command 220 EFT

Re: [twsocket] SSL FTP clients (demo) connects but timeout on List command

2012-07-03 Thread Dusan Halicky
Sorry, I accidentally pressed send button before the mail was done. I use FTP client demo from OverbyteIcsSslFtpTst1.dpr. I set up server, port, username, password, host file (directory on server). Then I use these commands: Open - ok Auth TLS/SSL - ok User - ok Pass - ok Cwd - ok Pwd - ok (I

Re: [twsocket] SSL FTP clients (demo) connects but timeout on List command

2012-07-03 Thread Dusan Halicky
The DIR command is the first command that needs to use the data channel, failure usually means the new data TCP connection has been blocked by a firewall or NAT routing has failed to find a route. It might be possible, we have very restrictive firewall. Is there any way how to detect which

Re: [twsocket] SSL FTP clients (demo) connects but timeout on List command

2012-07-03 Thread Angus Robertson - Magenta Systems Ltd
It might be possible, we have very restrictive firewall. Is there any way how to detect which port it is trying to use so I can allow them? In passive mode, the FTP server offers an IP address and port for the client to connect to, you have no control over what ports it chooses. Since it

Re: [twsocket] SSL FTP clients (demo) connects but timeout on List command

2012-07-03 Thread Dusan Halicky
It ends with similar error. So is problem in our firewall? Status: Resolving address of ics.ftptest.org Status: Connecting to 217.146.102.142:990... Status: Connection established, initializing TLS... Status: Verifying certificate... Status: TLS/SSL connection established, waiting for welcome

[twsocket] THttpServer and THttpConnection...

2012-07-03 Thread zayin
Hello, Delphi 2007, ICS 7.39 (THttpServer) I have a server (THttpServer) and clients derived from THttpConnection and all has been working well. I now need to set the initial page a user accesses after log on, regardless of the url he is attempting to access first. All the log on code is

Re: [twsocket] SSL FTP clients (demo) connects but timeout on List command

2012-07-03 Thread Angus Robertson - Magenta Systems Ltd
It ends with similar error. So is problem in our firewall? Command: PASV Response: 227 Entering Passive Mode (217,146,102,142,82,27). Not quite the same, since at least my server has returned a public IP address for your client to connect to. Most firewalls allow outside access to

Re: [twsocket] THttpServer and THttpConnection...

2012-07-03 Thread Angus Robertson - Magenta Systems Ltd
I now need to set the initial page a user accesses after log on, regardless of the url he is attempting to access first. You can do this in the BeforeProcessRequest method, by modifying the client path to another page name. procedure TMainForm.HttpAppSrvBeforeProcessRequest(Sender, Client:

[twsocket] THttpServer...

2012-07-03 Thread zayin
Hello, I have a timer that I am using to require a re-logon after X minutes. In the AuthGetPassword I check if the user has timed out and do not supply a password and this causes the browser to ask for the credentials. Perfect. If I select cancel for when asked for the user name and password