php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21246 Download via wget or other command line utils not possible
Submitted: 2002-12-28 09:29 UTC Modified: 2002-12-28 11:20 UTC
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: bauchi at bauchi dot de Assigned:
Status: Wont fix Package: Website problem
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bauchi at bauchi dot de
New email:
PHP Version: OS:

 

 [2002-12-28 09:29 UTC] bauchi at bauchi dot de
hi there,

due to your new mirror system anyone trying to download php via wget or other command line utils will fail ... 
i tried it several times today, but i had to use lynx and climb my way through the pages to get the actual release..

you should consider to give people a chance to get the releases through command line utils as well.

as you know, many webservers run without a graphical interface such as X ... wget is one of the usual ways in linux to grab files from webservers :-)

wget output:
yummy:/tmp # wget -s -d -v http://www.php.net/do_download.php?mr=http%3A%2F%2Fde3.php.net%2F&df=php-4.3.0.tar.bz2
[1] 28248
yummy:/tmp # DEBUG output created by Wget 1.6 on linux.

parseurl ("http://www.php.net/do_download.php?mr=http%3A%2F%2Fde3.php.net%2F") -> host www.php.net -> opath do_download.php?mr=http%3A%2F%2Fde3.php.net%2F -> dir  -> file do_download.php?mr=http://de3.php.net/ -> ndir
newpath: /do_download.php?mr=http%3A//de3.php.net/
--16:28:32--  http://www.php.net/do_download.php?mr=http%3A//de3.php.net/
           => `do_download.php?mr=http://de3.php.net/.1'
Connecting to www.php.net:80... Created fd 3.
connected!
---request begin---
GET /do_download.php?mr=http%3A//de3.php.net/ HTTP/1.0
User-Agent: Wget/1.6
Host: www.php.net
Accept: */*

---request end---
HTTP request sent, awaiting response... HTTP/1.0 200 OK
Date: Sat, 28 Dec 2002 15:23:04 GMT
Server: Apache/1.3.26 (Unix) PHP/4.3.0-dev
X-Powered-By: PHP/4.3.0-dev
Content-Type: text/html
X-Cache: MISS from rs1.php.net
Connection: close


Length: unspecified [text/html]

    0K ->

Closing fd 3
16:28:32 (35.16 KB/s) - `do_download.php?mr=http://de3.php.net/.1' saved [36]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-28 11:16 UTC] goba@php.net
Please escape any shell special chars in the download URL, like ? and &, which may be interpreted specially by your shell.

Note: maybe reconsider the download URLs, or document the escape requirement for shell programs in the FAQ.
 [2002-12-28 11:18 UTC] goba@php.net
Or provide the parameter for wget in quotes.
 [2002-12-28 11:20 UTC] iliaa@php.net
The download link takes you to a list of mirrors from which you can download PHP source or Win32 binaries. From the mirrors you can already use wget.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC