cvs: pear /XML_RPC2/XML/RPC2/Util HTTPRequest.php
| From: | Fabien MARTY | Date: | Tue, 17 Jan 2006 22:26:39 +0000 |
| Subject: | cvs: pear /XML_RPC2/XML/RPC2/Util HTTPRequest.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-37624@lists.php.net to get a copy of this message | ||
fab Tue Jan 17 22:26:39 2006 UTC
Modified files:
/pear/XML_RPC2/XML/RPC2/Util HTTPRequest.php
Log:
- typo
- introduce a user-agent
http://cvs.php.net/viewcvs.cgi/pear/XML_RPC2/XML/RPC2/Util/HTTPRequest.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/XML_RPC2/XML/RPC2/Util/HTTPRequest.php
diff -u pear/XML_RPC2/XML/RPC2/Util/HTTPRequest.php:1.3
pear/XML_RPC2/XML/RPC2/Util/HTTPRequest.php:1.4
--- pear/XML_RPC2/XML/RPC2/Util/HTTPRequest.php:1.3 Fri Jan 6 21:42:01 2006
+++ pear/XML_RPC2/XML/RPC2/Util/HTTPRequest.php Tue Jan 17 22:26:39 2006
@@ -6,7 +6,7 @@
/**
* +-----------------------------------------------------------------------------+
-* | Copyright (c) 2004 Sérgio Gonçalves Carvalho |
+* | Copyright (c) 2004 S�rgio Gon�alves Carvalho |
* +-----------------------------------------------------------------------------+
* | This file is part of XML_RPC2. |
* | |
@@ -25,15 +25,15 @@
* | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
* | 02111-1307 USA |
* +-----------------------------------------------------------------------------+
-* | Author: Sérgio Carvalho <sergio.carvalho@portugalmail.com> |
+* | Author: S�rgio Carvalho <sergio.carvalho@portugalmail.com> |
* +-----------------------------------------------------------------------------+
*
* @category XML
* @package XML_RPC2
-* @author Sérgio Carvalho <sergio.carvalho@portugalmail.com>
-* @copyright 2004-2005 Sérgio Carvalho
+* @author S�rgio Carvalho <sergio.carvalho@portugalmail.com>
+* @copyright 2004-2005 S�rgio Carvalho
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
-* @version CVS: $Id: HTTPRequest.php,v 1.3 2006/01/06 21:42:01 fab Exp $
+* @version CVS: $Id: HTTPRequest.php,v 1.4 2006/01/17 22:26:39 fab Exp $
* @link http://pear.php.net/package/XML_RPC2
*/
@@ -49,15 +49,15 @@
*
* @category XML
* @package XML_RPC2
- * @author Sérgio Carvalho <sergio.carvalho@portugalmail.com>
- * @copyright 2004-2005 Sérgio Carvalho
+ * @author S�rgio Carvalho <sergio.carvalho@portugalmail.com>
+ * @copyright 2004-2005 S�rgio Carvalho
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
* @link http://pear.php.net/package/XML_RPC2
*/
class XML_RPC2_Util_HTTPRequest
{
- // {{{ properties
+ // {{{�properties
/**
* proxy field
@@ -121,7 +121,7 @@
}
// }}}
- // {{{ constructor
+ // {{{�constructor
/**
* Constructor
@@ -183,7 +183,7 @@
curl_setopt($ch, CURLOPT_URL, $this->_uri) &&
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE) &&
curl_setopt($ch, CURLOPT_POST, 1) &&
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml;
charset='.$this->_encoding)) &&
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/xml;
charset='.$this->_encoding, 'User-Agent: PEAR_XML_RCP2/0.0.x')) &&
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_postData)
) {
$result = curl_exec($ch);