Click to See Complete Forum and Search --> : FTP Prob


renu@vc++
October 3rd, 2005, 05:31 AM
Hi all

I had written a FTP directory listing program.Problem here is its working fine on my FTP server,but its not working working on client ftpserver i.e.,iam unable to get directory listing there....

I used following classes:

class CFileFind;
class CInternetSession;
class CFtpFileFind;

pf = is.GetFtpConnection((LPCTSTR)servername, (LPCTSTR)username, (LPCTSTR) pwd, portno, session_mode);

is there any limitations like "CFtpFileFind doesn't work on UNIX machines"?

PadexArt
October 3rd, 2005, 05:46 AM
Check if the other FTP server requires passive mode. Connect with a FTP client and check the server's settings. The CFtpConnection has a bPassive attribute in constructor that you can use.

Marc G
October 3rd, 2005, 06:26 AM
[ moved thread ]

renu@vc++
October 3rd, 2005, 10:53 AM
Check if the other FTP server requires passive mode. Connect with a FTP client and check the server's settings. The CFtpConnection has a bPassive attribute in constructor that you can use.


I tried by making bPassive both TRUE and False in GetFtpConnection arguments,still its not working on other server,but its working on my ftp server what ever i put(bPassive TRUE/FALSE)
pf = is.GetFtpConnection((LPCTSTR)servername, (LPCTSTR)username, (LPCTSTR) pwd, portno,TRUE);

Note:I have all owner,group,and public read,write,execute permissions on both the servers.


Hlp Pls

PadexArt
October 3rd, 2005, 11:12 AM
If CInternetSession::GetFtpConnection it throws a CInternetSession. Study its content to see what failed and why.