Closed Bug 339698 Opened 20 years ago Closed 14 years ago

XMLHttpRequest.send() doesn't send XML Document DOM objects

Categories

(Core :: DOM: Core & HTML, defect)

1.8 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: vincent, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 According to the W3C specification for XMLHttpRequest, the send() method supports, as an argument, a DOM Document interface instance of an XML document (which then gets serialized and send as the body of the HTTP request). Well, I'm having trouble when trying to send the XML back to the server. Actually, the problem is quite simple : the XML doesn't seem to get sent at all. On the server-side, I dont see anything in the request either in the headers (request.getHeader(), etc.), in the parameters (request.getParameters(), etc.) or in the body of the request (request.getReader()) as I supposed, and how I think the W3C specification for XMLHttpRequest is meant to be implemented. I'm running the test on the client-side with Firefox 1.5.0.3 (using the Prototype 1.5_rc0 AJAX library, but it's using Mozilla XMLHttpRequest quite plainly, so I suppose it should work) and on the server-side with Tomcat 5.0.28 and Struts 1.2.7. Reproducible: Always
Component: General → XML
Product: Firefox → Core
Version: unspecified → 1.8 Branch
Assignee: nobody → xml
QA Contact: general → ashshbhatt
Can you provide a testcase? There is the code that handles sending DOM documents: http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/content/base/src/nsXMLHttpRequest.cpp&rev=1.196#1864
Assignee: xml → nobody
QA Contact: ashshbhatt → xml
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Component: XML → DOM: Mozilla Extensions
QA Contact: xml → general
Resolution: --- → WORKSFORME
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.