CGI Command to network via calling an URL

Hello Xamarin friends,

i want to sende a cgi request to our network camera Panasonic HE-40 by calling a simple url. I don't need any response, just want to execute the URL. My Project is a Blank App (Xamarin.Forms Shared) and I mainly want to use it for a UWP and Android.

By tipping the url http://192.168.1.230/cgi-bin/camctrl?preset=0 in a browser, eg. firefox or IE the command triggers the camera to move to preset 1. That works fine.

Now im on to integrate that cgi command to my crossplattform app. I already tried it with HTTPWebRequest but without access. And i also tried it with two simple command lines but it didn't work (you'll find it attached).

I am using Visual Studio 2015, programming in C# with the XAMARIN Blank App (Xamarin.Forms Shared).

Thanks a lot for your answers in advance!!!!

Posts

Sign In or Register to comment.