Hi,
I am struggling with trying to programatically surf to a https site
which requires username and password before showing the site. I am
using System.Net.HttpWebRequest:
But I dont know how to specify the username and password. I have tried
using a proxy to look at any requests or Posts, but the one I am using
(Fiddler) doesnt work with https.
Any help would be greatly appreciated.
Thanks,
Phil
HttpWebRequest HttpWRequest =
(HttpWebRequest)WebRequest.Create(requestURL);
HttpWRequest.CookieContainer = _CookieJar;
HttpWRequest.Credentials = CredentialCache.DefaultCredentials;
HttpWRequest.UserAgent = "Test";
HttpWRequest.KeepAlive = true;
HttpWRequest.Headers.Set("Pragma", "no-cache");
HttpWRequest.Headers.Add("Accept-Language", "en-gb");
HttpWRequest.Timeout = 300000;
HttpWRequest.Accept = "*/*";
HttpWRequest.Method = "GET";
HttpWRequest.ContentType = "text/xml";