php - Zend framework https request -
I am trying to request an https request using the Zend Framework 1.11, as well as http everything being working properly , But when I am in the request URL, I am not more capable of receiving feedback.
I was reading like a manual like trying:
$ uri = 'https://url.com'; $ Adapter = New Zend_Http_Client_Adapter_Curl (); $ Client = new Zend_Http_Client (); $ Customer & gt; SetUri ($ uri); $ Customer & gt; SetMethod ('post'); $ Customer & gt; SetAdapter ($ adapter); $ Adapter-> Set Config (array ('curl' => array (CURLOPT_SSL_VERIFYPEER = & gt; wrong))); Log :: Notices ("URL:". $ Yuri); $ Response = $ client- & gt; SetRootata ($ xml, 'application / xml') - & gt; Request ('post'); I have already activated php_curl.dll in php.ini.
That's why only https is not working, maybe someone can tell me what I'm doing.
Thank you.
Potentially invalid certificate. If you can not validate the server certificate one, then you have to set the curl option to ignore the invalid certificate:
$ addapter- & gt; Setcrolled operation (CURLOPT_SSL_VERIFYPEER, incorrect);
Comments
Post a Comment