Why do we need to disable SSL check PHP cURL?

When we try to open any website and if it has Security Certificate issue then the browser will show the screen for “Untrusted connection”. In this case, we are clicking on “I Understand the Risks” and adding a website in the exception list. Whenever we will post any data on this URL by cURL, it will not give any response if it has Security Certificate issue. Because of this reason we need to disable SSL check PHP cURL to get a successful response.

We can disable SSL check PHP cURL by this code:

Below is the complete function to get content by cURL.

Let me know if need any help in cURL.

Happy Coding 🙂

Sharing is caring!