Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Connect via permit-proxy

0 views
Skip to first unread message

Frank Backes

unread,
Aug 2, 1999, 3:00:00 AM8/2/99
to
One of our customers insists on connecting to their FTP server by a two-stage login procedure.
At first, one has to logon to their permit proxy with USERID1 and PASWORD1. If this is successful, the permit proxy activates the connection across the firewall to the FTP server. After that, one can connect to the FTP server with USERID2 and PASSWORD2.
 
How can that kind of logon procedure by implemented with WININET? The problem is, that there are two logons in one FTPSession. Calling InternetConnect twice does not work, because the second call closes the first session.
 
Any ideas?
 
Thanks in advance
 
Frank Backes
 

Nicholas Paldino

unread,
Aug 3, 1999, 3:00:00 AM8/3/99
to

Frank,

Tell your customers they are morons (God, I pray for the day I can do
that).

Seriously though, use the standard way of connecting to the FTP site
first, using InternetOpen. Once that is done, use the FtpCommand function
to pass the parameters for the login again. I believe that what you need to
send for the user name is "USER <username>" and then "PASS <password>" for
the password.

However, FtpCommand comes with Internet Explorer 5 and above I believe.

Good luck.


--
- Nicholas Paldino
- nicholas...@exisconsulting.com

0 new messages