Hi,
I'm trying to swith a relay. Works perfectly when theres no authorization is set on the device. As soon it's enabled error 401 appears. What am I overlooking? Shelly Pro1 | Id: 30C6F78B647C | Firmware: 0.14.1 | Web: 767992a8
Authorization header:
▶ | DefaultRequestHeaders | {Authorization: Digest username="admin", realm="30C6F78B647C", nonce="de589c4080ba4bff9125ffbc14047020", uri="http://10.1.100.245:80/relay/0?turn=off&timer=4", cnonce="8ae56f4f6aac49ea8f55da2c518c4da2", response="835867304fdca816c1d2515e074dbdf14680e86f9332eed29b63e2391d2ad38f", algorithm=SHA-256 } | System.Net.Http.Headers.HttpRequestHeaders |
The response I get:
▶ | response | {StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers: { WWW-Authenticate: Digest qop="auth", realm="shellypro1-30c6f78b647c", nonce="64789f14", algorithm=SHA-256 Content-Length: 0 }} | System.Net.Http.HttpResponseMessage |
▶ | Headers | {WWW-Authenticate: Digest qop="auth", realm="shellypro1-30c6f78b647c", nonce="64789f14", algorithm=SHA-256 } | System.Net.Http.Headers.HttpResponseHeaders |