[Top][All Lists]

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

Re: [libmicrohttpd] Digest authentication on POST request causes 'Applic

From: Christian Grothoff
Subject: Re: [libmicrohttpd] Digest authentication on POST request causes 'Application reported internal error, closing connection'
Date: Thu, 10 Dec 2020 10:13:10 +0100
User-agent: 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
> enabled.
> The data looks like this:
> POST /ajax/response.html HTTP/1.1
> Accept: */*
> Accept-Encoding: identity
> Host:
> 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=
> 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....

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

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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