View Issue Details

IDProjectCategoryView StatusLast Update
0005680libmicrohttpdexternal APIpublic2019-09-04 05:06
ReporterMarcello Stanisci Assigned ToChristian Grothoff Due Date
PrioritynormalSeveritytrivialReproducibilityhave not tried
Status closedResolutionno change required 
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 21: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 ModifiedUsernameFieldChange
2019-04-05 13:45Marcello StanisciNew Issue
2019-04-05 21:42Christian GrothoffNote Added: 0014262
2019-04-05 21:42Christian GrothoffAssigned To => Christian Grothoff
2019-04-05 21:42Christian GrothoffStatusnew => feedback
2019-09-04 05:06Christian GrothoffSeverityminor => trivial
2019-09-04 05:06Christian GrothoffStatusfeedback => closed
2019-09-04 05:06Christian GrothoffResolutionopen => no change required
2024-01-21 12:24Christian GrothoffCategorylibmicrohttpd API => external API