Click here to Skip to main content
Rate this: bad
good
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 2:09am

1 solution

Rate this: bad
good
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.
 
-Jesse
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,614
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2014
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