CSharp · Console
using System;
using System.Net;
public class Program
{
public static void Main()
{
WebClient client = new WebClient();
var jsonResponse = client.DownloadString("http://femah-additionator.azurewebsites.net/femah.axd/api/featureswitchtypes");
string contentType = client.ResponseHeaders["Content-Type"];
Console.WriteLine("--- JSON response ---");
Console.WriteLine(jsonResponse);
Console.WriteLine("--- Content-Type ---");
Console.WriteLine(contentType);
}
}