Click here to Skip to main content
12,892,589 members (48,307 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# .NET
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.
Posted 16-Sep-12 1:09am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100