You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Are outgoing https calls in OSC disabled - https not in Registered PHP Streams?

Received Response
7
Views
2
Comments
edited Jun 13, 2016 2:20PM in Integrations and APIs 2 comments

Content

If I trigger an outgoing http REST call from OSC, it works.
If I trigger an outgoing https REST call from OSC, it returns an empty  response with no error (see code block)
If I look at the 'registered streams' in phpinfo(), I see that https is not included.

Are outgoing https calls from OSC disabled? Is there a way to enable them?
 

 

Code Snippet

             <?php
$url = 'https://httpbin.org/post';

$data = array (
  "firstname"      =>           'David',
  "surname"        =>           'Rutter'
);

$opts = array('http' =>
    array(
        'method'  => 'POST',
        'header'  => "Accept: application/json\r\n" . "Content-Type: application/json\r\n",
        'content'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!