what environment are you using? if you are using HttpWebRequest class in System.Net, it has a Credentials property which you can set up a NetworkCredential with username/password
if you are using MFC, CInternetSession::GetHttpConnection allows you to specify username/password too