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
2 answers

Get listview item value (specific textview) when deleting

I am creating a CMS application and I want to delete an item, for that I need the ID that I have hidden in the listview item. When I hold a listview item it pops up with a delete button which I click, that brings me to this piece of…
user6044834
0
votes
1 answer

graph.facebook.com and FacebookConnect on iPhone: How can I remove a "like"

I'm developing an iPhone application using the Facebook Connect API. I arrived to set the "Like" on a post using the following code: NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://graph.facebook.com/%@/likes",…
scriba
  • 97
  • 5
0
votes
1 answer

Express, Node, MongoDB, EJS - Delete router getting 304 back

I have been struggling with this for awhile and just cant get it figured out. My delete button is sending the server a GET /delete? and returning a 304 This is also my first post here and i di try and figure this out for a few hours first... but i…
0
votes
1 answer

HTTPDelete Android

I have a requirement where I need to send a JSON data to HTTPDelete. There is no setEntity() for Delete. HttpClient httpClient = new DefaultHttpClient(); HttpDelete httpDel = new HttpDelete(DEL_URL); StringEntity se = new…
Vamsee
  • 1
  • 2
0
votes
1 answer

How Do I make a HTTP Delete/Update Request?

Right Now I have a Restful Web service called Users.java, That fake adds a user to a fake database @Path("/users") public class UsersService { @POST public Response handlePost(String requestBody) { addUserToDatabase(requestBody); …
user4274473
0
votes
1 answer

GET is getting Invoked instead of DELETE

I am using REST service that is being invoked from bootstrap form submission which is being opened from hyperlink click event.REST is containing GET,POST,DELETE methods but for one of my requirement i want DELETE to be invoked but GET is being…
Lara
  • 2,821
  • 7
  • 39
  • 72
0
votes
0 answers

Angular $http.delete does not call my error callback function

Well, i tried everything but i couldn't solve the problem. I have this code, and i "force" an error in my server, but my callback function of the delete function is not invoking my error callback function, and the most weird thing is that i have the…
0
votes
1 answer

Length requests on HttpDelete in WebAPI?

I have a [HttpDelete] action in my Web API, and when I invoke it with a long URL, I get 400. I know for sure it's the URL length since I managed to fail / pass the request by adding and removing a single character. I had a similar issue with…
Y.S
  • 1,860
  • 3
  • 17
  • 30
0
votes
0 answers

How can I pass POST params through DELETE rest API?

I want to delete many items by it's Ids with DELETE Rest API. For example: Post Param: Ids: "112,324,323,544" But In the process function I can't get that Post params. $ids= filter_input(INPUT_POST, 'ids'); var_dump($ids); exit; ==> return…
Thinh Phan
  • 95
  • 1
  • 1
  • 8
0
votes
1 answer

How to delete an recipe in form of JSON from a server?

I write a code that get recipes in form of JSON from a server and present it into a UItable. NSURL *url = [NSURL URLWithString:@"http://domain.com/recipes"]; [config setHTTPAdditionalHeaders:@{@"Authorization":@" Token…
MKH
  • 153
  • 1
  • 3
  • 15
0
votes
0 answers

How to setup fallback for PUT and DELETE to POST in Laravel

I have to deploy application in Laravel on the shared hosting which doesn't support RESTfull methods like PUT and DELETE. I believe that there is a way to fallback these http methods in Laravel to POST, but the question is how?
Karol F
  • 1,556
  • 2
  • 18
  • 33
0
votes
1 answer

heroku proccessing "PUT" and "DELETE" request as "GET", Rails 4

i just push my latest commit to heroku, and type heroku open from my console. when i try to click my delete link , it doesn't deleted as expected, instead i get Processing by GamesController#show as HTML" i try to make sure by look at browser source…
0
votes
1 answer

Tomcat, enable DELETE method

This question is asked before How to make Apache Tomcat accept DELETE method, but the solution it provides doesn't work for me. I've added readonly false to…
laike9m
  • 18,344
  • 20
  • 107
  • 140
0
votes
1 answer

How to localize Mvc HttpDelete Attribute (using X-HTTP-Method-Override)

Its very common to have three Edit Actions in one controller all with the same name Get - Gets the original Post - Saves the users changes to the database Delete - Deletes the record from the database This is done by using attributes HttpGet,…
RitchieD
  • 1,831
  • 22
  • 21
0
votes
0 answers

How to send to php PUT/DELETE request using jQuery?

I would like to send a request to remove something on server. I know that the difference between POST/GET is that it will be called only once, even when i try to delete the same thing a few times. The data I want to send is: var data = { id:…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358