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

curl-and-php

https

From: Diana Castillo <diana_at_hotelkey.com>
Date: Mon, 3 May 2004 19:01:50 +0200

what do i have to change to send a message using curl to an https connection?
this is the code I normally use:
function getResponse($request, $type){
  $curl_interface = curl_init();
  curl_setopt($curl_interface, CURLOPT_URL,$this->url);
  curl_setopt($curl_interface, CURLOPT_POST, 1);
  curl_setopt($curl_interface, CURLOPT_POSTFIELDS,$request);
  curl_setopt ($curl_interface, CURLOPT_RETURNTRANSFER, 1);
  $xml_response=curl_exec ($curl_interface);
  curl_close ($curl_interface);
  return $xml_response;
}
 
do I have to add something besides just setting the url to an https url?

Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: diana_at_hotelkey.com
Web : http://www.hotelkey.com
      http://www.destinia.com
Received on 2004-05-03