Re: multipart HTTP response
- From: Pedro Côrte-Real <pedro pedrocr net>
- To: Dan Winship <danw gnome org>
- Cc: libsoup-list <libsoup-list gnome org>
- Subject: Re: multipart HTTP response
- Date: Sun, 19 Jan 2014 15:59:54 +0000
On Sun, Jan 19, 2014 at 3:52 PM, Dan Winship <danw gnome org> wrote:
On 01/19/2014 10:21 AM, Pedro Côrte-Real wrote:
On Sun, Jan 19, 2014 at 2:06 PM, Dan Winship <danw gnome org> wrote:
Are you implementing a server that's trying to send a multipart response
or a client trying to parse one? And I assume you mean specifically
multipart/x-mixed-replace?
I'm trying to do a server that's sending a mutlipart/x-mixed-replace
response. It's an mjpeg stream to use in an <img> tag.
OK, at the moment there is no good support for sending
multipart/x-mixed-replace. SoupMultipart is only useful for multiparts
where you already have all of the parts, and want to generate the body
all at once.
There is a class for client-side streaming parsing of
multipart/x-mixed-replace (SoupMultipartInputStream), and there's a bug
about adding a server-side equivalent
(https://bugzilla.gnome.org/show_bug.cgi?id=637845), but no clue when/if
that will be implemented.
(So, for now, the only way to do it is to write out the multipart
metadata yourself.)
Ok. Luckily gstreamer includes multipartmux so I already have working
code that can create the multipart stuff and feed it to libsoup. I am
feeding it to libsoup through chunked encoding. The code all seems
correct but libsoup only sends the first chunk and then stops. My
other message to this list details that.
(CC'ing the list as it seems my last email was just to you)
Pedro
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]