There is a solution!)
The issue is that the response is GZip-compressed (response has a Content-Encoding: gzip header).
You need to first decompress it, then you'll be able to read it.
User Profile
Collapse
-
wc is WebClient wc = new WebClient();
I'v already tried
But it doesn't help me.Code:byte[] arr = wc.DownloadData(str); Console.WriteLine(Encoding.GetEncoding(1251).GetString(arr));
Leave a comment:
-
Why does Get html returns random junk characters
Hi there.
Ex:Code:const String nick = "Alex"; const String log = "http://demonscity.combats.com/zayavka.pl?logs="; foreach (DateTime cd in dateRange) { string str = log + String.Format("{0:MM_dd_yy}", cd.Date) + "&filter=" + nick; String htmlCode = wc.DownloadString(str);
http://demonscity.comb ats.com/zayavka.pl?logs =08_07_11&f...
No activity results to display
Show More
Leave a comment: