Fibaro HC2 VD send http header

Hi,

I’m trying to automate my Roomba 980 control. I’ve created a VD in Fibaro HC2 with buttons which should send HTTP POST requests. I know how to do requests in Fibaro scene:
local http = net.HTTPClient();
http:request(“https://irobot.axeda.com/services/v1/rest/Scripto/execute/AspenApiRequest?blid=BLID&robotpwd=ROBOTPWD&method=multipleFieldSet&value={ %20%20"remoteCommand"%20:%20"start" }”,
{
options = {
method = “POST”,
headers = {
[“Authorization”] = “Basic ENCODED_VALUE”,
[“Content-Type”] = “application/x-www-form-urlencoded”,
[“User-Agent”] = “aspen production/2618 CFNetwork/758.3.15 Darwin/15.4.0”,
[“ASSET-ID”] = “ElPaso@irobot!BLID”,
[“Connection”] = “keep-alive”
}
},
success = function(response) fibaro:debug(response.data) end,
error = function(err) fibaro:debug("Error: " … err) end
})

Scene works fine. However I have no clue how it should be implemented in virtual device, this code does not work in VD. It’s very important to send headers from above. Could you help me with syntax for VD?

Looks like up to f/w 4.100 there is no chance to resolve that. So I’ve created a virtual device and corresponding scenes for every button which are requested by VD buttons.