[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] A hello from a new microhttpd user with questions ab
From: |
Jared Cantwell |
Subject: |
Re: [libmicrohttpd] A hello from a new microhttpd user with questions about http streaming, authentication and |
Date: |
Sat, 11 Dec 2010 14:33:35 -0500 |
Hi Leandro,
1. For streaming, take a look at the MHD_ContentReaderCallback callback, and MHD_create_response_from_callback. Using these, a client can download your file in whatever sized chunks you would like using HTTP's chunked-encoding. All you have to do is keep giving MHD the data with each callback, and the library takes care of the rest.
2. Also, libmicrohttpd does support ssl authentication. Take a look at MHD_USE_SSL, MHD_OPTION_HTTPS_MEM_KEY, and MHD_OPTION_HTTPS_MEM_CERT.
Hope that helps!
~Jared
On Thu, Dec 9, 2010 at 1:11 PM, Leandro Santiago
<address@hidden> wrote:
Hello to all.
I'm new with MHD and I have some questions about this library.
I'm writing a application in c++ which grab videos from different sources (right now from v4l and in a near future from ip camera) and, after proccess them, send them in a http streaming system, using webm codec to the most modern web browsers.
And I need to know if MHD can do it (only the part of stream :-)), because I've seen that when you do streaming via http, you cannot send the Content Length in the response header, so the connection keep open til the streaming finished. And I need to know if it's possible with MHD.
Other question - sorry send many questions in a single e-mail - is about the http authentication. Is it possible to do with MHD?
Thx and congratulations for your great library!