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 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]


[url removed, login to view]();

return responseText;


기술: .NET

더 보기: the string problem, string standard, string problem, standard string, get help, code get, google adwords certificate, get code, google help, Google code, getresponse, encoding, Cert, been, tried, code create, webrequest https, working string, google stream, httpwebrequest google, code function, google certificate, read lines, Help need, httpwebrequest utf8

프로젝트 ID: #305

프리랜서 3명이 평균 $8 입찰 금액으로 이 일자리에 입찰하고 있습니다.


If memory serves me, the HttpWebRequest object does not directly support redirects (or frames for that matter). is probably what you want unless you can intercept the redirect (I hav 더 보기

$5 USD (0일 이내)
(0 리뷰)

Concatenate single quotes around your string.

$5 USD (0일 이내)
(0 리뷰)

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 리뷰)