Try this example in C#:
WebRequest request = WebRequest.Create ("http://esihaj.com/phpar");
request.Credentials = NetworkCredential("admin", "mypass");
HttpWebResponse response = (HttpWebResponse)request.GetResponse ();
That should do it for you.
Cheers!