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

curl-and-php

Re: major problem

From: Hugo Alexandre A. S. Dias <hugo_at_mni.pt>
Date: Fri, 18 Jan 2002 15:06:35 -0000

I don't know.

I can give this piece of code:

      $url="https://cer.pnet.multibanco.pt/pvtn";
      $params="some params";

      $ch=curl_init();
      curl_setopt($ch,CURLOPT_URL,$url);
      curl_setopt($ch,CURLOPT_POST, 1);
      curl_setopt($ch,CURLOPT_POSTFIELDS,$params);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_SSLCERT, "\\certificados\\multicert.pem");
      curl_setopt($ch, CURLOPT_SSLCERTPASSWD, "123456");
      curl_setopt($ch, CURLOPT_CAINFO,"\\certificados\\chain.cer");
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,true);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,2);
      curl_setopt($ch, CURLOPT_VERBOSE,false);
      $data = curl_exec($ch);

      curl_close($ch);
      echo $data;

This works in my oun computer(IIS 4.0, PHP 4.1.1) but in our server it
doesn't work. I know it's a silly question, but no changes were made in the
server. Only a little one of upgrading the php version of one site we have
there. In our server we have (IIS 5.0, PHP4.0.8-dev).

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

----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "Hugo Alexandre A. S. Dias" <hugo_at_mni.pt>
Cc: "curl and php list" <curl-and-php_at_lists.sourceforge.net>
Sent: Friday, January 18, 2002 2:55 PM
Subject: Re: major problem

> On Fri, 18 Jan 2002, Hugo Alexandre A. S. Dias wrote:
>
> > I have devellop some things with CURL and PHP 4.0.8-dev
> >
> > Until last wednesday everything worked just fine, but now, none of the
curl
> > communication works anymore.
> >
> > Nothing was done in the server. Can anyone explain me what could happen?
>
> No.
>
> You need to provide a whole lotta more info first. You knew that, didn't
you?
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
>
>
Received on 2002-01-18