Jump to content
  • 0

Unknown SSL protocol error in connection to xxxxxxxx.caspio.com:443


ChadP
 Share

Question

I've created a token and played around with swagger with success.  When I try to make the same, simple request from a website using php curl, I get the following message:

Error: "Unknown SSL protocol error in connection to xxxxxxxx.caspio.com:443 " - Code: 35

I'm including the bearer token in the header.  Here is my code:

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL,"https://xxxxxxxx.caspio.com/rest/v2/tables");
        curl_setopt($ch, CURLOPT_HTTPHEADER, array(
        'accept: application/json',
        'Authorization: bearer '.$variable_containing_my_token
        ));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);    
        $response = curl_exec($ch);
        if( $response === false ){ echo 'Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch); }
        curl_close ($ch);

What does this error indicate?  Should I be making this request another way?

Thanks!

**********************ANSWER********************

If you run into this error you are probably running on an older server.  I've tested my code on a newer server and it works great.   I'm suspect I need an updated version of CURL or need to update NSS. 

Edited by ChadP
Found an answer that may be helpful to others.
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
 Share

×
×
  • Create New...