libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Digest authentication on POST request causes 'Applicatio


From: Dirk Brinkmeier
Subject: [libmicrohttpd] Digest authentication on POST request causes 'Application reported internal error, closing connection'
Date: Thu, 10 Dec 2020 09:37:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]