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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with the FTPPUTFILE WinInet function when using a proxy server 1

Status
Not open for further replies.

SteveAshdown

Programmer
Sep 8, 2005
1
GB
Hi,

I am building an access 2003 VBA application and I am making use of the WinInet dll - specifically the FTP functions.

The functions work fine when I make a direct connection (ie. not via the proxy) to an FTP server and i can put files up to the server with no problems at all.

However, the software we are producing will be required to work in situations where a proxy server is employed.

I have set up a test proxy server locally (ezProxy) and made sure that I can connect to a remote FTP server using my FTP client (File Zilla) via the proxy server. I can also put files up on the remote server and bring then down locally.

However, when trying to FTP files via the proxy server from within my VBA code i am encountering problems. I can make a connection to the Internet and set up a session on the FTP server and I can see what is failing is the FTPPUTFILE function. It just hangs when it when it has been called. I have tried to find information on any changes that need to be in place on the FTPPUTFILE function to cope with the presence of a proxy server but cannot seem to find anything on the microsoft resources or elsewhere.

Help - this one is really bugging me !
 
Could you post some code, such as the function declarations and the implementation, especially where you invoke the InternetOpen or InternetConnect function and pass the proxy settings?

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top