TachibanaGeneralLaboratories / download-navi

Free and Open Source software download manager
GNU General Public License v3.0
838 stars 87 forks source link

Added a referer header specification option to download dialog #114

Closed 8176135 closed 4 years ago

8176135 commented 4 years ago

I added another text field after checksum in the add download advanced drop down section, which allows you to specify the referer header for downloads.

Some sites (e.g. pixiv.net) will return a 403 error if you don't have a correct referer header when trying to download their content. This allows you to at least work around that manually by copying and pasting the parent url.

Things to note about this pull request:

proninyaroslav commented 4 years ago

Have you already tested this feature?

8176135 commented 4 years ago

Yes.

For example, when on my navi branch:

  1. Go to https://www.pixiv.net/en/artworks/83953383 on your firefox/chrome android.
  2. Long press the image and share with navi
  3. navi will complain server returned http 403 error
  4. type in the referer https://i.pximg.net/
  5. try connect again
  6. and it works!
  7. press add and it will download fine as well.
proninyaroslav commented 4 years ago

Thank you

8176135 commented 4 years ago

Oh sorry, I just realized a problem, the copy/clipboard button beside the referer textbox doesn't do anything at the moment. I'm not sure how the checksum one works, I just copied the xml down from the checksum and changed the ID.

proninyaroslav commented 4 years ago

@8176135 I will fix it.

ghost commented 4 years ago

To me, the Added referer header specification option to download dialog is useless.

referer

ifr

As you can see from above images i add referer once now i can download files which requires referer from any website not from this site only.

Also file name ext in download dialog and completed section is not correct but from file explorer ext is jpg which is correct.