Hi to all.
I'm trying to POST data to libmicrohttpd with digest authentication enabled.
The data looks like this:
POST /ajax/response.html HTTP/1.1
Accept: */*
Accept-Encoding: identity
Host: xxxx.ddns.net
User-Agent: NB-IoT-Client/1.0.0 (Arduino/MKR-NB-1500)
Connection: close
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 151
OnIoTData=iotdata&prepare=no&title=iotdata&IMEI=352753096142722&Address=10.193.202.150&Timestamp=315964938&Datetime=1980-01-06T00:02:18+00:00&Data=null
The data is received via libmicrohttpd and forwarded to my application
as long as no authentication is used.
When using digest authentication the connection is closed with an
internal error callback message 'Application reported internal error,
closing connection'.
With a GET request everything works fine:
The first request is answered with 'Unauthorized' and my client response
with the correct digest in the second request and receives a valid response.
I'm not quite sure where to look after this issue. Is this an issue in
my framework or ist there an issue in libmicrohttpd?
Any ideas are appeciated....
Thanks in advance,
Dirk.