17
1
using System;
2
using System.Net;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
WebClient client = new WebClient();
9
var jsonResponse = client.DownloadString("http://femah-additionator.azurewebsites.net/femah.axd/api/featureswitches");
10
string contentType = client.ResponseHeaders["Content-Type"];
11
12
Console.WriteLine("--- JSON response ---");
13
Console.WriteLine(jsonResponse);
14
Console.WriteLine("--- Content-Type ---");
15
Console.WriteLine(contentType);
16
}
17
}
Cached Result
----- Auth3Type ----
value : 34
string : Opt1, Opt5
Auth3Type.Opt1 : True
Auth3Type.Opt2 : False
value : 34
string : Opt1, Opt5
Auth3Type.Opt1 : True
Auth3Type.Opt2 : False