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
0
votes
1 answer

How to do a HTTP DELETE request with Python requests module without "Content-Length: 0"?

I am doing a HTTP DELETE with Python requests module, but I am facing a problem in my application because of the "Content-Length: 0". Is there a way to deal with this? Is possible to remove the "Content-Length: 0"? What do you suggest? The problem…
0
votes
1 answer

Restrict delete Http request in solr

How can I restrict delete by query or delete by id Http request in solr? Sample request: http://localhost:8983/solr/core1/update?stream.body=*:*&commit=true
User1203
  • 77
  • 2
  • 11
0
votes
0 answers

DELETE request gets interpretted as GET

While creating a REST service with NodeJS I ran into a problem. The DELETE request gets interpreted as GET on the server side. This may be some security feature to avoid data loss, but this moment I figure out what is wrong. I am using express…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

Rails, link_to method: :delete breaks after child element (comment) instantiated

I'm on a video show page (which belongs to a post). The link_to delete works just fine until I create a comment on that video show page. I have a series of capybara tests that validate that the link_to delete video is working until I create a…
n.milsht
  • 163
  • 3
  • 17
0
votes
1 answer

Java Apache httpdelete - 400 error

I am having difficulty pinpointing where the BAD response is coming from, I have performed the request in the below Java code but also as a DELETE REST call from the SOAP UI where I am getting a successful 200 response. (The call is identical) The…
Charabon
  • 737
  • 2
  • 11
  • 23
0
votes
2 answers

How to pass an array of id's as parameters for a delete request in javascript

I have an array of id's whihc i want to append to a delete request. How should i append the params to the url request? var deleteArray = ['1', '5', '6']; if i want to send a request in this format http://localhost/xxx/employees?ids=1&ids=5&ids=6 …
looneytunes
  • 741
  • 4
  • 16
  • 35
0
votes
1 answer

How to make a DELETE http request with Javascript (not jQuery)

I'm trying to figure out how to make a DELETE request using just Javascript. I have a service written in Java Spring where the controller for the url that I am working on has method = RequestMethod.DELETE. My url is, say,…
aCarella
  • 2,369
  • 11
  • 52
  • 85
0
votes
1 answer

Method PUT and DELETE don't work in Laravel

I have a problem with my routes in Laravel. When I use the following route: Route::resource('user', 'PostsController'); The methods PUT and DELETE work fine with the functions destroy and update in my controller, but when I use the following…
0
votes
1 answer

How to Send HttpDelete Request with paramete and content-type in android

I am facing a problem in HttpDelete Request in android to send rest API. When I hit the API it shows error. There is a need of content-type and I am setting it in header but didn't find any solution I need help. And this is my code which I have…
user6430425
0
votes
1 answer

Http GET and DELETE multiple entity requests at once (PHP)

As the title says - is it valid? What do i mean If i call an endpoint with GET is it then valid to do http://some.thing/more?id[]=12&id[]=4&id[]=65 to let the server return multiple entities at once? I could not see any note about in the rfc docs.…
cottton
  • 1,522
  • 14
  • 29
0
votes
1 answer

How to Stop OneNote API From Returning ID for Deleted Pages

I place a call using the OneNote REST API to return a list of all the pages in a section. This works successfully. However, some of the pages it returns should no longer exist! Yet I can see their information, IDs, etc., even though they have…
Elliptica
  • 3,928
  • 3
  • 37
  • 68
0
votes
1 answer

HttpURLConnection DELETE with url params

How to send url params with HttpURLConnection DELETE method? I am using below code: String targetURL = "http://example.com/some:data?initiator_id=6724181421"; URL url = new URL(targetURL); HttpURLConnection connection = (HttpURLConnection)…
Nitesh V
  • 381
  • 6
  • 18
0
votes
1 answer

Express.js+Passport.js +facebook-issuing a http DELETE to logout

Having an issue logging out of a device-application instance using https://github.com/passport/express-4.x-facebook-example What I am trying to do is issue a DELETE request to https://graph.facebook.com/me/permissions?access_token but am having a…
Bachalo
  • 6,965
  • 27
  • 95
  • 189
0
votes
1 answer

Pass complex object to delete method of REST Service

I have REST service that manage the resource EASYPAY.. In this moment this service exposes 3 different methods: Get a EasyPay request (GET); Insert a Easypay request (POST); Update a Easypay request (PUT). Whe I inserto or update a request I must…
Simone
  • 2,304
  • 6
  • 30
  • 79
0
votes
0 answers

How Can I Update applicationhost.config file to Enable PUT & DELETE verb in IIS 7?

My ASP.NET Web API Project work fine for PUT & DELETE Operation of development PC On IIE Express Server Mode. But In Test Server those two verb does not work. I am also try with update the {user}\Documents\IISExpress\config\applicationhost.config…
Osman
  • 1,270
  • 2
  • 16
  • 40