View Issue Details

IDProjectCategoryView StatusLast Update
0005680libmicrohttpdlibmicrohttpd APIpublic2019-09-04 07:06
ReporterMarcello StanisciAssigned ToChristian Grothoff 
PrioritynormalSeveritytrivialReproducibilityhave not tried
Status closedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0005680: A method to extract the URL path looks missing.
DescriptionThe API exported by MHD does not seem to offer any method to get the 'path' component of a URL.

Say the daemon got a request for "http://<host>/data?id=x", then it is not straightforward to extract the
"/data" information from the usual "connection" object.

What about offering a "MHD_get_path(connection)" method?
TagsNo tags attached.

Activities

Christian Grothoff

2019-04-05 23:42

manager   ~0014262

You're given the path already on the main access handler callback. So for this iteration of the API (not microhttpd2), I would strongly suggest simply storing it in the application-specific context *if* you need it later. If this is not clear, let me know where it's needed and I'll help.

Issue History

Date Modified Username Field Change
2019-04-05 15:45 Marcello Stanisci New Issue
2019-04-05 23:42 Christian Grothoff Note Added: 0014262
2019-04-05 23:42 Christian Grothoff Assigned To => Christian Grothoff
2019-04-05 23:42 Christian Grothoff Status new => feedback
2019-09-04 07:06 Christian Grothoff Severity minor => trivial
2019-09-04 07:06 Christian Grothoff Status feedback => closed
2019-09-04 07:06 Christian Grothoff Resolution open => no change required