PDA

Click to See Complete Forum and Search --> : Flash sending wrong content type



jbest
05-08-2001, 06:10 PM
I'm sending XML to a servlet and get the error: "Unsupported content type "application/x-www-form-urlencoded", must be: "text/xml"

is there a way for me to change the content headers when posting XML using flash or do I need to look for the solution on the servlet side? I would much prefer to fix it in Flash if possible - this is to integrate with some existing code which would require someonelse to change it.

Thanks

arTleVark
05-11-2001, 04:51 AM
myXML=new XML();

myXML.contentType="text/xml";

works only when playing your movie in the browser (ie. swfplugin r042), not in flash .

jbest
05-11-2001, 12:38 PM
Thanks a lot. Worked perfectly. Don't you love undocumented features? How did you learn about this method? Are there any more. Does it work with all 5.0 versions of the plugin?

Thanks, saved me a lot of time.

Jason