Esp32 Arduino/C Digest Authentication

Posted on
Sat Mar 05, 2022 7:52 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Esp32 Arduino/C Digest Authentication

Can anybody tell me how to do an http PUT command, in C/Arduino, using digest authentication?
Python requests makes it so easy.

It’s funny, I remember trying this in 2015 with no success, but in the interim I’ve learned a little bit more and thought how hard can this be. Two hours and 30 web browser windows later and I have no leads.

Posted on
Sat Mar 05, 2022 10:59 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Esp32 Arduino/C Digest Authentication

On further thought, if somebody could tell me how to do it using basic authentication on Arduino I would be really jazzed

Posted on
Sun Mar 06, 2022 7:30 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: Esp32 Arduino/C Digest Authentication

Check out the plugin arduino.

That uses http but no auth.

And with the basic arduino there is not enough memory to do these kind of things.

When you use the esp then yes.


Sent from my iPhone using Tapatalk

Posted on
Sun Mar 06, 2022 11:36 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Esp32 Arduino/C Digest Authentication

Thanks Karl!

For perpetuity, i got the following to work with basic authentication, though i can’t say i fully understand why!

Code: Select all
HTTPClient client;
client.begin(“USER:PWD@LOCALIP:8177/actions/ACTIONGROUP!_method=execute”);
int httpCode = client.GET();


It returns a 303, but i can now wire up little $8 controllers to run action groups, which is awesome.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest