|
-
October 3rd, 2005, 05:31 AM
#1
FTP Prob
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"?
-
October 3rd, 2005, 05:46 AM
#2
Re: FTP Prob
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.
Har Har
-
October 3rd, 2005, 06:26 AM
#3
-
October 3rd, 2005, 10:53 AM
#4
Re: FTP Prob
 Originally Posted by PadexArt
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
-
October 3rd, 2005, 11:12 AM
#5
Re: FTP Prob
If CInternetSession::GetFtpConnection it throws a CInternetSession. Study its content to see what failed and why.
Har Har
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|