I am on a quest to pro-grammatically determine via C# whether a website such as http://about.com or a page such as http://mail.google.com requires authentication or not?
I was thinking on the lines of server responses 400, 401, 402 etc but I am not really sure.
Can somebody point me in the right direction please? The URL can be any and may nor may not be on SSL, and may have only a few pages that require authentication and not others.
Thanks
Steve
EDIT
Based on Will's suggestion, May I rephrase the question:
How to determine whether we have received a web-redirect instead of the requested page ( and the kind of redirect) while creating an HttWebRequest
using C#?