cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

having trouble using curl with https.

From: Brian Jankovich <brian_at_virtualnetmedia.com>
Date: Sat, 24 Nov 2001 14:34:47 -0500

I'm having trouble using Curl posting to an https url.
Curl has OpenSSL support built in according to phpinfo().
I'm trying to post to a transaction gateway and get a response back.
The current code I'm using to establish a connection is as follows.
 
$strURL = "https://my.secure.url/secure.php";
  $ch = curl_init();
  curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE
5.01; Windows NT 5.0)");
  curl_setopt($ch, CURLOPT_URL, $strURL);
 
 
  $return_string = curl_exec($ch);
  curl_close ($ch);
 
  echo("re:$return_string");
 
 
Any help is greatly appreciated,
 
Brian
Received on 2001-11-24