I am able to execute both requests from Postman without issue, without any special modifications. "Could not create SSL/TLS secure channel" But when I run the same code against the production environment, I get the error: This works fine against the UAT environment. Var respJson = responseStream.ReadToEnd() ĬalcResult = BuildResponse(calcRequest, respJson, consoleWriteRawReqResponse) Using (var responseStream = new StreamReader(webresponse.GetResponseStream())) Using (var webresponse = req.GetResponse()) Var req = WebRequest.Create(url) as HttpWebRequest The code that runs the webrequest looks like this. There are two environments, UAT and production. This is a third party service, and it is secured using SSL. I am trying to write C# code which makes a web request against a REST service endpoint used for calculating sales tax within a web application.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |