c# httpwebrequest getResponse() freezes and hangs my program
问题 I was trying to use httpwebrequest to use a rest like service on a remote server and from the first execution itself, my code was hanging the program. Then I tried it as a console application to make sure it has nothing to do with the program itself but no luck! string credentialsJson = @"{""username"":""test"", ""password"":""test"" }"; int tmp = ServicePointManager.DefaultConnectionLimit; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(@"https://qrua.com/qr/service" + @"/auth