API header in web reqest


#1

I’m trying to make a POST request which requires I pass an API key in the HTTP header, e.g:

“x-api-key: mysecretkey”

Is there anyway to do this currently with webcore web request function? I see the Authorization header option, but that appears to be for standard http auth.


#2

Any luck? I am trying to do the exact same thing to call octoprint’s api.


#3

Has anyone managed to figure this out?


#4