Sorry, I was mistaken on a few things.
- You read the documentation.
- You tried the command line from a DOS window and it worked -- and then it didn't work when run from perl.
- This is a perl question, and not an apache utility program* question.
So, I read the documentation. Khen1950fx is right (looks like he read the documentation too), there is no -b (batch mode in htpasswd (to which you're above referring to as "BasicAuth"), letting you specify a password on the command line) command line option in htdigest.
So, the problem is that your command won't run from the command line, because the apache utility** doesn't support it. Running it from perl can't change that fact.
* ... and their documentation.
** Apache (and its related utilities) are open source***, maybe you can implement the -b functionality yourself.
*** The apache utilities tend to be written in C, not perl, so we probably won't help you with that, either.
--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; =
qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
| [reply] [d/l] [select] |