1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

HTTPClient phasing username + password from url

This commit is contained in:
Markus Sattler
2015-12-09 14:19:28 +01:00
parent a9ce1b4f2e
commit 85341ff25a
2 changed files with 32 additions and 13 deletions

View File

@ -25,7 +25,7 @@
#ifndef ESP8266HTTPClient_H_
#define ESP8266HTTPClient_H_
#define DEBUG_HTTPCLIENT(...) Serial1.printf( __VA_ARGS__ )
//#define DEBUG_HTTPCLIENT(...) Serial1.printf( __VA_ARGS__ )
#ifndef DEBUG_HTTPCLIENT
#define DEBUG_HTTPCLIENT(...)
@ -122,6 +122,7 @@ class HTTPClient {
void setReuse(bool reuse); /// keep-alive
void setUserAgent(const char * userAgent);
void setAuthorization(const char * user, const char * password);
void setAuthorization(const char * auth);
/// request handling
int GET();