Make the Internet Request feature support basic http authentication
Many APIs either require or support basic http authentication (Kodi, for instance). The internet request feature supports the usual HTTP verbs, but any call requiring authentication will fail with a 401 error. Inserting user:pass@ before the address seems to be ignored.
Stefan try this
in FLIC app under your chose Hub, select the Internet Request"Hub Action"
add your URL which for me was http://192.168.1.161/JSON?Request=controldevicebylabel&ref=290&label=On to enable a device on my home automation box (HomeSeer)
stick with GET http method (in my use case)
under the Headers (Optional), set up basic authentication i.e. type "Authorization" in the Key field of the app
encode your "user:password" string using base64 (I used base64encode.org for online base64 encoding)
Prefix the encoded string with "Basic " including a trailing space
"Basic YWRtaW46YWRtaW4NCg==" is encoded "admin:admin" as an example. Type or paste all of this into the Value field in the FLIC app
Press the ADD button on the left hand side below the key/value fields. You should then see this header linein a grey field.
Press SAVE ACTION to ensure all saved away
And now it should work, it did for me!
Any new infos on this?
I`ve tried to use http request with basic authentication using http header. Without success...
On Android I get the button notification, on iPhone I receive a "HTTP 400 Bad Request".
None of the requests have been sent to my server.