Bug Tracker

Modify

Ticket #371 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

ajax dosen't support xml posts

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

Description

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

Change History

comment:1 Changed 7 years ago by joern

  • Version 1.0 deleted
  • Milestone 1.0 deleted

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

comment:2 Changed 7 years ago by Andrey Skvor

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.

comment:3 Changed 7 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.