Hi, I'm new to monkey C, and I'm having trouble making a http PUT-request to send some data to an api.I have done the same thing in python:
import requests
url = 'http://...'
data = '{"on":true}'
r = requests.put(url, data=data, verify=False)
The trouble is I don't see how to include the data in monkey C. How would I include the data in monkey C?
var url = "">10.0.0.1/.../state";
var parameters = {};
var data = "{\"on\": \"true\"}"
var options = {
:method => Communications.HTTP_REQUEST_METHOD_PUT,
};
var responseCallback = method(:onRecieve);
Communications.makeWebRequest(url, parameters, options, responseCallback);