I am trying to build libmicrohttpd-0.9.55 with support for https on
RHEL5. As I can not even get the demo_https server to work (server
which uses plain http, works as intended), there must be something
with libmicrohttpd itself or one or more of the libraries it uses.
Running the demo_https server, it seems to start just fine. However
I try to use curl to connect, it just hangs for a long time after
it comes back with "curl: (52) Empty reply from server".
I does not seem like the "generate_page" callback function is ever
called. I have tried to add the following statement as the first
statement, but I see no output:
printf ("U=%s, M=%s\n", url, method);
Occasionally, I get a response, with part of the response headers
garbled, indicating that memory was overwritten somewhere. In this
curl still hangs after receiving the response and I do get output from
the printf-statement above.
As RHEL5 are missing a lot of libraries, or have outdated versions, I
have built most of the dependent libraries myself. Here is a list of
libraries I have built and linked with microhttpd, and the versions I
gnutls: 3.6.0 (also tried 3.5.15 with same result)
Any idea on where to start tracking down this issue?
Svein Olav Bjerkeset