|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56635 Transferred a partial file
Submitted: 2005-11-10 09:19 UTC Modified: 2007-02-15 09:38 UTC
From: uros at vizija dot si Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.0.3 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: uros at vizija dot si
New email:
PHP Version: OS:


 [2005-11-10 09:19 UTC] uros at vizija dot si
Some URL reproduce error "transfer partial file". The most obvious problem is because almost all urls are in null frame (check the source of URL

Reproduce code:

$url = '';
$r = new HttpRequest();
try {
} catch (Exception $e) {

echo $r->getResponseCode();


Expected result:

Actual result:
HttpRequestException Object
    [message:protected] => Could not perform request: Transferred a partial file
    [string:private] =>
    [code:protected] => 8
    [file:protected] => /usr/local/www/data-dist/
    [line:protected] => 8
    [trace:private] => Array
            [0] => Array
                    [file] => /usr/local/www/data-dist/
                    [line] => 8
                    [function] => send
                    [class] => HttpRequest
                    [type] => ->
                    [args] => Array





Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-10 10:59 UTC]
This has *partially* been fixed in CVS.

- The server returns an invalid response, because the
  message is not terminated by 0 as required for chunked
  encoded messages (the reason for the exception).

- The encountered exception will be thrown in future, too.

- The gathered response data is available through the
  HttpRequest::getResponse*() methods, though.

Thanks a lot, and check out the CVS version if you can.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 03:01:27 2024 UTC