Click here to Skip to main content
15,905,420 members

Comments by Member 10875659 (Top 5 by date)

Member 10875659 26-Feb-15 12:55pm View    
I think the problem is because of the website security, because my code works for other sites. I also used webbrowser control to browse the site ,but it failed!!
Member 10875659 24-Feb-15 17:55pm View    
For example I used this code:

HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://www.tsetmc.com/Loader.aspx?ParTree=15");
myRequest.Method = "GET";
WebResponse myResponse = myRequest.GetResponse();
StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8);
string result = sr.ReadToEnd();
sr.Close();
myResponse.Close();
Console.WriteLine(result.ToString());

and some of other types of code but they return bad symbols. And also I used webbrowser control in c# to navigate the site, which is written by asp, but it couldn't browse the website!!
Member 10875659 24-Feb-15 9:37am View    
The problem is that I can't access to this site. I think it's because of website security. Because I tested my code on the other Arabic website and worked.
Member 10875659 24-Feb-15 8:46am View    
I tried your solution but still it doesn't work! and I got bad symbols
Member 10875659 24-Feb-15 7:35am View    
I'm not very well in web application, I just need two number of mentioned site to use it in my application. I don't know what is the REST Api.