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

curl-and-php

problem while redirecting with curl to an https

From: Lizet Peņa de Sola <lizet_at_krosslink.com>
Date: Wed, 5 May 2004 17:28:18 -0500

hi all,
I'm trying to send a post request to a https uri with curl, everything
works except that the browser never shows the new https url that I'm
redirecting the browser to not the lock image on the status bar, the url
that is shown is the one of the page making the request.
the code is as follows:
$url="https://www.foo.com"
$ch= curl_init();
   curl_setopt($ch, CURLOPT_URL, $url);
         $arg= Array();
//...filling the array
      
   curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, $arg);
      curl_exec ($ch);
    curl_close ($ch);
 
thanks in advance,
Lizet
Received on 2004-05-05