1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #442 (closed: self-service)

Opened 5 years ago

Last modified 5 weeks ago

Using wget to download "tracker" attachments leaves you with really bad filenames

Reported by: sbronson Owned by:
Keywords: Cc:
Private: no

Description

For example:

bronson@bender:~/devel/cscope-15.7$ wget 'http://sourceforge.net/tracker/download.php?group_id=4664&atid=304664&file_id=323860&aid=2777839'
--2009-05-01 17:44:02--  http://sourceforge.net/tracker/download.php?group_id=4664&atid=304664&file_id=323860&aid=2777839
Resolving sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 992 [application/octet-stream]
Saving to: `download.php?group_id=4664&atid=304664&file_id=323860&aid=2777839'

100%[======================================>] 992         --.-K/s   in 0s

2009-05-01 17:44:02 (261 MB/s) - `download.php?group_id=4664&atid=304664&file_id=323860&aid=2777839' saved [992/992]

This probably doesn't matter, but:

bronson@bender:~/devel/cscope-15.7$ wget --version
GNU Wget 1.11.1

Looking at the headers with curl, I see:

bronson@bender:~/devel/cscope-15.7$ curl -i 'http://sourceforge.net/tracker/download.php?group_id=4664&atid=304664&file_id=323860&aid=2777839'
HTTP/1.1 200 OK
X-Powered-By: PHP/5.2.8
X-SFX-Webhead: sfs-web-4
X-SFX-Revision: release_20090417
Set-Cookie: PHPSESSID=b20d47b6dd3981b0bff5a1cdca2f83cc; expires=Friday, 15-May-09 20:49:08 GMT; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma:
Cache-Control:
Content-Disposition: attachment; filename=xcscope-ret.patch
Content-type: application/octet-stream
Content-length: 992
ETag: "jpd-3162055576.1000"
Date: Fri, 01 May 2009 20:49:09 GMT
Server: lighttpd/1.4.19

Could you perhaps use the intended filename as the last component of the URL, rather than relying on not-(yet)-standardized-for-HTTP headers like Content-Disposition?

Change History

Changed 5 years ago by hinojosa

  • status changed from new to closed
  • resolution set to self-service

Hi,

We would need to take this as a Request For Enhancement (RFE - https://sourceforge.net/tracker/?func=add&group_id=1&atid=350001).

Best regards,

Daniel Hinojosa - Sr. Manager, SourceForge.net Support

P.S., Be sure to monitor our Site Status page, https://sourceforge.net/sitestatus.

Note: See TracTickets for help on using tickets.