http digest authentication

mrdebug
Posts: 42
Joined: Sat Jul 27, 2019 8:26 am

http digest authentication

Postby mrdebug » Tue Mar 12, 2024 5:34 pm

Hi. I'm testing the http client example with digest authentication. On server side I never see the typical header of a digest authentication such as
AuthData: username="Admin", realm="", nonce="", algorithm="MD5", uri="/Path", response="dc9857e3e15a18babf11b71edbd68359"

The esp32 try to connect many times till the error
E (11973) HTTP_CLIENT: Error, reach max_redirection_count count=10
E (11973) HTTP_CLIENT: Error response
E (11973) HTTP_CLIENT: Error perform http request ESP_ERR_HTTP_MAX_REDIRECT

Server side I receive (as http request header)
URI: /index.html
User-Agent: ESP32 HTTP Client/1.0
Host: 192.168.1.8:8080
Content-Length: 0

where I'm expecting something such as
URI: /Path
Connection: keep-alive
Content-Length: 0
Host: localhost:8080
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)
Authorization: Digest username="Admin", realm="", nonce="", algorithm="MD5", uri="/Path", response="dc9857e3e15a18babf11b71edbd68359"

Who is online

Users browsing this forum: Baidu [Spider], cskilbeck and 167 guests