public static void Main()
string url = "https://api.ap.org/v2/search/photo?apiKey=Xp0PWKrGrW6KEEqPl7ZcFVMcgVtQTKA5&q=Cleveland%20Browns&page=1&count=100";
MakeWebRequestWithTLS(url, SecurityProtocolType.Tls12);
MakeWebRequestWithTLS(url, SecurityProtocolType.Tls11);
private static void MakeWebRequestWithTLS(string url, SecurityProtocolType protocolType)
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = protocolType;
Console.WriteLine("Calling with {0}...", ServicePointManager.SecurityProtocol);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine("- Response is {0}", response.StatusCode);