Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 578497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:16:00+00:00 2026-05-13T14:16:00+00:00

Possible Duplicate: Why does GetErrorMessage return “wrong password”, when the user name is wrong?

  • 0

Possible Duplicate:
Why does GetErrorMessage return “wrong password”, when the user name is wrong?

Since GetErrorMessage gave the same string for invalid password and username, I decided to use GetLastError(), as it has a separate error for each.

However with the incorrect username it still gives me the code 12014? (password error) but there IS a separate error code: ERROR_INTERNET_INCORRECT_USER_NAME – 12013

Shouldn’t this work or is this intended too?

Thanks.

try
{
   pConnect = sess->GetFtpConnection(host, wronguserName, password, port, FALSE );
   err= GetLastError(); <---RETURNS INVALID PASSWORD with the wrong username??
}

catch (CInternetException* pEx) //incorrect user name displays incorrect password?
{
      TCHAR sz[1024];
      pEx->GetErrorMessage(sz, 1024);
      printf("ERROR!  %s\n", sz);
      pEx->Delete();
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:16:00+00:00Added an answer on May 13, 2026 at 2:16 pm

    The function can only tell you what the FTP server returns. The FTP server, being securely coded, says it’s the wrong password. There’s nothing the function can do to give you a different result from what the FTP server is telling it. 😛

    For FTP servers that do distinguish between invalid usernames and invalid passwords (naughty, naughty), I’m sure the function will also just return you what the server returns, which in that case could be error 12013.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why does “abcd”.StartsWith(“”) return true? Something similar to this being true caught
Possible Duplicate: What does “(void) new” mean in C++? I'm not familiar with C++
Possible Duplicate: What does “options = options || {}” mean in Javascript? I stumbled
Possible Duplicate: What does “DateTime?” mean in C#? What does the ? mean after
Possible Duplicate: What does “for(;;)” do in C#? what does for (; ; )
Possible Duplicate: What does “options = options || {}” mean in Javascript? Looking at
Possible Duplicate: What does this “(function(){});”, a function inside brackets, mean in javascript ?
Possible Duplicate: Does it make sense to use the <table> tag on a “modern”
Possible Duplicate: What does “javascript:void(0)” mean? What does void 0 mean? In the file
Possible Duplicate: What does a colon following a C++ constructor name do? Class construction

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.