Using wget bypass htaccess username password 401 authorization

Here is the command to access a website where using htaccess username and password to protect itself.

wget -O /dev/null --user="_any_htaccess_user_name_" --password="_htaccess_user_password_" http://www.google.com

Resource:  http://stackoverflow.com/questions/8841187/wget-and-htaccess-username-only

By the way, you can use wget to simulate a visitor access to website.  Often time it is used to trigger a cron job.

Another resource:
http://pogidude.com/2011/use-linux-cron-to-trigger-wordpress-cron-scheduler/
http://bitswapping.com/2010/10/using-cron-to-trigger-wp-cron-php/

Hope it helps someone.


Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services