Hello!
I am trying to get an html page of urls containing special characters as %21,...
"%21" stands for "!",..
e.g.: http://en.wikipedia.org/wiki/Joan_R%C3%B6ell (this page was picked my random)
And I need these sites, and there are many sites containing these special characters...
I tried many variants of getting an html page...
Example 1:
requestHtml = WebRequest.Create(htmlUri);
responseHtml = requestHtml.GetResponse();
r = new StreamReader(responseHtml.GetResponseStream(),Enco ding.Unicode);
Example 2:
WebClient client = new WebClient();
client.Encoding = Encoding.Unicode;
htmlContentRAW = client.DownloadString(htmlUri);
ERROR: But the error occurs everytime in the 1st line:
Error 403.
The remote server returned an error: (403) Forbidden.
If I go to the url via IE, it works.... but no url containing special characters works with my application. Hope you can help...