user1856596
user1856596

Reputation: 7233

How to download a file of a htaccess protected domain without prompts?

I want to download this file for example:

http://somedomain.com/backups/archive.zip

That domain is htaccess protected. Is there a way to pass the password and the user via the URL? I want to be able to download that file without any prompts.

Possible? Thanks!

Upvotes: 0

Views: 63

Answers (1)

anubhava
anubhava

Reputation: 785098

This is the syntax:

http://username:[email protected]/backups/archive.zip
  • This will send the user credentials in the standard HTTP "Authorization" header.

Upvotes: 1

Related Questions