[mod_python] Can't get a 206 (partial content) response

yubing trueice at gmail.com
Tue Jul 3 07:58:39 EDT 2007


yes, the Firefox flash player plugin only supports 2GB content-length,
beyond that, it will refuse to play the stream.
However, we want longer stream (maybe infinite) to monitor our streaming
server :)
Maybe we should try RTMP in the near future:)

On 7/3/07, Mike Looijmans <nlv11281 at natlab.research.philips.com> wrote:
>
> For most streaming clients, a simple workaround to disable chunking is to
> set a Content-Length of
> some arbitrary large number (2GB or so), and add the "Connection: Close"
> header to the output. Most
> streaming players will accept this. The length will be ignored by the
> media player anyway.
>
> If the device really wants the HTTP/1.0 in the header, you can change the
> httpd.conf file of Apache
> to force output to 1.0 for certain client strings. I don't recall the
> particulars, but there was
> example code in the default config file in apache 2.
>
> Mike Looijmans
> Philips Natlab / Topic Automation
>
>
> yubing wrote:
> > I'm doing flv streaming to the flash player, it seems that the player
> > refuses to play multiple chunked streams (>2).
> > To avoid this, I have to set the response code to HTTP/1.0, and that
> > works fine with php scriptlets with:
> >
> > header("HTTP/1.0 200 OK");
> >
> > for mod_python, I have to set apache's env like this
> > <Location /live>
> >       SetEnv downgrade-1.0
> >       SetEnv force-response-1.0
> > </Location>
> >
> > Is there any solution to send HTTP/1.0 response in mod_python ?
>
>
>


-- 
truly yours
ice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070703/f066d0b9/attachment.html


More information about the Mod_python mailing list