Long shot I daresay but anyone ever used the InternetConnect API call for FTP that uses wininit.dll. ?
Using:
lngINetConn = InternetConnect(lngINet, "www.gatekeeperel.co.uk", 0, "myid", "mypwd", 1, 0, 0)
blnRC = FtpGetFile(lngINetConn, "blahblah/info.html", "info.html", 0, 0, 1, 0)
The FtpGetFile fails returning 0 but the darn file is there on the host in that directory. If I do exact equivalent with MS's FTP test site, it works fine.
lngINetConn = InternetConnect(lngINet, "ftp.microsoft.com", 0, "anonymous", "[email protected]", 1, 0, 0)
blnRC = FtpGetFile(lngINetConn, "MISC/INDEX.TXT", " index.txt", 0, 0, 1, 0)
Have tried setting dir/file permission on my site as on MS site but nowt.
Cheers for any ideas.
Using:
lngINetConn = InternetConnect(lngINet, "www.gatekeeperel.co.uk", 0, "myid", "mypwd", 1, 0, 0)
blnRC = FtpGetFile(lngINetConn, "blahblah/info.html", "info.html", 0, 0, 1, 0)
The FtpGetFile fails returning 0 but the darn file is there on the host in that directory. If I do exact equivalent with MS's FTP test site, it works fine.
lngINetConn = InternetConnect(lngINet, "ftp.microsoft.com", 0, "anonymous", "[email protected]", 1, 0, 0)
blnRC = FtpGetFile(lngINetConn, "MISC/INDEX.TXT", " index.txt", 0, 0, 1, 0)
Have tried setting dir/file permission on my site as on MS site but nowt.
Cheers for any ideas.
Comment