Click here to Skip to main content
15,943,406 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im trying to verify login information using a webpage which i didn't develop , when i open the webpage in the browser - Chrome- it popups a gray small screen related to Chrome asking for username and password , i do not what is this authentication method called is it Basic or cookie or form i can not know so please let me know , also how i can provide such authentication using webclient ,i tried using credentials but with no hope.

1 solution

Sadly, the answer isn't so simple, except to say: it is not a cookie.

The webpage _probably_ uses "Basic" authentication, but may use other forms.

As far as providing authentication information to webclient, you neglected to mention which language you are programming in.

Here is an article that may answer your question if you are using a .NET language: HTTP GET with .NET WebClient[^].

And if you need more gory details on WebClient, here is the MSDN page on WebClient[^]. Even so, you may need to provide more details when you create your Credentials to give your WebClient, which is discussed on this MSDN page on adding to the CredentialsCache[^].

[UPDATE:] Often, after initial authentication, the server will send back a cookie with a SESSION ID NUMBER. Each further page access from the same browser, in the same session, will send this session ID cookie, so the server knows the access is already authenticated.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900