i need a function that makes a request to a page and can return the content as a string. I need this function to work on the page https://adwords.google.com. I have written the standard funtion below. It works for over a hundred different https urls i have tried, but i can not get it to work with this one site. I have been working on this problem for some time now and need a solution fast!!
Must use HttpWebRequest object and not msxml!
private string RequestPage(string url)
{
HttpWebRequest request;
HttpWebResponse response;
string responseText;
// Create request
request = (HttpWebRequest) [login to view URL](url);
// Add certificate
[login to view URL]([login to view URL](\\\"[login to view URL]\\\"))
// Get response
response = (HttpWebResponse) [login to view URL]();
// Read response stream
responseText = new StreamReader(
[login to view URL](),
[login to view URL]
).ReadToEnd();
[login to view URL]();
return responseText;
}