Answer the question
In order to leave comments, you need to log in
How to make requests over https?
Good afternoon.
Didn't work with certificates at all.
There is a script in php, through curl it requests the pages of the site via https. Costs
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
Answer the question
In order to leave comments, you need to log in
If everything is in order with the certificates on the server to which the request is being made, then the settings that you specified above are not needed, php curl will work correctly. But if the certificates on that server are self-signed, then you need to use your settings.
In any case, the connection will be protected by the ssl protocol.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question