Kunaljain's Weblog

January 5, 2009

Passing username and password in wget command

Filed under: Linux Tips & Tricks — Kunal Jain @ 08:53
Tags:

To pass username and password in wget command so that it will not ask for the authentication use the following syntax

wget --user=userName --password=Password http://www.example.com/index.html
Advertisements

1 Comment »

  1. Multi-character options in GNU utilities start with a double dash, i.e. the correct command would be:

    wget -–user=userName -–password=Password http://www.example.com/index.html

    Comment by Joe Wein — January 21, 2010 @ 03:37 | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: