Net::http and htaccess

I’m writing a script to parse a web page that’s protected by htaccess
( my stats page on my web host) and I’m not sure how to get in if the
page requires htaccess. Can someone point me to a guide for this? I’m
fine getting and parsing non protected page. I just don’t know how to
authenticate.

Thanks!

Charlie B.
http://www.recentrambles.com