A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash sending wrong content type

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    7

    Talking

    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

  2. #2
    Junior Member
    Join Date
    Jun 2000
    Posts
    22
    myXML=new XML();

    myXML.contentType="text/xml";

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


  3. #3
    Junior Member
    Join Date
    Mar 2001
    Posts
    7

    Post Works, thanks

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center