cvs: pearweb /include pear-format-xmlrpc.php

From: Date: Sat, 14 Dec 2002 17:38:32 +0000
Subject: cvs: pearweb /include pear-format-xmlrpc.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7889@lists.php.net to get a copy of this message
mj Sat Dec 14 12:38:32 2002 EDT Modified files: /pearweb/include pear-format-xmlrpc.php Log: * Clean up. Index: pearweb/include/pear-format-xmlrpc.php diff -u pearweb/include/pear-format-xmlrpc.php:1.6 pearweb/include/pear-format-xmlrpc.php:1.7 --- pearweb/include/pear-format-xmlrpc.php:1.6 Sun Jun 9 19:05:54 2002 +++ pearweb/include/pear-format-xmlrpc.php Sat Dec 14 12:38:31 2002 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-xmlrpc.php,v 1.6 2002/06/09 23:05:54 richard Exp $ + $Id: pear-format-xmlrpc.php,v 1.7 2002/12/14 17:38:31 mj Exp $ */ if (isset($_SERVER['PHP_AUTH_USER']) && !isset($_COOKIE['PEAR_USER'])) { @@ -84,8 +84,7 @@ $content_len = strlen($request); $fsockopen = $secure ? "fsockopen_ssl" : "fsockopen"; - -// dbg1("opening socket to host: $host, port: $port, uri: $uri", $debug); + $query_fd = $fsockopen($host, $port, $errno, $errstr, 10); if ($query_fd) { @@ -104,20 +103,15 @@ "Content-Length: $content_len\r\n" . "\r\n" . $request; - -// dbg1("sending http request:</h3> <xmp>\n$http_request\n</xmp>", $debug); - + fputs($query_fd, $http_request, strlen($http_request)); - -// dbg1("receiving response...", $debug); - + while (!feof($query_fd)) { $line = fgets($query_fd, 4096); if (!$header_parsed) { if ($line === "\r\n" || $line === "\n") { $header_parsed = 1; } -// dbg2("got header - $line", $debug); } else { $response_buf .= $line; @@ -126,16 +120,8 @@ fclose($query_fd); } - else { -// dbg1("socket open failed", $debug); - } } - else { -// dbg1("missing param(s)", $debug); - } - -// dbg1("got response:</h3>. <xmp>\n$response_buf\n</xmp>\n", $debug); - + return $response_buf; }

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