Is it possible to get data from https?

    2 answers 2

    It helps to disable the CURLOPT_SSL_VERIFYPEER option, as well as the CURLOPT_SSL_VERIFYHOST options:

    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 

    PHP, cURL, HTTPS protocol and cookie sharing

    HTTPS requests in PHP Curl do not work

    • one
      Hey hey, don't do that! There is no point in using HTTPS when security checks are disabled. - Pavel Mayorov

    A little incomprehensible question itself. If it means to get data to the address that starts with "https", then Yes. This protocol is supported. And if you mean something else, then clarify the question.

    • This is what is meant. But my data is not taken to the address that starts with "https" - I ’m living
    • Check the address. I remember that when you use cUrl, does not open, but opens. A page at contains a line stating that this page is located at . Perhaps it is at this address is not given the page? - Lucky_spirit