Question

I want make request to login on Adobe Connect via curl

$ch = curl_init('https://emea2cps.adobeconnect.com/api/xml?action=login&login=nurgasemetey@gmail.com&password=D742455B61/');
curl_exec($ch);
$info= curl_getinfo($ch);
echo 'passed' . $info['total_time'] . ' secconds ' . $info['url'] . '------ and http-code'. $info['http_code'];
curl_close($ch);

But response is like this

 passed 0.078 seconds https://emea2cps.adobeconnect.com/api/xml?action=login&login=nurgasemetey@gmail.com&password=D742455B61/------ and http-code 0

I infer that it doesn't connect correctly but on browser on returns correctly. Where can be problem?

With regards

Was it helpful?

Solution

Add this param

curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);

The code...

<?php
$ch = curl_init('https://emea2cps.adobeconnect.com/api/xml?action=login&login=nurgasemetey@gmail.com&password=D742455B61/');
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
curl_exec($ch);
$info= curl_getinfo($ch);
echo 'passed' . $info['total_time'] . ' secconds ' . $info['url'] . '------ and http-code'. $info['http_code'];
curl_close($ch);

OUTPUT :

passed5.922 secconds https://emea2cps.adobeconnect.com/api/xml?action=login&login=nurgasemetey@gmail.com&password=XXXXXX/------ and http-code200
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top