Home » HTTP » HTTP_Request » Bug #8213
Warning: gzinflate() data error in C:\AppServ\php\PEAR\HTTP\Request.php on line
Details
| Submitted | 2006-07-14 05:25 UTC |
|---|---|
| From | jun dot ma at csiro dot au |
| Assigned | avb |
| Status | Closed |
| Package | HTTP_Request |
| PHP Version | 5.1.4 |
| OS | Windows 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.