Answer the question
In order to leave comments, you need to log in
Why do I get SSL related errors when using CURL?
Good day!
I ran into a problem that from time to time (about 5% of all cases) when using the VK API via CURL I get errors related to SSL.
For example:
- # 35 - SSL connect error
- # 56 - SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054 The
options that are used for CURL are:
CURLOPT_CONNECTTIMEOUT => 0
CURLOPT_TIMEOUT => 500
CURLOPT_SSL_VERIFYPEER => 0
CURLOPT_SSL_VERIFYHOST => 2
CURLOPT_HTTPHEADER => ['Content-type: application/x-www-form-urlencoded']
CURLOPT_RETURNTRANSFER => true
CURLOPT_URL => ' https://api.vk.com/method/users.search '
CURLOPT_POST => true
CURLOPT_POSTFIELDS => <defined_post_parameters_according_to_api_method>
What could be the problem? And how could it be fixed?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question