Using C#
----------------
using System.Net;
using System.Text;
Source Code:
-------------
// Page URL to get information
const string strUrl = "http://www.ip2location.com/ib1/";
byte[] reqHTML;
string ip_Info_Dtl;
WebClient webClient = new WebClient();
reqHTML = webClient.DownloadData(strUrl);
UTF8Encoding objUTF8 = new UTF8Encoding();
ip_Info_Dtl = objUTF8.GetString(reqHTML);
No comments:
Post a Comment