I'm not sure if I understand your question correctly, but if your goal is to download a file from an url which is password protected you can do a REST call to that url and send authentication credentials with the HTTP Headers. The response you can then store in a file document document which you can then save in your Mendix application: