On 23 Nov 2007, at 19:14, Nick Birren wrote:
HiI'm trying to serve a video file with Apache while it is still being created (I have a separate server-side application that generates videos, the process takes a few minutes per video and I would like my users to be able to start downloading right away and not wait for the video to be generated).The problem is that even if my client reads the response slowly enough to allow for the whole file to be generated, I still get only the part of the file that was available when the HTTP request was made - I suppose this is because the server checks for the length of file when it starts to serve, rather than serving until it meets EOF. Is there any workaround for that?
If Header unset Content-Length doesn't work (and I suspect it won't, or at least that there'll be other problems like Etag generation), try a simple cgi script, like:
#!/bin/sh # replace this with whatever mime type is used for your video echo "Content-Type: video/mpeg" echo cat $PATH_TRANSLATED .. and configure that using the Action directive. http://httpd.apache.org/docs/2.2/mod/mod_actions.html#action -- noodl --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx