Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - John F. Woods

Tag: rest

How to fix Unirest General SSLEngine problem

I tried to post data to a rest service using Unirest (unirest.io). But when I tried to post to an HTTPS url, I got the following error:

To fix this, you could use the following code:

Then, you need to execute the code below before useing Unirest itself:

Hopefully this works for you too. Enjoy