Ακυρώθηκε

Help debugging 10 lines of code!!

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) [url removed, login to view](url);

// Add certificate

[url removed, login to view]([url removed, login to view](\\\"[url removed, login to view]\\\"))

// Get response

response = (HttpWebResponse) [url removed, login to view]();

// Read response stream

responseText = new StreamReader(

[url removed, login to view](),

[url removed, login to view]

).ReadToEnd();

[url removed, login to view]();

return responseText;

}

Δεξιότητες: .NET

Δείτε περισσότερα: string standard, string problem, standard string, get help, code get, google adwords certificate, google help, google code, getresponse, encoding, cert, been, tried, code create, working string, google stream, code function, google certificate, read lines, help need, code read, google adwords net, certificate work, work certificate, time string

Σχετικά με τον Εργοδότη:
( 0 αξιολογήσεις ) Neutral Bay, Australia

ID Εργασίας: #305

3 freelancers κάνουν προσφορές με μέσο όρο $8 γι' αυτή τη δουλειά

ITMasters

I KNOW HOW TO SOLVE THIS!!! I have working solution. I can give you immediate answer after escrowing money. Sincerely, Serg

$15 USD σε 0 μέρες
(0 Αξιολογήσεις)
3.6
len5134

Concatenate single quotes around your string.

$5 USD σε 0 μέρες
(0 Αξιολογήσεις)
0.0
hi5

If memory serves me, the HttpWebRequest object does not directly support redirects (or frames for that matter). https://adwords.google.com/select is probably what you want unless you can intercept the redirect (I hav Περισσότερα

$5 USD σε 0 μέρες
(0 Αξιολογήσεις)
0.0