I'm trying to send a RESTful request to my java web app hosted on cloudbees.
I'm using jQuery like so:
$.ajax({
url: '/api/users/',
type: 'PUT',
dataType: 'json',
data: {
fbId: facebookUserId == null ? '' : facebookUserId,
fbName: facebookUserName,
lnId: linkedInUserId == null ? '' : linkedInUserId,
lnName: linkedInUserName
},
success: function(response) {
internalGetConfiguration();
}
});
Using PUT (as in the code snippet above) causes tomcat to not pass through the parameters (fbId etc. don't get parsed or never arrive, I don't know, but I can see that they are sent). If I change to POST it goes through just fine.
Is is not possible to use PUT/DELETE with Cloudbees hosting?? is there some configuration that I need to add in order for it to work, or do I need to format it somehow?
I've seen another post regarding google app engine that it also has this issue (or at least HAD), is this a known issue at cloudbees?