From: jeremy dot amiot at gmail dot com Operating system: Linux 2.4 PHP version: 5.2.5 PHP Bug Type: HTTP related Bug description: function get_headers() fails on a particular URL
Description: ------------ Hello, get_headers() fails with this king of URL : http://www.radioblogclub.com/listen.php?u=..wLzRmb192cv8mZulmLzRmcvNWZy9Gb1NmcvBnch12b0FmL3d3d/Wolf%2520Eyes%2520-%2520The%2520driller.rbs&k=657ecb3231ac0b275497d4d6f00b61a1 it returns me : Warning: get_headers(http://www.radioblogclub.com/listen.php?u=..wLzRmb192cv8mZulmLzRmcvNWZy9Gb1NmcvBnch12b0FmL3d3d/Wolf%2520Eyes%2520-%2520The%2520driller.rbs&k=657ecb3231ac0b275497d4d6f00b61a1) [function.get-headers]: failed to open stream: HTTP request failed! in ********* on line 5. But when you type this URL in your browser, it works well, it redirects you to a file. (header(location)) Reproduce code: --------------- <?php $url = 'http://www.radioblogclub.com/listen.php?u=..wLzRmb192cv8mZulmLzRmcvNWZy9Gb1NmcvBnch12b0FmL3d3d/Wolf%2520Eyes%2520-%2520The%2520driller.rbs&k=657ecb3231ac0b275497d4d6f00b61a1'; print_r(get_headers($url)); ?> Expected result: ---------------- Fetches all the headers sent by the server in response to my HTTP request Actual result: -------------- Warning: get_headers(http://www.radioblogclub.com/listen.php?u=..wLzRmb192cv8mZulmLzRmcvNWZy9Gb1NmcvBnch12b0FmL3d3d/Wolf%2520Eyes%2520-%2520The%2520driller.rbs&k=657ecb3231ac0b275497d4d6f00b61a1) [function.get-headers]: failed to open stream: HTTP request failed! in ********* on line 5. -- Edit bug report at http://bugs.php.net/?id=43749&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43749&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43749&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43749&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43749&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43749&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43749&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43749&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43749&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43749&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43749&r=support Expected behavior: http://bugs.php.net/fix.php?id=43749&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43749&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43749&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43749&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43749&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43749&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43749&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43749&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43749&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43749&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43749&r=mysqlcfg