You are trying to connect to https://roost.mobsocial.net/roostClient/ However when I try to connect to this server on port 443 for HTTPS it is closed
nmap -Pn -pT:443 roost.mobsocial.net
Nmap scan report for roost.mobsocial.net (49.236.205.17)
PORT STATE SERVICE
443/tcp closed https
However if I try on port 80 for HTTP it is open
nmap -Pn -pT:80 roost.mobsocial.net
Nmap scan report for roost.mobsocial.net (49.236.205.17)
PORT STATE SERVICE
80/tcp open http
Therefore if you try changing
CURLOPT_URL => "https://roost.mobsocial.net/roostClient/",
to
CURLOPT_URL => "http://roost.mobsocial.net/roostClient/",
However bear in mind that any data you send via HTTP will not be encrypted in transit.
You should also have a look at http://docs.guzzlephp.org/en/stable/ as it is a library to help you perform HTTP(S) request from your PHP and will save you having to work with native PHP curl functions.