[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Digest authentication on POST request causes 'Applic
Re: [libmicrohttpd] Digest authentication on POST request causes 'Application reported internal error, closing connection'
Thu, 10 Dec 2020 10:13:10 +0100
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0
On 12/10/20 9:37 AM, Dirk Brinkmeier wrote:
> Hi to all.
> I'm trying to POST data to libmicrohttpd with digest authentication
> 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
> 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
> 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....
It sounds to me like you are returning 'MHD_NO' from your callback
instead of MHD_YES. Why I cannot say without seeing your code, but you
are most certainly using the API wrong. Did you look at the example in
Description: OpenPGP digital signature