I am using httpwebrequest response to ping a site.That site is a secure site but when i ping i don get anauthentication error.I donot pass the password o r id still am able to check the status of site.
I want the user to see a "authentication required or credentials required " msg when the site is being pinged.
How can i do this
?
when i lookout for Authenticationlevel, i get MutualAuthentication value.
Member
2 Points
9 Posts
How can i make out whether the sitte requires authentication?
Feb 17, 2012 03:54 AM|dipika.47|LINK
Hi,
I am using httpwebrequest response to ping a site.That site is a secure site but when i ping i don get anauthentication error.I donot pass the password o r id still am able to check the status of site.
I want the user to see a "authentication required or credentials required " msg when the site is being pinged.
How can i do this
?
when i lookout for Authenticationlevel, i get MutualAuthentication value.
Participant
1465 Points
449 Posts
Re: How can i make out whether the sitte requires authentication?
Feb 17, 2012 06:49 AM|ankit.sri|LINK
try HttpStatusCode from the Request response like below:
Member
2 Points
9 Posts
Re: How can i make out whether the sitte requires authentication?
Feb 20, 2012 12:47 AM|dipika.47|LINK
But the statuscode gives only the status of response..I mean the status like - server unavailable,OK,etc
I get an OK response.
Participant
1465 Points
449 Posts
Re: How can i make out whether the sitte requires authentication?
Feb 20, 2012 12:50 AM|ankit.sri|LINK
How about showing your Lines of Code here so I can analyze the issue.
Member
2 Points
9 Posts
Re: How can i make out whether the sitte requires authentication?
Feb 20, 2012 07:45 AM|dipika.47|LINK
Hi,
This is code snippet that i use-