Http binary sensor with simple url

I would like my foscam camera to report any motion to a virtual sensor. All the examples I have found depends on a json request. The foscam camera can only do a simple http request with parameters:
https://www.domoticz.com/forum/viewtopic.php?t=922

First check the current settings:
[foscam_url]/get_params.cgi
The hidden variables of interest are “http” and “http_url”

To set these values:
[foscam_url]/set_alarm.cgi?http=1&http_url=[encoded_url]
encoded_url should be the url used to trigger your virtual motion detector.
Make sure you encode the url!

Does the request send from the camera looks like this one?
http://192.168.2.1:8080/json.htm?type=command&param=switchlight&idx=18&switchcmd=On