Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question