I have very strange issue. I am trying to make a get request to a url using WebClient
WebClient client = new WebClient();
client.DownloadString("https://api.test.kount.net/rpc/v1/orders/detail.xml");
It throws following exception.
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: The decryption operation failed, see inner exception. --->
System.ComponentModel.Win32Exception: The message received was unexpected or badly formatted --- End of inner exception stack trace --- at System.Net.Security._SslStream.ProcessReadErrorCode(SecurityStatus errorCode, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest,
Byte[] extraBuffer) at System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
But if I open this url in browser, it opens and return a xml response. What am I missing? Any ideas?
401
404