Jump to content

Recommended Posts

Hello All,
<?
  $_url = 'https://www.yachting-casino.com/';
  $_VAR001 = 'nono';
  $_VAR002 = 'nonono';

  $params = "VAR001=$_VAR001&VAR002=$_VAR002&";
  $ch = curl_init();

  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,0);
  curl_setopt($ch, CURLOPT_POST,1);
  curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
  curl_setopt($ch, CURLOPT_URL,$_url);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,  2);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,  FALSE);
  curl_setopt($ch, CURLOPT_USERAGENT,  "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  $result=curl_exec ($ch);
  curl_close ($ch);
  echo("Output: ".$result);
?>

The problem is that this code is working on my testing server but its not working on my production server. Both servers are unix based.
On production server only ports 80 and 443 are open all other ports are blocked.
This works if i try to open http page but dosenot work if i try oppening https error code 7 error number 110 is returned.

I don't know which ports it uses, it will be grate if someone can tell me which ports i will need to open.

Thanks
Link to comment
https://forums.phpfreaks.com/topic/14564-make-curl-work-with-https/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.