Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Dowloading files from protected area: FF keeps asking for auth only when I right click and Save As...

  • No replies
  • 0 have this problem
  • 1 view
more options

Hi, first some introduction. There two methods to download file from server:

  • left click on file and file could be opened in internal viewer (in case of PDF),
  • right click and "Save Link As..." which saves file to disk.

But when I try to download file from protected area (I will describe server below) it doesn't work as described above.

When I enter protected area on server I authenticate as usual. There's pop-up asking for Username and Password. I log in and then when I:

  • left click on file it opens in internal viewer but...
  • when I right click on file and use "Save Link As..." authentication pop-up opens again.

I can then put my credentials or I can just press Cancel, whatever I choose file is downloaded. Same happens for every file dowloaded with right click.

This is annoying if someone wants to download multiple files.

OK, now what happens on server side? There's Apache2 configured with basic authentication method. When I left click server log shows: 192.168.1.99 - user1 [25/Jul/2022:14:46:39 +0200] "GET /area1/test_file.pdf HTTP/1.1" 200 849985 but when I right click, server says: 192.168.1.99 - - [25/Jul/2022:14:48:11 +0200] "GET /area1/test_file.pdf HTTP/1.1" 401 464 192.168.1.99 - - [25/Jul/2022:14:48:13 +0200] "GET /area1/test_file.pdf HTTP/1.1" 401 464

So, as you can see with left click server respons with "200 OK" status code, but with right click it says two times that I'm unauthorized (401 Status Code). And even I'm so called unauthorized, I can download this file.

Chrome do not asks for authorization every time I try to download file. I log in only once and then I can dowload many files with right click.

I tested it with other than PDF formats and FF asks for auth everytime.

Will someone help me understand this situation?

Cheers, Paweł p.s. I can provide configuration of Apache server if that could help.

Hi, first some introduction. There two methods to download file from server: * left click on file and file could be opened in internal viewer (in case of PDF), * right click and "Save Link As..." which saves file to disk. But when I try to download file from protected area (I will describe server below) it doesn't work as described above. When I enter protected area on server I authenticate as usual. There's pop-up asking for Username and Password. I log in and then when I: * left click on file it opens in internal viewer but... * when I right click on file and use "Save Link As..." authentication pop-up opens again. I can then put my credentials or I can just press Cancel, whatever I choose file is downloaded. Same happens for every file dowloaded with right click. This is annoying if someone wants to download multiple files. OK, now what happens on server side? There's Apache2 configured with basic authentication method. When I left click server log shows: '''192.168.1.99 - user1 [25/Jul/2022:14:46:39 +0200] "GET /area1/test_file.pdf HTTP/1.1" 200 849985''' but when I right click, server says: '''192.168.1.99 - - [25/Jul/2022:14:48:11 +0200] "GET /area1/test_file.pdf HTTP/1.1" 401 464 192.168.1.99 - - [25/Jul/2022:14:48:13 +0200] "GET /area1/test_file.pdf HTTP/1.1" 401 464''' So, as you can see with left click server respons with "200 OK" status code, but with right click it says two times that I'm unauthorized (401 Status Code). And even I'm so called unauthorized, I can download this file. Chrome do not asks for authorization every time I try to download file. I log in only once and then I can dowload many files with right click. I tested it with other than PDF formats and FF asks for auth everytime. Will someone help me understand this situation? Cheers, Paweł p.s. I can provide configuration of Apache server if that could help.

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.