Re: [SOAP] Apache Basic Authentication PEAR::SOAP Client

From: Date: Tue, 20 May 2003 08:54:41 +0000
Subject: Re: [SOAP] Apache Basic Authentication PEAR::SOAP Client
References: 1 2  Groups: php.soap 
Request: Send a blank email to php-soap+get-617@lists.php.net to get a copy of this message
> Therefore all you need to do in PHP is: > header("Authorization: Basic ".base64_encode("username:password")); This workes as well: $options['namespace'] = "urn:mySpace"; $options['headers']['Authorization'] = "Basic ".base64_encode("username:password"); $response = $soapclient->call($method,$params,$options); From PHPDoc: $namespace array options (hash with namespace, soapaction, timeout, from, subject, etc.) The options parameter can have a variety of values added. The currently supported values are: namespace soapaction timeout (http socket timeout) from (smtp) transfer-encoding (smtp, sets the Content-Transfer-Encoding header) subject (smtp, subject header) headers (smtp, array-hash of extra smtp headers) Thanks, Anthony.

« previous php.soap (#617) next »