#583 enhancement
gog

Simulation of PUT over POST not working correctly

Reported by gog | March 6th, 2009 @ 06:02 PM

The following piece of code should set up the _method parameter to "put" in order to simulate (or tunnel) a PUT request through a POST. Unfortunatly it doesn't. _method is set up correctly as soon as you remove contentType and postBody.


function put() {
	var request = new Ajax.Request
		('./service.php', 
			{ method: 'put', 
			contentType: 'text/xml',
			postBody: '<match><score>150</score></match>', 
			onComplete: putResponse }
		);
}

See the last two paragraphs of: http://www.xml.com/pub/a/2007/01...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Pages