Re: XMLHttpRequest and multipart responses
Boris Zbarsky <[email protected]> Sun, 25 Feb 2007 12:33:39 -0500
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Christoph Dorn wrote: > Does the XMLHttpRequest object support multipart/mixed response > content? It supports multipart/x-mixed-replace. multipart/mixed doesn't really make much sense in an XMLHttpRequest context -- it would require that the parts be exposed to the caller all at once, which the API doesn't really allow. For multipart/x-mixed-replace, it's basically treated like multiple request/response cycles. > I presume this is the intended and proper result? Yep. > Is there any way to set an additional header to make the object just > read the text/xml section and load the XML document properly? No. > The other option would be to intercept and parse the response to > return the text/xml section only to the XMLHttpRequest object. Is this > possible? Not from untrusted script. From trusted script you could just do all the HTTP access yourself, of course. -Boris