Created
July 14, 2021 17:39
-
-
Save mxmissile/a32ceeaeda6f63365d9930d7399497e8 to your computer and use it in GitHub Desktop.
api test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (var client = new HttpClient()) | |
{ | |
client.DefaultRequestHeaders.UserAgent.ParseAdd("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0"); | |
var result = await client.GetStringAsync("http://api.db-ip.com/v2/free/1.10.16.5"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment