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)
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
| Reporter | ||
Updated•20 years ago
|
Component: General → XML
Product: Firefox → Core
Version: unspecified → 1.8 Branch
Updated•20 years ago
|
Assignee: nobody → xml
QA Contact: general → ashshbhatt
Updated•19 years ago
|
Comment 1•18 years ago
|
||
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
Updated•14 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Component: XML → DOM: Mozilla Extensions
QA Contact: xml → general
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•13 years ago
|
Component: DOM: Mozilla Extensions → DOM
| Assignee | ||
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•