Comments (3)
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
};
from httpclient.
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.
from httpclient.
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.
from httpclient.
Related Issues (20)
- Possible misinterpretation of empty http_request_t.hostname
- Not receiving the data from Spark core
- Error: Timeout while reading response.
- Compile error using example files HOT 1
- Turning off logging HOT 1
- calling local IPs HOT 2
- 'millis' was not declared in this scope HOT 1
- Update particle.io library HOT 1
- 'atoi' was not declared in this scope HOT 1
- 'delay' was not declared in this scope HOT 5
- 'HTTP_METHOD_GET' was not declared in this scope HOT 3
- TCP connection seems to block until timeout HOT 4
- 'http_request_t' has a previous declaration as 'typedef struct http_request_t http_request_t'
- response codes not working all the time HOT 2
- Example Fails HOT 1
- build in atom into cloud
- HttpClient buffer too small HOT 1
- Race condition when no data immediately available but client disconnects
- Convert Arduino Strings to C char[] arrays to prevent memory fragmentation.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpclient.