I have a request that takes approximately 20 seconds at worse and it works perfectly fine when i use a Chrome Extension like Postman or AdvancedREST Client.
My problem is, in C# i used an GetReponseAsync but this seems like it takes forever. Here is the code :
HttpWebRequest request;
request = (HttpWebRequest)WebRequest.Create(uri);
request.Accept = "application/json";
request.ContentType = "application/json";
request.Proxy = null;
//The line of code below takes forever and the code never goes further than that
var response = (HttpWebResponse)(await request.GetResponseAsync());
I don't why does it take so much time, besides, it never crashes or goes through a catch or anything, it just fetches infinitely.