From: Dean M. B. <mik...@gm...> - 2010-10-13 06:27:17
|
Hi Oleg! Sorry to reject your email to the mailing list, I encourage you to join it and start the discussion on the list again. That said, I've CC'ed the list so that others can see my response to your email too: 2010/10/13 Oleg Stupnikov <ost...@gm...>: > > I'm using cpp-netlib library and it looks very nice for me! Thanks very much! :) > There are a > couple of questions I didn't manage to solve myself: > 1. how to make it working as https server. I tied to google and I found some > e-mail threads about that, but with no answers. Ah, yes. Well, the quick answer would be that you can't do it yet with the current version. I haven't worked on the HTTPS part of the server yet (I have yet to write that part actually) which I hope to do in version 0.8. > Could you please briefly explain me how to switch http server to https > mode using your library? Right now, it's not yet possible. I'll get back to you as soon as it is possible. :) > 2. how to get the client's IP address of a particular request? You can do the following in your handler: string client_ip = source(request); Where `request` is the request object passed into the request handler. > Thank you so much for your help! Thank you too and I hope this helps! -- Dean Michael Berris deanberris.com |