|
Posted by JW on 04/29/07 21:11
Hello. I'm trying to make a SOAP request, and enable compression in
the response (by sending the Accept-Encoding header). To do this, I'm
sending 'compression' => SOAP_COMPRESSION_ACCEPT |
SOAP_COMPRESSION_GZIP in the SoapClient constructor's options.
But when I print the request headers, I don't see the Accept-Encoding
header. Am I doing something wrong?
I also tried SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 9 to
set the compression level, as I've seen in some examples.
I just downloaded and compiled php 5.2.1 with --enable-soap on Mac OS
10.4.9.
The full example is below:
$o_client = new SoapClient($wsdlURL, array(
'trace' => true,
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
'login' => $login,
'password' => $password
));
$o_result = $o_client->acknowledge();
echo $o_client->__getLastRequestHeaders();
Navigation:
[Reply to this message]
|