411 Length Required
by jenny on 28 September 2008 - 04:30pm in
Was getting a 411 error response with the message Length Required when making an ajax call from jQuery... the unexpected solution is to pass in an empty data object, like so:
$.ajax({
url: url,
type: 'POST',
data: {}, // <- set empty data
success: function(data, textStatus) {
// do something
}
}); Source: http://groups.google.com/group/jquery-en/browse_thread/thread/22828981cf23bdc4
