RE: [SOAP] Verbose Curl
| From: | LIMBOURG Arnaud | Date: | Thu, 22 May 2003 06:37:13 +0000 |
| Subject: | RE: [SOAP] Verbose Curl | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-635@lists.php.net to get a copy of this message | ||
The problem comes from Transport/HTTP.php
curl_setopt($ch, CURLOPT_POSTFIELDS, $msg);
curl_setopt($ch, CURLOPT_URL, $this->url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
It is hardcoded to set verbose to 1. the weird thing is that options are
processed after. Try removing this line from SOAP/Transport/HTTP.php
Arnaud.
> List,
>
> Which of these is correct? None seem to make CURL run quietly. Is it
> because I have a self-signed certificate?
>
> // This...
> $sc =& new
> SOAP_Client("https://www.domain.com/soap.php");
> $opt =
>
> array('namespace'=>'urn:my_rpc','style'=>'rpc','timeout'=>30,'
> curl'=>array(C
> URLOPT_VERBOSE,0));
> $sc->call('something',$arg,$opt);
> // Or this...
> $sc =& new SOAP_Client("ä\
> V–v¬&ü½nf¥7Çhttps://www.domain.com/soap.php");
> $sc->setOpt('curl',CURLOPT_VERBOSE,0);
> $opt =
> array('namespace'=>'urn:my_rpc','style'=>'rpc','timeout'=>30);
> // Or this...
> $sc =& new
> SOAP_Client("https://www.domain.com/soap.php");
> $sc->setOpt('curl',CURLOPT_VERBOSE,0);
> $sc->setOpt('curl',CURLOPT_MUTE,1);
> $opt =
> array('namespace'=>'urn:my_rpc','style'=>'rpc','timeout'=>30);