Project

General

Profile

Bug #11851

Honor Content-Disposition: filename

Added by Jim Fulton about 6 years ago. Updated almost 6 years ago.

Status:
Confirmed
Priority:
Normal (P3)
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Keywords:

Description

Unfortunately, some downloads don't reflect file names in URLs:

A good example:

wget https://api.github.com/repos/JakeWharton/ActionBarSherlock/tarball/4.2.0 S
--2013-01-08 15:49:54-
https://api.github.com/repos/JakeWharton/ActionBarSherlock/tarball/4.2.0
Resolving api.github.com... 207.97.227.243
Connecting to api.github.com|207.97.227.243|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 302 Found
Server: GitHub.com
Date: Tue, 08 Jan 2013 20:49:55 GMT
Content-Type: text/html;charset=utf-8
Connection: keep-alive
Status: 302 Found
Cache-Control: public, must-revalidate, max-age=0
Expires: Tue, 08 Jan 2013 20:49:55 GMT
X-Content-Type-Options: nosniff
Location: https://nodeload.github.com/JakeWharton/ActionBarSherlock/legacy.tar.gz/4.2.0
Content-Length: 0
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 43
Location: https://nodeload.github.com/JakeWharton/ActionBarSherlock/legacy.tar.gz/4.2.0 [following]
--2013-01-08 15:49:55-- https://nodeload.github.com/JakeWharton/ActionBarSherlock/legacy.tar.gz/4.2.0
Resolving nodeload.github.com... 207.97.227.252
Connecting to nodeload.github.com|207.97.227.252|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: GitHub.com
Date: Tue, 08 Jan 2013 20:49:55 GMT
Content-Type: application/x-gzip
Connection: keep-alive
Content-Length: 5098575
Content-Disposition: attachment; filename=JakeWharton-ActionBarSherlock-4.2.0-0-g90939dc.tar.gz
Length: 5098575 (4.9M) [application/x-gzip]
Saving to: `4.2.0.1'

Of course, whet gets this wrong too. :)

History

#1 Updated by Wolfgang Schnerring almost 6 years ago

  • Status changed from New to Confirmed

Also available in: Atom PDF