[jQuery] Problem using PUT HTTP method with $.ajax

[jQuery] Problem using PUT HTTP method with $.ajax


I have to use a REST based server from a jQuery client and it requires
that I use PUT to add some XML based items to the server's data store.
I've checked the server with curl and everything works as expected.
But from the web page it's not.. using Firebug I was able to figure
out that it was only sending like the first 11 characters of my xml
string.
I've tried this using $.ajax as follows:
Code:
$.ajax({
dataType: "xml",
data: d,
success: postSave,
url: saveURL,
type: "PUT",
beforeSend: diagnoser.credManager.getAuthSetterCurrent()
});
Right before this call I check if d is what I expected (about a page
of XML) and it is. There are no errors visible in the firebug console
or Error Console. The beforeSend function (that returns functions) is
something I've used before and it works fine (it sets some special
auth stuff in the headers).
Any ideas why it's only sending "<cluster id" for the body content?
Descsuit