Hi, Guys.
I try to read a web page but i does not works.
Here is code from internet
using System.Net;
using System.IO;
using System.Windows.Forms;
string result = null;
string url = "http://www.devtopics.com";
WebResponse response = null;
StreamReader reader = null;
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create( url );
request.Method = "GET";
response = request.GetResponse();
reader = new StreamReader( response.GetResponseStream(), Encoding.UTF8 );
result = reader.ReadToEnd();
}
catch (Exception ex)
{
// handle error
MessageBox.Show( ex.Message );
}
finally
{
if (reader != null)
reader.Close();
if (response != null)
response.Close();
}
I tested with this url http://priceboard.fpts.com.vn/user/stock/hcm3/?s=31&rd=r15332110001
It is a Price Board.
Content result is lack of content data. Help me fix it.
Thanks in advanced!.
View Complete Post