Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2005 Oct : FTP Error information

www.cryer.info
Managed Newsgroup Archive

FTP Error information

Subject:FTP Error information
Posted by:"Adrian ~ FoobarSoftware.com" (adrianfoobarsoftwarec..@discussions.microsoft.com)
Date:Wed, 26 Oct 2005 06:28:05

I am using WinInet to make an FTP Connection (using
CInternetSession::GetFtpConnection ).

With some ISPs, extra text is passed back in error messages. For example, if
you try to connect to an account with tiscali.co.uk from a dialup account
other than the one they supply, you get a 530 response with some text like
this:

"Your upload to your personal webspace has not been successful. This is
because you have attempted to upload from a non-Tiscali connection. Please
try again using a Tiscali group dialup or broadband connection (including
LineOne, WorldOnline. Tiny, Gateway and Screaming.net). "


Since this sort of information is useful to the user when he/she is sorting
out connection problems, I want to be able to retrieve it and display it.
However, it does not appear in the text produced by the CInternetException
which is thrown, so is there a way for me to get at this text?

Many thanks for any help,

Adrian

Replies:

www.cryer.info
Managed Newsgroup Archive