View Issue Details

IDProjectCategoryView StatusLast Update
0004944libmicrohttpddocumentationpublic2026-07-28 21:43
ReporterChristian Grothoff Assigned ToChristian Grothoff Due Date
PrioritynormalSeveritytextReproducibilityN/A
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product VersionGit master 
Target Version1.0.8Fixed in Version1.0.8 
Summary0004944: tutorial should cover HTTP Upgrade API
DescriptionWe should show a stripped-down example for how to use the upgrade API.
TagsNo tags attached.

Activities

Karlson2k

2017-05-15 20:12

manager   ~0012134

Could we close this Issue?

Christian Grothoff

2017-05-15 21:02

manager   ~0012135

Eh, no, there is AFAIK nothing in doc/libmicrohttpd-tutorial.texi about upgrade yet.

mucholove

2020-11-14 02:49

reporter   ~0017132

Hello! Was trying to do just this. Or at least I think so (Upgrade HTTP to HTTPS).

Don't think I nailed it because if I activate MHD_USE_TLS I can't receive HTTP connections (Errors with Handshake out of context)...and if I take it away—I get the following complaints:

On startup:

    MHD HTTPS option 8 passed to MHD but MHD_USE_TLS not set.
    MHD HTTPS option 9 passed to MHD but MHD_USE_TLS not set.

On Request:

    curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8080


Would love some help!

Christian Grothoff

2020-11-14 11:23

manager   ~0017140

This issue is not about upgrading from http to https, but about the HTTP upgrade to another protocol (usually WebSockets) feature.
To 'upgrade' to HTTPS, all you need to do is
1) run 2 MHD daemons (so you must do MHD_start_daemon *twice*), and
2) Use a redirect (301/302) from the HTTP-daemon to the HTTPS address.

Christian Grothoff

2026-07-28 17:46

manager   ~0029260

Tutorial added in 56713e94..7d8c068e

Issue History

Date ModifiedUsernameFieldChange
2017-03-07 23:05Christian GrothoffNew Issue
2017-05-15 20:12Karlson2kNote Added: 0012134
2017-05-15 21:02Christian GrothoffNote Added: 0012135
2020-11-14 02:49mucholoveNote Added: 0017132
2020-11-14 11:23Christian GrothoffNote Added: 0017140
2026-07-28 17:46Christian GrothoffAssigned To => Christian Grothoff
2026-07-28 17:46Christian GrothoffStatusnew => resolved
2026-07-28 17:46Christian GrothoffResolutionopen => fixed
2026-07-28 17:46Christian GrothoffFixed in Version => 1.0.8
2026-07-28 17:46Christian GrothoffNote Added: 0029260
2026-07-28 17:47Christian GrothoffTarget Version => 1.0.8
2026-07-28 21:43Christian GrothoffStatusresolved => closed