curl-and-php
(no subject)
Date: Wed, 24 Oct 2001 11:43:47 +0100
Hi,
i'm trying to do this code:
$ch=curl_init("$url?$params");
file://curl_setopt ($ch, CURLOPT_URL, "$url?$params");
file://curl_setopt($ch,CURLOPT_VERBOSE,1);
file://curl_setopt($ch, CURLOPT_FAILONERROR, 1);
file://curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
file://curl_setopt($ch, CURLOPT_TIMEOUT, 360);
file://curl_setopt ($ch, CURLOPT_HEADER, 0);
file://curl_setopt ($ch, CURLOPT_SSLVERSION, 3);
curl_setopt($ch,CURLOPT_SSLCERT,"multicert.pem");
curl_setopt($ch,CURLOPT_SSLCERTPASSWD,"3I3I37RP52G1L15D8T8S");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CAINFO,"chain.cer");
file://curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
$data = curl_exec($ch);
echo "<p>$data</p>";
$info=curl_getinfo($ch);
while(list($key,$value)=each($info))
echo "<p>$key=$value</p>";
curl_close($ch);
and the output is:
url=https://cer.pnet.multibanco.pt/pvtn?A030=M001&A001=1266&C007=123100110470001&A061=0&A105=0&A013=
http_code=0
header_size=0
request_size=0
filetime=0
total_time=0
namelookup_time=0.01
connect_time=0
pretransfer_time=0
size_upload=0
size_download=0
speed_download=0
speed_upload=0
In the shell command everything works well with this command:
>curl -d A030=M001 -d A001=1266 -d C007=123100110470001 -d A061=0 -d A105=0 -d A013="" --cert multicert.pem:3I3I37RP52G1L15D8T8S --cacert chain.cer https://cer.pnet.multibanco.pt/pvtn
I'm using windows 2k server with IIS 5.
BTW, anyone knows why i can't run executables in Windows ?
Thank you.
Hugo Alexandre Dias
Web-Programmer
MNI - Médicos na Internet
E-mail: hugo_at_mni.pt
ICQ # 7995052
MSN: anikin_jedi_at_hotmail.com
http://www.mni.pt
http://www.saudenainternet.pt
http://www.listamedica.com
http://medicos24.siconline.pt
MNI - Um Mundo de Médicos
- application/x-pkcs7-signature attachment: smime.p7s