If you are using the HttpWebRequest, you can add the userid and password to the header as follows:
request.Headers.Add("username", strId);
request.Headers.Add("password", strPwd);
HTH!
(OH Geez I thought this was 2016 not 2006... LOL... I am a Forum Newbie!)