|
From: | silvioprog |
Subject: | Re: [libmicrohttpd] How do I check if the request was done from HTTP or HTTPS? |
Date: | Tue, 23 Feb 2016 23:13:49 -0300 |
Hi!
Well, to run MHD with both HTTP and HTTPS-support, you need to start the
daemon twice. That means you can pass a different callback or a
different closure to distinguish. You could also try to get access to
the TLS/SSL handle via MHD_CONNECTION_INFO_GNUTLS_SESSION, which would
fail for HTTP and give you info you might want for HTTPS.
Happy hacking!
Christian
[Prev in Thread] | Current Thread | [Next in Thread] |