libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Discovering the complete unescaped URL


From: Mike Crowe
Subject: Re: [libmicrohttpd] Discovering the complete unescaped URL
Date: Thu, 8 Apr 2010 14:42:23 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Thu, Apr 08, 2010 at 02:33:37PM +0100, Mike Crowe wrote:
> I'm implementing digest authentication on top of libmicrohttpd.
> Everything is working well except I need to retrieve the original
> request-line URI in order to compare it with the URI used in the
> digest.
> 
> connection->url (as passed to the access callback) is described as
> everything after "GET" only) yet despite this it is clear from the
> code that it has had all the arguments removed. :(
> 
> I'd like to be able to retrieve the original URL. It would seem
> trivial to store a copy in the connection and make it available via
> MHD_get_connection_info. Would a patch that did this be acceptable?

Ah, it would appear that I might be able to use
MHD_OPTION_URI_LOG_CALLBACK to do this instead. It will be quite
invasive as described by the documentation for
MHD_OPTION_URI_LOG_CALLBACK though. :(

Apologies for the noise.

Mike.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]