Facility Control

 View Only
  • 1.  Panasonic AW-HE40 HTTP Control

    Posted 08-26-2020 22:40

    I'm attempting to control the Panasonic Camera with the following code:

    ogscript.asyncHTTP("http://192.168.106.120/cgi-bin/camctrl?preset=0", "GET", "text/plain", "", null);

    When I press the button debugger is showing me this:

    17:33:49:386: Server returned HTTP response code: 400 for URL: http://192.168.106.120/cgi-bin/camctrl?preset=0

     

    When i send the same get request in Postman it works everytime.



  • 2.  RE: Panasonic AW-HE40 HTTP Control

    Posted 09-08-2020 13:51

    I don't have a lot of experience with asyncHTTP.  Try using null as the data instead of "" (and also perhaps use a null instead of "text/plain")


    #DashBoard


  • 3.  RE: Panasonic AW-HE40 HTTP Control

    Posted 09-08-2020 18:14

    I would also null-out the data field for an HTTP GET request. Right now you are putting an empty string there. Non-null content attempts to open an input stream to send data to the server and your server may not support this.


    #DashBoard