passing login details to htaccess login prompt

Hi,

How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php).

Any help or hint appreciated.

Thanks,
SJ

Hi

Maybe wget --http-user=username --http-password=password url , or http://user:password@url ?

Hi Chirel,

Tried with below :

wget --no-check-certificate -U firefox --http-user=username--http-password=odTms0}c(  https://myurl.com/test.pl

which gives me" ERROR 403: Forbidden."

any suggestion
Thanks,
SJ

In interactive mode, with w3m https://url , is it working ? Can you specify the user pass ?

Still getting same error 403 Forbidden.with

One point like to mention the URL is https://