Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wget for a password protected apache website

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
0
0
CA
Hi there,

Is it possible to get http response using the "wget" command for a website that uses apache's auth module. I have the user name and password for the site. A simple "wget gives me (as expected):
Code:
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.
 
Hi

Did you read the man page ?
man wget said:
--http-user=user
--http-passwd=password
Specify the username user and password password on an HTTP server. According to the type of the challenge, Wget will encode them using either the "basic" (insecure) or the "digest" authentication scheme.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top