How to download file despite of 401 error in Java
I would like to download a file from the Internet using Java, but from time to time my program shows 401 error and I cannot get it.

What is interesting when I put link to this file on HTML website, I can download it by clicking right click and "Save as".

What can I do to achieve the same effect in Java ?
How to download file despite of 401 error in Java
===

I would like to download a file from the Internet using Java, but from time to time my program shows 401 error and I cannot get it.

What is interesting when I put link to this file on HTML website, I can download it by clicking right click and "Save as".

What can I do to achieve the same effect in Java ?