zaidka / cliget

A Firefox addon to download login-protected files from the command line
https://addons.mozilla.org/en-US/firefox/addon/cliget/
Mozilla Public License 2.0
357 stars 57 forks source link

Some files are not recognized by cliget #52

Open motatuc opened 6 years ago

motatuc commented 6 years ago

Hello,

Thanks for porting this to FF 57. Really appreciated.

Works good so far except I some files are not recognized, means cliget does not recognize the download even if the firefox-internal download-window shows up.

Two examples but this might happen with other files as well:

Link to check out these two examples:

http://streamyourfile.com/1k2kxepnrlny (links to a rar-file which contains a pdf, no copyright infringement ;))

and:

https://cdn.loc.gov/master/gmd/gmd4/g4701/g4701g/ct009133.tif (tif file, no copyright infringement either)

Thanks for looking into that.

motatuc commented 6 years ago

@zaidka: Did you already have a chance to take a look at this problem?

zaidka commented 6 years ago

I did. The server is responding with the header "content-type: text/plain" when it is in fact a binary RAR file. cliget ignores html and text responses because those are supposed to be handled by the browser. Not yet sure what can be done about this.

weberjn commented 6 years ago

What about just ignoring the header, putting everything from the save dialog into the download list and letting the user decide?

zaidka commented 6 years ago

@weberjn then every single page you visit will show up there. Not ideal I'd say.