Posted on: 10/16/2015 2:37:09 PM | Views : 1320

using (var client = new HttpClient()) { var values = new Dictionary<string, string> { { "LEFT", "5" } }; var content = new FormUrlEncodedContent(values); var response = client.PostAsync("http://192.168.1.29/cgi-bin/encoder?MOVE=LEFT,5", content); if (response.Result.IsSuccessStatusCode) { //response = client.PostAsync("http://192.168.1.29/cgi-bin/encoder?MOVE=STOP", content); camframe.Src = "http://192.168.1.29/cgi-bin/encoder?MOVE=LEFT,5"; } } The "values" dictionary is just for debugging and seeing that the data is being posted.
What im trying to do is send some commands to my camera, and the above code works, bu ...

Go to the complete details ...