1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-07-11 06:41:44 +03:00

Add noDefaultRequestHeaders API to turn off sending default headers

This commit is contained in:
Sandeep Mistry
2016-06-17 16:49:52 -04:00
parent 0bcba913fd
commit 8012c8dace
3 changed files with 26 additions and 12 deletions

View File

@ -52,6 +52,10 @@ public:
*/
void connectionKeepAlive();
/** Disables sending the default request headers (Host and User Agent)
*/
void noDefaultRequestHeaders();
/** Start a more complex request.
Use this when you need to send additional headers in the request,
but you will also need to call endRequest() when you are finished.
@ -293,6 +297,7 @@ protected:
const char* iContentLengthPtr;
uint32_t iHttpResponseTimeout;
bool iConnectionClose;
bool iSendDefaultRequestHeaders;
String iHeaderLine;
};