[pLog-svn] r1852 - plog/trunk/class/net/http

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sun Apr 17 17:31:45 GMT 2005


Author: oscar
Date: 2005-04-17 17:31:44 +0000 (Sun, 17 Apr 2005)
New Revision: 1852

Modified:
   plog/trunk/class/net/http/httpclient.class.php
Log:
removed some notices and warnings

Modified: plog/trunk/class/net/http/httpclient.class.php
===================================================================
--- plog/trunk/class/net/http/httpclient.class.php	2005-04-17 17:31:34 UTC (rev 1851)
+++ plog/trunk/class/net/http/httpclient.class.php	2005-04-17 17:31:44 UTC (rev 1852)
@@ -267,6 +267,9 @@
 			$this->user = $URI_PARTS["user"];
 		if (!empty($URI_PARTS["pass"]))
 			$this->pass = $URI_PARTS["pass"];
+			
+		if( !isset( $URI_PARTS["scheme"] ))
+			$URI_PARTS["scheme"] = "";
 				
 		switch($URI_PARTS["scheme"])
 		{
@@ -819,6 +822,7 @@
 		}
 
 		//$results = fread($fp, $this->maxlength);
+		$results = "";
 		while(!feof($fp)) {
 			$results .= fgets($fp, 128);
 		}
@@ -1114,6 +1118,8 @@
 		if (count($formvars) == 0 && count($formfiles) == 0)
 			return;
 		
+		$postdata = "";
+		
 		switch ($this->_submit_type) {
 			case "application/x-www-form-urlencoded":
 				reset($formvars);




More information about the pLog-svn mailing list