Good observation!
Is there a way the device could specify this when calling mDashNotify or is this something you would need to revise on the backend?
-AD
Good observation!
Is there a way the device could specify this when calling mDashNotify or is this something you would need to revise on the backend?
-AD
We’ve added an extra parameter to the HTTP.Request
notification - headers.
That is a string:string map, you can add any number of arbitrary headers.
mDashNotify("HTTP.Request", "{%Q:%Q, %Q: %Q, %Q: %Q, %Q:{%Q:%Q}}",
"url", "foo",
"method", "bar",
"body", "baz",
"headers", "Header1", "Value1");
In our specific case, as @nliviu has pointed out, we’d need to add a Content-Type
header. Something like:
mDashNotify("HTTP.Request", "{%Q:%Q, %Q: %Q, %Q: %Q, %Q:{%Q:%Q}}",
"url", "https://SSID:AUTHTOKEN@YOUR_WORKSTATION_IP:1234/blah",
"method", "POST",
"body", "To=%2B18005556666&From=%2B18005551212&Body=Hello",
"headers", "Content-Type", "application/x-www-form-urlencoded");
@Autodog please test that.
Tested and confirmed. Finally works! Thank you for the efforts.
If you could update the docs with these new mDashNotify() details for posterity that would be much appreciated.
-AD