venkatesh2504 Posted March 24, 2008 Share Posted March 24, 2008 Hi, Im using curl and it works fine when i tired without secure connection.. THis is the code im used for testing.. $url = "http://www.google.co.in"; // Here only http:// $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); $Resonse = curl_exec($ch); It works fine and returns the corresponding page: Whereas if using $url = "https://test.authorize.net/"; // Here only http:// $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); $Resonse = curl_exec($ch); This returns noting. Please advice.. Thanks in advance.. Venktesh Link to comment https://forums.phpfreaks.com/topic/97580-curl-components/ Share on other sites More sharing options...
ryeman98 Posted March 24, 2008 Share Posted March 24, 2008 Hi, Im using curl and it works fine when i tired without secure connection.. THis is the code im used for testing.. $url = "http://www.google.co.in"; // Here only http:// $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); $Resonse = curl_exec($ch); It works fine and returns the corresponding page: Whereas if using $url = "https://test.authorize.net/"; // Here only http:// $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 0); $Resonse = curl_exec($ch); This returns noting. Please advice.. Thanks in advance.. Venktesh I believe it's because it's https:// https:// is more secure that http:// which is most likely the cause of the problem. Link to comment https://forums.phpfreaks.com/topic/97580-curl-components/#findComment-499268 Share on other sites More sharing options...
venkatesh2504 Posted March 24, 2008 Author Share Posted March 24, 2008 Hi ryeman98, Thanks.. Yes Its basically because of ssl connection. Is there any way to solve this. If possible please let me know in detail. Thanks, Venkatesh Link to comment https://forums.phpfreaks.com/topic/97580-curl-components/#findComment-499350 Share on other sites More sharing options...
ryeman98 Posted March 24, 2008 Share Posted March 24, 2008 Wow, sorry about that. I completely read your first post wrong. Unfortunately, I am unsure how to solve this. Good luck! Link to comment https://forums.phpfreaks.com/topic/97580-curl-components/#findComment-499810 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.