Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Ftp through proxy


There is a problem with downloading files when connection has to be made through proxy. This is downloading files properly when there is no proxy. Following is the snippet.

[color=Blue][size=3]hinit = InternetOpen("agent", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, INTERNET_FLAG_ASYNC);

hFtpSession = InternetConnect(hinit, "", INTERNET_DEFAULT_FTP_PORT,"username","passwd", INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 1);

FtpGetFile(hFtpSession, fileToGet[i], filePath, TRUE, FILE_ATTRIBUTE_HIDDEN, FTP_TRANSFER_TYPE_BINARY, 0);
Any pointers will be well appreciated.

Sign In or Register to comment.