views:

32

answers:

1

Hi,

I'm having an issue with a servlet that delivers multimedia data. I'm trying to use it from mobile safari on the iPhone and I get the "server not configured correctly" error. I server the same multi-media file using a web share on my Mac (Apache) and it works fine. I start looking at HTTP heades to see if the servlet is messing up a header. I notice that Apache sets an ETag as well as an Accept-Range. Then I Google around and learn that the iPhone works with progressive downloads. Long story short, I think I need to enable progressive downloads in my servleet and I think the ETag and Accept-Range headers are part of it. I've never done this before so I figured I'd ask here if anyone could point me in the right direction. Do I need to implement the entire progressive download stuff in my servlet? Should I use a Filter? Where should I start?

+2  A: 

Take a look at this article. It goes over creating a file servlet that supports resuming the download, caching and gzipping the content.

Philip T.
Thanks a bundle! I grabbed the source from there and managed to get a working prototype! It definitely does fix the issue as I can now support mobile safari. Thanx again!
Cliff