There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Need to be able to add additional header with POST and need to be able to PUT
In order to send data to ThingSpeak the API documentation says you need to send an "X-THINGSPEAKAPIKEY" header. In order to send data to SmartEnergyGroups you need to send and HTTP PUT (a POST does not work).
Since the difference between POST and PUT is just the verb used in the first header, I added a new method to do this. I also added an optional Header parameter to allow the addition of a single header to the POST or PUT, which works for me.