.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Net;

public class Program
{
    public static void Main()
    {
		WebClient client = new WebClient();
		var jsonString = "{\"IsEnabled\":true,\"Name\":\"ShorterText\",\"FeatureType\":\"Femah.Core.FeatureSwitchTypes.SimpleFeatureSwitch, Femah.Core, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null\",\"Description\":\"Define a short description of the feature switch type here.\",\"ConfigurationInstructions\":\"Add configuration context and instructions to be displayed in the admin UI\"}";
		client.Headers.Add("Content-Type","application/json");
    	
		var jsonResponse = client.UploadString("http://femah-additionator.azurewebsites.net/femah.axd/api/featureswitches/ShorterText", "PUT", jsonString);
		
		Console.WriteLine("--- JSON response ---");
		Console.WriteLine(jsonResponse);

		string contentType = client.ResponseHeaders["Content-Type"];
		
		Console.WriteLine("--- Content-Type ---");
		Console.WriteLine(contentType);
    }
}
;