1
난`는 "http://www.last.fm/music/Boney%20M./+images"주소에서 문자열을 다운로드하려고하지만 는 null,다운로드 문자열 "http://www.last.fm/music/Boney%20M./+images"
WebClient webClient = new WebClient();
string html = webClient.DownloadString(new Uri("http://www.last.fm/music/Boney%20M./+images"));
내 브라우저로 방문했을 때,'http : //www.last.fm/music/Boney+M ./+ images' ('% 20' 누락)에 리디렉션 된 것 같습니다. WebClient가 리디렉션을 처리하는 방법을 모르지만 새로운 리디렉션 된 주소를 시도하고 어떤 일이 발생하는지 확인하십시오. – moje
@Moje 나는 당신이 무언가에 있다고 믿습니다. PowerShell에서 위의 명령을 실행할 때 "1"인수가있는 "Exception called"DownloadString "이 나타납니다."너무 많은 자동 리디렉션이 시도되었습니다. " FWIW는 스페이스를'+'로 바꾸면 도움이되지 않습니다. –
아마도 : http://stackoverflow.com/questions/518181/too-many-automatic-redirections-were-attempted-error-message-when-using-a-http –