libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] HTTP Authentication using libmicrohttpd


From: Christian Grothoff
Subject: Re: [libmicrohttpd] HTTP Authentication using libmicrohttpd
Date: Tue, 1 Jul 2008 16:54:59 -0600
User-agent: KMail/1.9.9

Since this seems to become a FAQ, I've added a simple example to SVN.

You can find it at

https://gnunet.org/svn/libmicrohttpd/src/examples/authorization_example.c

Note that for a real-world implementation you would probably want to not 
hardcode the authorization string but generate it from a username and 
password as part of the code -- and of course, you may want to consider 
schemes other than basic authentication.  But as far as MHD is concerned, 
your code will look something like this.

Christian

On Tuesday 01 July 2008 10:15:15 am Bijendra Singh wrote:
> Hello,
> I am completely new to HTTP application writing so...
>
> I need to write an application which can authenticate a user against
> stored passwords
> in a file. I need to know if I can do this using libmicrohttpd or not?
>
> If libmicrohttpd is capable of HTTP Authenictaion, is there any
> example/help available
> to aid in implementing this? I though this type of example would be
> useful to other new
> users trying to embed authentication in applications using this nice
> library.
>
> Thanks.
> _______________________________________________
> libmicrohttpd mailing list
> address@hidden
> http://crisp.cs.du.edu/cgi-bin/mailman/listinfo/libmicrohttpd




reply via email to

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