php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20139 Download links redirector is broken
Submitted: 2002-10-28 13:20 UTC Modified: 2002-10-28 13:26 UTC
From: notreal at nowhere dot com Assigned:
Status: Not a bug Package: Website problem
PHP Version: 4.2.3 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: notreal at nowhere dot com
New email:
PHP Version: OS:

 

 [2002-10-28 13:20 UTC] notreal at nowhere dot com
The download links on the mirrors page have a bug in the rediretector. IE works around it by fixing the invalid link, but wget fails:

[root /root]# wget http://www.php.net/do_download.php?mr=http%3A%2F%2Fus2.php.net%2F\&df=php-4.2.3.tar.gz
--20:05:49--  http://www.php.net:80/do_download.php?mr=http%3A/us2.php.net/&df=php-4.2.3.tar.gz
           => `&df=php-4.2.3.tar.gz'
Connecting to www.php.net:80... connected!
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http:/us2.php.net/distributions/php-4.2.3.tar.gz [following]
...

Note that your redirector only put a single '/' after the http: protocol specifier, not two. So wget tries to ftp to the host "http" and fails, of course. 

This should be a simple fix.

Also, it would be nice (for wget and other command-line downloaders on Unix) of the URL didn't have a '&' in it that you had to escape before downloading.
Just a thought.

Thanks

p.s. Your bug submitter is too smart. I would have given a real email address, just obfuscated a bit to make it human readable, but not computer readable. But it wouldn't let me. Sorry. Maybe you should change the bug listing service to not print email addresses.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-28 13:26 UTC] goba@php.net
Our URLs include http:// everywhere. There are no single /-s after the HTTP in our URLs. Please read http://php.net/downloads.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC