CURL & SSL

From: Date: Sat, 27 Jul 2002 17:50:09 +0000
Subject: CURL & SSL
Groups: php.general 
Request: Send a blank email to php-general+get-109990@lists.php.net to get a copy of this message
I am on a server that has CURL & OpenSSL enabled. I assumed that this meant that I could do https: requests via CURL. But for some reason, my attempts to do this are not working. If I do a CURL http: request, everything works fine (i.e., I get the web page, as expected). But if I use an https: request, no value is returned. Do I need to do something else to make https: requests work in CURL? Here's the code in question: $ch = curl_init("https://secure.authorize.net/gateway/transact.dll"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); In this case, $result is the null string (if you try that URL in your browser, you will that some text is returned). If I replace the curl_init with $ch = curl_init("http://www.cnet.com"); I get the expected string in $result. Any thoughts? -- JR

« previous php.general (#109990) next »