Skip to main content

Bug Tracker

Side navigation

#371 closed bug (fixed)

Opened November 09, 2006 01:39PM UTC

Closed November 17, 2006 09:57AM UTC

ajax dosen't support xml posts

Reported by: sa.cesare@gmail.com Owned by:
Priority: critical Milestone:
Component: ajax Version:
Keywords: Cc:
Blocked by: Blocking:
Description

$.ajax/$.post dosen't support xml as "data" for post to server.

Attachments (0)
Change History (3)

Changed November 11, 2006 11:04AM UTC by joern comment:1

milestone: 1.0
version: 1.0

"xml" in which form? As a String? As a special XML object?

Changed November 11, 2006 01:03PM UTC by Andrey Skvor comment:2

Form dosen't matter really,but xmlhttp supports "oXMLHttpRequest.send(varBody);",see msxml sdk docs for reference-it's ms technology anyway;-)

JQuery assume only "multipart" encoding,I presume,for posts-that's the problem I'm talking about.

If you will not use any encoding at all,probably you'll get expected behavior in current implementation.I'm used to make simply req.send(xmldoc.xml) request.

Changed November 17, 2006 09:57AM UTC by joern comment:3

resolution: → fixed
status: newclosed

Fixed in SVN.

Added option to override Content-Type header (contentType), default is still "application/x-www-form-urlencoded".

If your xml isn't in string format and should not be processed to a query string, set the processData option to false.