A
A
ar41bald2015-03-25 14:42:52
JavaScript
ar41bald, 2015-03-25 14:42:52

What is the reason for the request not being executed by the DELETE method?

Trying to make a request to a public resource (Apache 2.4.10)
jQuery.ajax({
url: ' subdname.dname.by/api/books/2 ',
type: 'DELETE',
success: function( data, textStatus, jqXHR ) {
console.log( 'Post response:' );
console.dir( data );
console.log( textStatus );
console.dir( jqXHR );
}
});
gives error
DELETE subdname.dname.by/api/books/2 net::ERR_EMPTY_RESPONSE
Browser cache cleared. Problems in Firefox, Chrome, Opera.
With the same action on the local resource (same Apache/2.4.10 and address without subdomain), the request is successful.
The GET request is equally successful.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
krypt3r, 2015-03-25
@krypt3r

And where did you get the idea that the DELETE method is allowed on the remote server? And what do you want to achieve?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question