ArduinoHttpClient icon indicating copy to clipboard operation
ArduinoHttpClient copied to clipboard

docs unclear on how to basis auth

Open geetee24 opened this issue 3 years ago • 0 comments

My code http.connectionKeepAlive(); http.beginRequest(); *piRetCode = http.get( strPath ); http.sendBasicAuth ( "user", "pw" ); http.sendHeader( HTTP_HEADER_CONNECTION, "keep-alive" ); http.sendHeader( "Cache-Control", "max-age=0" ); http.sendHeader( "Accept", "application/json" ); http.endRequest();

but my server responds with a timeout 401....

is my code correct?

geetee24 avatar Jun 10 '22 04:06 geetee24