PHP PEAR CVS 25 CVS PEAR SOAP TRANSPORT HTTP PHP
Date: Tue, 01 Jul 2003 19:05:26 -0000

Subject: cvs: pear /SOAP/Transport HTTP.php
From: arnaud@no-spam (Arnaud Limbourg)

arnaud Tue Jul 1 15:05:26 2003 EDT
Modified files: /pear/SOAP/Transport HTTP.php Log:
* phpdoc Index: pear/SOAP/Transport/HTTP.php diff -u pear/SOAP/Transport/HTTP.php:1.34 pear/SOAP/Transport/HTTP.php:1.35
--- pear/SOAP/Transport/HTTP.php:1.34 Wed Jun 11 05:57:52 2003
+++ pear/SOAP/Transport/HTTP.php Tue Jul 1 15:05:26 2003
@@no-spam -16,7 +16,7 @@no-spam // | Authors: Shane Caraveo <Shane@no-spam> |
// +----------------------------------------------------------------------+
//
-// $Id: HTTP.php,v 1.34 2003/06/11 09:57:52 arnaud Exp $
+// $Id: HTTP.php,v 1.35 2003/07/01 19:05:26 arnaud Exp $
//
/**
@@no-spam -36,7 +36,7 @@no-spam * HTTP Transport for SOAP *
* @no-spam public - * @no-spam $Id: HTTP.php,v 1.34 2003/06/11 09:57:52 arnaud Exp $
+ * @no-spam $Id: HTTP.php,v 1.35 2003/07/01 19:05:26 arnaud Exp $
* @no-spam SOAP::Transport::HTTP * @no-spam Shane Caraveo <shane@no-spam>
*/
@@no-spam -45,10 +45,17 @@no-spam /**
* Basic Auth string *
- * @no-spam string + * @no-spam array */
var $headers = array();
+
+ /**
+ * Cookies + *
+ * @no-spam + */
var $cookies;
+
/**
*
* @no-spam int connection timeout in seconds - 0 = none @@no-spam -104,7 +111,9 @@no-spam var $result_content_type;
var $result_headers = array();
+
var $result_cookies = array();
+
/**
* SOAP_Transport_HTTP Constructor *
@@no-spam -166,11 +175,27 @@no-spam $this->headers['Authorization'] = 'Basic ' . base64_encode($username . ':' . $password);

}
+ /**
+ * Add a cookie + *
+ * @no-spam public + * @no-spam string $name cookie name + * @no-spam mixed $value cookie value + * @no-spam void + */
function addCookie($name, $value)
{
$this->cookies[$name]=$value;
}
+ // private methods +
+ /**
+ * Generates the correct headers for the cookies + *
+ * @no-spam private + * @no-spam void + */
function _genCookieHeader()
{
foreach ($this->cookies as $name=>$value) {
@@no-spam -180,13 +205,11 @@no-spam return $cookies;
}
- // private members -
/**
* validate url data passed to constructor *
- * @no-spam boolean * @no-spam private + * @no-spam boolean */
function _validateUrl()
{
@@no-spam -243,6 +266,12 @@no-spam if (!$this->result_content_type) $this->result_content_type = 'text/xml';

}
+ /**
+ * Parses the headers + *
+ * @no-spam array $headers the headers + * @no-spam void + */
function _parseHeaders($headers)
{
/* largely borrowed from HTTP_Request */