Bug #9847 Updated: fopen() fails with Error 0 on Forbidden URLs

From: Date: Mon, 29 Oct 2001 07:37:58 +0000
Subject: Bug #9847 Updated: fopen() fails with Error 0 on Forbidden URLs
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-69256@lists.php.net to get a copy of this message
ID: 9847 Updated by: sniper Reported By: bloch@incrementalimages.com Status: Bogus Bug Type: Filesystem function related Operating System: PHP Version: 4.0.4pl1 New Comment: This information moved to #9846. No need for two reports about same issue. Previous Comments: ------------------------------------------------------------------------ [2001-10-29 02:37:17] sniper@php.net Moved this information into #9846, no use to have two reports about same problem. ------------------------------------------------------------------------ [2001-03-19 16:59:04] bloch@incrementalimages.com Perhaps this belongs in the URL related functions. When fopen()-ing an URL that responds with an HTTP 403 Forbidden, fopen() fails with an Error 0. There is no way to distinguish this error from a 'Not Found' type of error. Workaround is to use cURL. Eric ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=9847&edit=1

« previous php.dev (#69256) next »