ID:               24505
 Updated by:       [EMAIL PROTECTED]
 Reported By:      firewolf at pochtampt dot ru
-Status:           Open
+Status:           Assigned
 Bug Type:         Feature/Change Request
 Operating System: FreeBSD-4.8
 PHP Version:      4.3.3RC1
-Assigned To:      
+Assigned To:      wez
 New Comment:

We won't be overloading fopen() to handle partial fetches.
However, we are looking at adding some kind of http_request() function
that can include this kind of feature.




Previous Comments:
------------------------------------------------------------------------

[2003-07-05 00:23:11] firewolf at pochtampt dot ru

Description:
------------
function fopen(),
when I open http://somesite/somefile
I can't use reget, because server response:
HTTP/1.0 206 Partial content... and php log error.

Its possible when I make content:

$opts = array('http'=>array('user_agent'                               
  => "USER_AGET NAME\r\nRange: bytes=2000-\r\n"));
$context = stream_context_create($opts);
$fl = fopen("$url","r",false,$context);


Reproduce code:
---------------
php-4.3.3RC1/ext/standard/http_fopen_wrapper.c.orig:
...
line 300: 
switch(response_code) {
                                case 200:
                                case 302:
                                case 301:
                                        reqok = 1;
                                        break;
                                case 403:


Expected result:
----------------
php-4.3.3RC1/ext/standard/http_fopen_wrapper.c.orig:
...
line 300: 
switch(response_code) {
                                case 200:
                                case 206:
                                case 302:
                                case 301:
                                        reqok = 1;
                                        break;
                                case 403:




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24505&edit=1

Reply via email to