Questions tagged [http-delete]

DELETE is an HTTP request method used to delete a specified resource on server side.

DELETE is an HTTP method which requests that the origin server delete the resource identified by the request URL. This method may be overridden by human intervention (or other means) on the origin server. The client cannot be guaranteed that the operation has been carried out, even if the status code returned from the origin server indicates that the action has been completed successfully. However, the server should not indicate success unless, at the time the response is given, it intends to delete the resource or move it to an inaccessible location.

A successful response should be 200 (OK) if the response includes a response body describing the status, 202 (Accepted) if the action has not yet been enacted, or 204 (No Content) if the action has been enacted but the response does not include a response body.

If the request passes through a cache and the URL identifies one or more currently cached entities, those entries should be treated as stale. Responses to this method are not cacheable.

References- apache.org, w3.org

536 questions
-1
votes
3 answers

AJAX DELETE request in asp.net MVC

I've always thought that a delete request should be done using type: "DELETE". However, it seems not work in .NET $.ajax({ type: "GET", url: '/TestController/DeleteTest?id=10', contentType: 'application/json; charset=utf-8', success:…
user6824563
  • 735
  • 6
  • 25
  • 47
-1
votes
1 answer

HTTP 405 error while trying to DELETE from web service

I have a simple Java web service that handles my SQL method with Jersey. The HTTP call is from an Angular project. GET and POST are working fine, but when I try a DELETE, I get an HTTP 405 error. This is how I call the method in…
-1
votes
1 answer

POST vs DELETE in AJAX requests

jQuery AJAX supports DELETE method, right? Please enumerate arguments pro and contra for using POST vs DELETE jQuery AJAX requests to the backend to delete an object. Is it true that with DELETE requests we may have trouble with proxy servers?
porton
  • 5,214
  • 11
  • 47
  • 95
-1
votes
2 answers

Volley delete request with body data not working

hello everyone im facing a problem with volley delete request . i working on task in user add or remove some contacts by it's id . im using volley library for it. API is tested with postman and working fine. private void AddContactInList(final…
vikas dube
  • 79
  • 9
-1
votes
2 answers

MVC + Datatables: Deletion firing more than once

I am having an issue with Datatables and deletion in my MVC application. I have a button for each row that when clicked opens up a modal window that asks the user if they want to delete that row. If they click "OK", the data is removed from my…
-1
votes
2 answers

Backbone.js - delete bad request 400 (bad request)

I'm using rails 4 and backbone in my app. I created delete method with Backbone, but when I try to delete using it, I get this error: DELETE http://localhost:3000/[object%20Object] 400 (Bad Request) My delete method: deleteBook: (ev) -> …
Andrius
  • 19,658
  • 37
  • 143
  • 243
-1
votes
1 answer

Http DELETE with parameters using Jersey

I have code that contains several different DELETE methods, one of which takes a parameter, or at least ideally it would take a parameter. However when I make this request, either through CURL or through a web client, it doesn't work. The other…
user2482879
  • 35
  • 1
  • 6
-2
votes
3 answers

how to delete an object from list in flutter

i want to delete an object from list of inventory in which i just have description and url of the inventory and i want to delete object of inventory by description so how can i delete the object. function in service class this is my service…
Saad Ebad
  • 206
  • 5
  • 16
-2
votes
1 answer

Is my ajax http-delete request malformed?

I am using a public api for testing that responds to get, post, put, and delete and when attempting to create a http-delete request using jQuery.ajax() my response is undefined. This seems strange as I have successfully received a response using…
-2
votes
1 answer

Request method 'GET' not supported] error for method using @DeleteMapping

I'm getting a error like: Request method 'GET' not supported for a method (deleteProductById) using the @DeleteMapping annotation whenever I visit the URL mapped to said method (http://localhost:8083/deleteproductbyid/1). The app works when I…
-2
votes
1 answer

How to consume DELETE request from windows client application

In my web API delete request, which containing multiple parameters.I need to consume this DELETE request using C# windows form application and my code as bellow. private void btnDelete_Click(object sender, EventArgs e) { using (var…
Rooter
  • 383
  • 1
  • 7
  • 25
1 2 3
35
36