Skip to content

Instantly share code, notes, and snippets.

@andreymir
Created June 24, 2015 09:16
Show Gist options
  • Select an option

  • Save andreymir/caa57417af8d9cb0388c to your computer and use it in GitHub Desktop.

Select an option

Save andreymir/caa57417af8d9cb0388c to your computer and use it in GitHub Desktop.
using System;
using System.Net.Http;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
using (var http = new HttpClient())
{
http.DefaultRequestHeaders.Add("User-Agent", "MLK Android Phone
1.1.9");
http.GetAsync(new Uri("http://localhost:8888",
UriKind.Absolute)).Wait();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment