Even after setting the credentials, I get some sort of error for if I execute the following code/instruction for 3rd time. For the first two times, it performs well and send a http request to the network camera.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://128.39.141.213/axis-cgi/com/ptz.cgi?camera=1&move=right");
request.PreAuthenticate = true;
request.Credentials = new NetworkCredential("root","pass");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Can anyone help?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Offline 77 posts
since Jan 2009