December 27th, 2011, 11:59 PM
XML document rendered as Content-Type text/html when POSTed to by Flash app
I think the title of this thread sort of tells the story. It's very frustrating. I have a very simple XML file that renders correctly in the browser itself, with a page header Content-Type value of text/xml. But, if I specify this same XML file as the url to which my Flash app POSTs, the browser returns a page header Content-Type value of text/html, and then understandably fails to properly process the page, returning a "HTTP 405 - Resource not allowed" error.
I've really messed around with this for an embarrassingly long time already. It's very bizarre. The MIME type of xml is configured in IIS (as evidenced by the fact that the browser correctly renders the XML file by itself). I can't imagine what the problem is.
Any help would be greatly appreciated.