Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103537 - wget saves data in incorrectly named file if http server is PHP enabled.
Summary: wget saves data in incorrectly named file if http server is PHP enabled.
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 18:41 UTC by Christopher Sawtell
Modified: 2005-08-24 11:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Sawtell 2005-08-23 18:41:54 UTC
chris@imogen ~ $ wget -S http://laby.toybox.de/download2.php?fileid=15
--11:56:49--  http://laby.toybox.de/download2.php?fileid=15
           => `download2.php?fileid=15'
Resolving laby.toybox.de... 212.227.43.232
Connecting to laby.toybox.de|212.227.43.232|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 200 OK
  Date: Tue, 23 Aug 2005 23:53:03 GMT
  Content-Length: 4882608
  Content-Type: application/x-tgz
  Expires: Tue, 23 Aug 2005 23:53:03 GMT
  Server: Apache/1.3.33 (Unix)
  Content-disposition: filename=laby_1.0.1.tar.gz
  Pragma: no-cache
  X-Powered-By: PHP/4.3.10
  Via: 1.1 nc1 (NetCache NetApp/5.6.2)
  X-Cache: MISS from rafferty.csnet
  Connection: keep-alive
Length: 4,882,608 (4.7M) [application/x-tgz]

100%[=======================================================>] 4,882,608    
29.78K/s    ETA 00:00

11:59:35 (28.80 KB/s) - `download2.php?fileid=15' saved [4882608/4882608]


Reproducible: Always
Steps to Reproduce:
1.wget -S http://laby.toybox.de/download2.php?fileid=15
2.
3.

Actual Results:  
the file was saved using the name 'download2.php?fileid=15'

Expected Results:  
Saved the file using the name taken from the header line
Content-disposition: filename=laby_1.0.1.tar.gz

chris@imogen ~ $ wget --version
GNU Wget 1.10
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-24 01:03:22 UTC
Well, yeah - this is annoying but needs to be fixed upstream. It's on the
wishlist for 2.0 (see http://wget.sunsite.dk/development.shtml).
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2005-08-24 11:41:41 UTC
see wishlist.