Jump to content

Curl Components


venkatesh2504

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.