Skip to content

Instantly share code, notes, and snippets.

@mxmissile
Created July 14, 2021 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxmissile/a32ceeaeda6f63365d9930d7399497e8 to your computer and use it in GitHub Desktop.
Save mxmissile/a32ceeaeda6f63365d9930d7399497e8 to your computer and use it in GitHub Desktop.
api test
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