Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CFTPConnect Question

23 views
Skip to first unread message

dri...@perspect.com

unread,
May 5, 1997, 3:00:00 AM5/5/97
to

I am having a problem connecting to an FTP site using the WinInet
classes. First I connect to the internet using Dial-up Networking.
Then I execute my program. The program always throws an exception in
the same spot and the GetErrorMessage returns this:

220 entrust3 FTP server (UNIX(r) System V Release 4.0) ready.
331 Password required for uuuu.
230 User uuuu logged in.
500 'SYST': command not understood.

I can connect to the site with a normal FTP program like WS_FTP, etc.

If anyone has any ideas it would be very helpful.

Also what is the SYST ftp command and why is the CFTPConnection class
trying to execute it? I do not see this command in the log for WS_FTP
and the like.

Thanks in advance to anyone with help,
Dan


Also, here is an excerpt of the source code pretty basic stuff.

CInternetSession isSession( "my program", 0,
INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0 );

// I put this here later but it does not seem to make a difference
isSession.SetOption( INTERNET_OPTION_HANDLE_TYPE,
INTERNET_HANDLE_TYPE_CONNECT_FTP );

CFtpConnection * pftpSession = NULL;
try{
pftpSession = isSession.GetFtpConnection(
"nnn.nnn.nnn.nnn", // this is an actual IP
address that I cannot give out
"uuu", "ppp", // and this is a user/password
21,
FALSE );
}
catch( CInternetException * pIE )
{
char sErr[1025];
pIE->GetErrorMessage( sErr, 1024, NULL ) ;
cout << sErr ;
exit(0);
}


Aaron Ostler

unread,
May 5, 1997, 3:00:00 AM5/5/97
to

This is from the FTP protocol RFC:

SYSTEM (SYST)
This command is used to find out the type of operating
system at the server. The reply shall have as its first
word one of the system names listed in the current version
of the Assigned Numbers document [4].

I haven't had the opportunity to dive into MS WinInet classes yet, but if
their incompleteness comes anywhere near the Socket classes, I don't think
I'm really missing much. You might want to look into just doing the FTP
connections from scratch. As far as the SYST command, I really don't know
why it would be issuing that command just to get a connection. But this is
a lot like MS style. If you've ever spied on what internet explorer sends
out to every host you visit you'll see that it's sending everything but
your 8th grade history test scores. Anyway, I'll get off the soapbox now.
I don't think your problem has to do with the SYST command tho, use the
debugger to try to trace it to exactly where you are getting the unhandled
exception.

Aaron Ostler (remove the last Z)
aar...@aros.netZ

dri...@perspect.com wrote in article <33703c8c...@news.erols.com>...

David A. Céspedes M.

unread,
May 6, 1997, 3:00:00 AM5/6/97
to

Hi!

You must be using the WinInet.dll version for IE4.0
I tried reporting the bug to the MFC team but all I got was:
WE DO NOT SUPPORT IE4.0
go back to IE3.02 and Wininet version 4.70.1215

later,
Daveedc


dri...@perspect.com

unread,
May 6, 1997, 3:00:00 AM5/6/97
to

Aaron and David,

Thanks for your help.
I am using the wininet.dll for IE 4.0.
I will try to down grade to IE 3.0 and see what happens.

Thanks,
Dan

0 new messages