Tuesday, August 25, 2009

Tip: Fetch and password-protected web pages

In order to make fetch (the FreeBSD downloading tool) ask for username/password when it encounters a password-protected web page, you can set the environment variable HTTP_AUTH to 'basic:*'.

Users of t/csh shells can temporarily set the environment variable like so:
% setenv HTTP_AUTH='basic:*'
To set it permanetly we need to add it to .cshrc:
% vim ~/.cshrc
setenv HTTP_AUTH 'basic:*'
And that's it.

2 comments:

Vibha said...

Tech Blog Link Request - www.adamsinfo.com

Hi

For leveraging traffic from the internet, I have manually collected a list of quality blogs with whom I am interested in getting associated.

I liked your blog and i'm interested in having my blog's text link in your blog roll.

Please let me know your interest in this association and then we can move towards next step.

Sincerely,

Webmaster
Adamsinfo.com
vibha@apnicsolutions.com

tangram said...

Hi there,

Of course we can get our blogs associated ;)

Regards.