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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows XP - Download a zip file from URL using command line ?

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

I have a protected URL with some ZIP file to be downloaded.
What would be my command line from WIndows terminal to download this file,assuming I know the username+password ?
thanks

Long live king Moshiach !
 
Hi

If you are talking about HTTP Authentication, either Basic or Digest :
Code:
wget --http-user=[green][i]username[/i][/green] --http-passwd=[green][i]password[/i][/green] [green][i][URL unfurl="true"]http://example.com/protected.zip[/URL][/i][/green]

[gray]# or[/gray]

wget [green][i]http://[/i][/green][green][i]username[/i][/green]:[green][i]password[/i][/green]@[green][i]example.com/protected.zip[/i][/green]
Assuming that you have [tt]wget[/tt].

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top