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
4
votes
3 answers

DELETE request with parameters using Guzzle

I have to do a DELETE request, with parameters, in the CodeIgnitor platform. First, I tried using cURL, but I switched to Guzzle. An example of the request in the console is: curl -X DELETE -d '{"username":"test"}'…
4
votes
1 answer

HTTP delete message using requests module

I am using the requests.delete as follows: r=requests.delete(url, json.dumps(data)) This gives me the following error: r=requests.delete(url, json.dumps(data)) TypeError: delete() takes exactly 1 argument (2 given) Why do I get this error?
sukhvir
  • 5,265
  • 6
  • 41
  • 43
4
votes
1 answer

Oracle mod_plsql does not implement PUT and DELETE HTTP requests

I am running Oracle-Application-Server-10g and using mod_plsql for webserver. While webserver accepts HTTP requests such as POST, DELETE and HEAD, I can not find a way in setting it to accept other HTTP requests such as PUT and DELETE. Sending PUT…
tomtom
  • 41
  • 1
4
votes
1 answer

How to send HTTP Delete request with custom headers?

I have a web server running on an EC2 node. There is an endpoint which accepts HTTP DELETE requests. It accepts the requests and proceeds with the intended functionality only if some certain headers are found in the DELETE request it send. What…
4
votes
1 answer

HTTP PUT, DELETE and I/O streams with PHP

Is there any way I can access data that was sent via HTTP PUT method other than $putdata = fopen("php://input", "r");? I have never worked with PUT and DELETE methods and $putdata = fopen("php://input", "r"); seems a bit sketchy. Will it work…
rinchik
  • 2,642
  • 8
  • 29
  • 46
4
votes
1 answer

DELETE request to Modeshape rest server

I'm using Modeshape rest server. Modeshape's version is 2.8.2. When I send GET request to some node like http://localhost:8080/modeshape-server/repo/workspace1/items/file it returns information about the node. But when I send DELETE request (using…
Gregory Kalabin
  • 1,760
  • 1
  • 19
  • 45
4
votes
1 answer

In ASP.Net Web API, how do you fake PUT and DELETE?

I'm experimenting with ASP.Net Web API, which, by convention, splits controller methods into a Restful style of Get(), Put, Post and Delete. My question is how does one handle the PUT and DELETE requests that might come from a non-Ajax browser…
John
  • 3,332
  • 5
  • 33
  • 55
3
votes
0 answers

When I use the delete protocol of HTTP to pass parameters in the body (the parameters are very small), nginx returns 413, why?

Like this : [root@localhost orz]# [root@localhost orz]# [root@localhost orz]# curl -X 'DELETE' 'http://192.168.6.166:7777/api/services/group/' -H 'accept: application/json' -H 'Authorization: Bearer…
sx Luo
  • 59
  • 1
  • 3
3
votes
3 answers

How to get React to re fetch my data from API after a POST or DELETE to Database?

New to react and would appreciate any help with getting my components to re render data after a POST or DELETE. The data is flowing all the way through to my database on post & delete however I manually have to re load the page to have the updated…
Chris Gilbert
  • 43
  • 1
  • 2
  • 5
3
votes
1 answer

HTTP delete request on localhost in python

I'm trying to build client and server on localhost and implement get, post and delete http requests using requests module in python.I have this for server: from http.server import HTTPServer, BaseHTTPRequestHandler from urllib.parse import…
masterdeki
  • 49
  • 6
3
votes
1 answer

aws elasticsearch signed delete request returns 403 forbidden (using apache httpclient)

I'm getting an http 403 forbidden error trying to delete an aws elasticsearch index via the java Jest(v6.3) elasticsearch client (which delegates the http calls to apache httpclient(v4.5.2) I know my permissions are setup correctly in AWS as I'm…
3
votes
3 answers

Angular refresh table after delete record, using material table and rest api

I have a material Table with expandable rows (https://material.angular.io/components/table/examples) and I want to manage delete into the table itself, so I create a delete button with a function that trigger the delete event. The api works, the…
ufollettu
  • 822
  • 3
  • 19
  • 45
3
votes
1 answer

laravel form delete request not working

Just making a delete request from a form but not working. can you help please ?
@csrf @method('DELETE') here is my…
Barbell
  • 194
  • 1
  • 6
  • 19
3
votes
3 answers

Passing multiple parameter to DELETE request c# web API

My question is how can I pass multiple parameter to DELETE request. My controller class as follow, namespace MYAPI1.Controllers { public class TaskController : ApiController { // DELETE: api/Task/5 …
Gamma
  • 317
  • 1
  • 6
  • 22
3
votes
1 answer

ASP.NET Web API Delete returns 404

Using ASP.NET (4.6.1) Web Api on my local IIS 7.5 I'm trying to call a delete method: [HttpDelete] [Route("Values/")] public IHttpActionResult DeleteValue(int id) { return Ok(); } Following DELETE request works perfectly fine: …
blackik
  • 495
  • 1
  • 7
  • 17