cvs: pear /XML_RPC RPC.php package.xml

From: Date: Wed, 02 Oct 2002 21:10:20 +0000
Subject: cvs: pear /XML_RPC RPC.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-6816@lists.php.net to get a copy of this message
ssb Wed Oct 2 17:10:20 2002 EDT Modified files: /pear/XML_RPC RPC.php package.xml Log: * prepare 1.0.4 release Index: pear/XML_RPC/RPC.php diff -u pear/XML_RPC/RPC.php:1.10 pear/XML_RPC/RPC.php:1.11 --- pear/XML_RPC/RPC.php:1.10 Wed Jul 24 23:48:16 2002 +++ pear/XML_RPC/RPC.php Wed Oct 2 17:10:19 2002 @@ -1,7 +1,7 @@ <?php // by Edd Dumbill (C) 1999-2001 // <edd@usefulinc.com> -// $Id: RPC.php,v 1.10 2002/07/25 03:48:16 alan_k Exp $ +// $Id: RPC.php,v 1.11 2002/10/02 21:10:19 ssb Exp $ // License is granted to use or modify this software ("XML-RPC for PHP") // for commercial or non-commercial use provided the copyright of the author @@ -372,13 +372,17 @@ var $username=""; var $password=""; - function XML_RPC_Client($path, $server, $port=80, $proxy="", $proxy_port=8080) + function XML_RPC_Client($path, $server, $port = 80, + $proxy = '', $proxy_port = 8080, + $proxy_user = '', $proxy_pass = '') { $this->port=$port; $this->server=$server; $this->path=$path; $this->proxy = $proxy; - $this->proxy_port = $proxy_port ; + $this->proxy_port = $proxy_port; + $this->proxy_user = $proxy_user; + $this->proxy_pass = $proxy_pass; } function setDebug($in) @@ -457,8 +461,13 @@ } $op .= $this->path. " HTTP/1.0\r\nUser-Agent: PHP XMLRPC 1.0\r\n" . - "Host: ". $this->server . "\r\n" . - $credentials . + "Host: ". $this->server . "\r\n"; + if ($this->proxy && $this->proxy_user != '') { + $op .= 'Proxy-Authorization: Basic ' . + base64_encode($this->proxy_user . ':' . $this->proxy_pass) . + "\r\n"; + } + $op .= $credentials . "Content-Type: text/xml\r\nContent-Length: " . strlen($msg->payload) . "\r\n\r\n" . $msg->payload; Index: pear/XML_RPC/package.xml diff -u pear/XML_RPC/package.xml:1.9 pear/XML_RPC/package.xml:1.10 --- pear/XML_RPC/package.xml:1.9 Sun May 19 17:35:47 2002 +++ pear/XML_RPC/package.xml Wed Oct 2 17:10:19 2002 @@ -15,11 +15,11 @@ </maintainer> </maintainers> <release> - <version>1.0.3</version> - <date>2002-05-19</date> + <version>1.0.4</version> + <date>2002-10-02</date> <state>stable</state> <notes> -* fix bug when parsing responses with boolean types +* added HTTP proxy authorization support (thanks to Arnaud Limbourg) </notes> <filelist> <file role="php" name="RPC.php" baseinstalldir="XML"/> @@ -28,13 +28,12 @@ </release> <changelog> <release> - <version>1.0.1</version> - <date>2001-09-25</date> + <version>1.0.3</version> + <date>2002-05-19</date> <state>stable</state> <notes> - This is a PEAR-ified version of Useful Inc's 1.0.1 release. - Includes an urgent security fix identified by Dan Libby &lt;dan@libby.com>. - </notes> + * fix bug when parsing responses with boolean types + </notes> </release> <release> <version>1.0.2</version> @@ -44,6 +43,15 @@ * E_ALL fixes * fix HTTP response header parsing </notes> + </release> + <release> + <version>1.0.1</version> + <date>2001-09-25</date> + <state>stable</state> + <notes> + This is a PEAR-ified version of Useful Inc's 1.0.1 release. + Includes an urgent security fix identified by Dan Libby &lt;dan@libby.com>. + </notes> </release> </changelog> </package>

« previous php.pear.cvs (#6816) next »