p; String countrycode = fields.get(0); String countryname = fields.get(1); String regioncode = fields.get(2); String regionname = fields.get(3); String city = fields.get(4); String lat = fields.get(5); String lon = fields.get(6); String metrocode = fields.get(7); String areacode = fields.get(8); String timezone = fields.get(9); String continent = fields.get(10); String postalcode = fields.get(11); String isp = fields.get(12); String org = fields.get(13); String domain = fields.get(14); String asnum = fields.get(15); String netspeed = fields.get(16); String usertype = fields.get(17); String accuracyradius = fields.get(18); String countryconf = fields.get(19); String cityconf = fields.get(20); String regionconf = fields.get(21); String postalconf = fields.get(22); String error = fields.get(23); }
in.close(); } } C#版本:
[csharp] view plaincopyprint? 01.private string GetMaxMindOmniData(string IP) { 02. System.Uri objUrl = new System.Uri("http://geoip.maxmind.com/e?l=YOUR_LICENSE_KEY&i=" + IP); 03. System.Net.WebRequest objWebReq; 04. System.Net.WebResponse objResp; 05. System.IO
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|