LeanneGodney
Technical User
Hi guys,
I'm trying to write code to retrieve a file from my clients ftp server. If I do it manually, I do the following:
1. Open up the command prompt
2. Type FTP proxyserver
3. Enter my username and password
4. Connect to client site by entering "user username@clientFTPSite.com"
5. Enter password
6. get "SourceFile" "DestinationFile"
This works a charm.
But I'm trying to use InternetOpen, InternetConnect and FtpGetFile. There's loads of info about this on the net, but I'm battling to get it to work with the proxy.
I'm not connecting direct to the client, I have to go through my proxy then connect using "user me@them.com pwd".
So how do I interpret that into the InternetOpen, InternetConnect and FtpGetFile functions???
Currently have:
lngINet = InternetOpen("MyFTP Control", 1, ProxyUserName, ProxyPassword, 0)
lngINetConn = InternetConnect(lngINet, ProxyServer, 0, me@ClientFTPSite.com, MyClientSitePassword, 1, 0, 0)
GetFile = FtpGetFile(lngINetConn, GetFileFullName, ResultFileFullName, False, 0, 0, 0)
Anyone done this before who can offer some insight???
THanks,
Leanne
I'm trying to write code to retrieve a file from my clients ftp server. If I do it manually, I do the following:
1. Open up the command prompt
2. Type FTP proxyserver
3. Enter my username and password
4. Connect to client site by entering "user username@clientFTPSite.com"
5. Enter password
6. get "SourceFile" "DestinationFile"
This works a charm.
But I'm trying to use InternetOpen, InternetConnect and FtpGetFile. There's loads of info about this on the net, but I'm battling to get it to work with the proxy.
I'm not connecting direct to the client, I have to go through my proxy then connect using "user me@them.com pwd".
So how do I interpret that into the InternetOpen, InternetConnect and FtpGetFile functions???
Currently have:
lngINet = InternetOpen("MyFTP Control", 1, ProxyUserName, ProxyPassword, 0)
lngINetConn = InternetConnect(lngINet, ProxyServer, 0, me@ClientFTPSite.com, MyClientSitePassword, 1, 0, 0)
GetFile = FtpGetFile(lngINetConn, GetFileFullName, ResultFileFullName, False, 0, 0, 0)
Anyone done this before who can offer some insight???
THanks,
Leanne