PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Request » Bug #8213

Warning: gzinflate() data error in C:\AppServ\php\PEAR\HTTP\Request.php on line

Details

Submitted2006-07-14 05:25 UTC
Fromjun dot ma at csiro dot au
Assignedavb
StatusClosed
PackageHTTP_Request
PHP Version5.1.4
OSWindows server 2003
Roadmaps(Not assigned)

Comments

[2006-07-14 05:25 UTC] jun dot ma at csiro dot au

Description:
------------
http request gives the following warning message, and the echo $response1 does not work.
Warning: gzinflate() [function.gzinflate]: data error in C:\AppServ\php\PEAR\HTTP\Request.php on line 1060

Test script:
---------------
$req = &new HTTP_Request("http://www.votapedia.com/index.php?");
$req->setMethod(HTTP_REQUEST_METHOD_POST);
$req->clearCookies();
$req->addQueryString('title', 'Special:Userlogin');
$req->addQueryString('action', 'submitlogin');
$req->addQueryString('type', 'signup');
$req->addPostData('wpName', $userName);
$req->addPostData('wpPassword', $password);
$req->addPostData('wpRetype', $password);
$req->addPostData('wpEmail', $email);
$req->addPostData('wpRealName', $realName);
$req->addPostData('wpCreateaccount', 'Create account');
$req->sendRequest();
$response1 = $req->getResponseBody();
echo $response1;

Expected result:
----------------
echo the response page from the server.

Actual result:
--------------
http request gives the warning message, and the $response1 is not echoed.