For headers I was thinking outgoing requests
Looks like you can do that too, just like node.js - not that I remember implementing it :)
Untested, but:
var options = { host: 'hybrisiot.appspot.com', port: '80', path:'/shelves/default/status/' + getButtonStatus(), method:'post', headers: { "A":"B", "C":"D"} // <----------------- Here }; var req = require("http").request(options, function(res) { ... });
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Looks like you can do that too, just like node.js - not that I remember implementing it :)
Untested, but: