passing authorisation credential
Closed this issue · 3 comments
snizzleorg commented
Is it possible to pass authorisation credentials?
crunchie84 commented
Have you tried adding the header yourself?
http_header_t headers[] = {
{ "Content-Type", "text/plain" },
{ "Authorization", "Basic NWYYDKYUKY5OWJlZDUtZNmOg=="},
{ "Accept", "*/*" }
//{ "X-Auth-Token" , TOKEN },
{ NULL, NULL } // NOTE: Always terminate headers will NULL
};
snizzleorg commented
Yes I tried but actually the problem was due to https, which httpclient does not support as far as I know. That was the reason it did not work.
nmattisson commented
Since the Spark Core didn't support https, I couldn't add it to HttpClient either. Pull requests are welcome if someone wants to add it to future revisions now that the new hardware supports it.