using IE credentials to log on with c#
Posted
by
james
on Stack Overflow
See other posts from Stack Overflow
or by james
Published on 2012-11-27T15:31:08Z
Indexed on
2012/11/27
17:04 UTC
Read the original article
Hit count: 443
Hi i am writing a HTML parser for helping with some job duties, I can enter the site using IE explorer. but using csharp code i get an error
i have tried using
client.Credentials = CredentialCache.DefaultNetworkCredentials;
client.Proxy.Credentials = CredentialCache.DefaultCredentials;
i don't get the requested page, but an error page. if i can view page in explorer there must be a way to retrieve its html in C#
(note that same page in other browsers requires authintication - not in IE)
appreciate the help
© Stack Overflow or respective owner