Well yes, if you have the username and password of course this is possible. What you need to do is use sockets and send a specially crafted HTTP packet asking for the page using those credentials. Possibly more than one packet, which will require analyzing how the auth has to work. Good luck, tempest.
Edit: This should be of some help:
http://www.faqs.org/rfcs/rfc2617 .