php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9847 fopen() fails with Error 0 on Forbidden URLs
Submitted: 2001-03-19 16:59 UTC Modified: 2001-10-29 02:38 UTC
From: bloch at incrementalimages dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.4pl1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bloch at incrementalimages dot com
New email:
PHP Version: OS:

 

 [2001-03-19 16:59 UTC] bloch at incrementalimages dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-29 02:37 UTC] sniper@php.net
Moved this information into #9846, no use to have two
reports about same problem.

 [2001-10-29 02:37 UTC] sniper@php.net
This information moved to #9846. No need for two reports
about same issue.

 [2001-10-29 02:38 UTC] sniper@php.net
This information moved to #9846. No need for two reports
about same issue.

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC