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

Getting a 405 response code with HttpURLConnection

I am getting a HTTP response code 405 when I use HttpURLConnection to make a DELETE request: public void makeDeleteRequest(String objtype,String objkey) { URL url=null; String…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
0
votes
0 answers

how to set the request body in httpdelete android

Hi I need to pass some values in delete method. Some one please suggest me whether it is good to use HttpDelete (or) HttpUrlConnection and how to pass the values in delete method.
user716826
0
votes
2 answers

Sencha Touch: REST store and DELETE request

I'm new to Sencha Touch and I'm having problems to delete a record. This is my model: Ext.define('MyApp.model.Customer', { extend: 'Ext.data.Model', ... config: { idProperty: 'key', fields: [ { …
nigal
  • 181
  • 1
  • 10
0
votes
2 answers

ActionLink with HttpMethod=DELETE does not work

I try to implement DELETE method for my mvc-application. There is my link placed in View: @Ajax.ActionLink("Delete", "Delete", "Users", new { userId = user.Id }, new AjaxOptions { HttpMethod = "DELETE" }) There is my controller…
Dem0n13
  • 766
  • 1
  • 13
  • 37
0
votes
1 answer

krakenjs angularjs $http method="delete" not working

In KrakenJs, I found a workover to make POST/PUT/DELETE requests without turning off "csrf" by passing a "_csrf" parameter in the body In index.dust -> In myScripts.js -> var…
rjnpnigrhi
  • 79
  • 1
  • 7
0
votes
0 answers

IIS7 - no response from server on request with DELETE verb

I have a Windows 2008 Server running the default IIS 7.0. I have an http handler where GET, POST, and PUT are working fine, but whenever I issue a DELETE request, there is nothing coming back from the server at all. I'm using Fiddler to issue the…
0
votes
0 answers

Facebook Remove User From APP

I have built a login system using FB Login JS SDK. Now theres a link to delete the account from my website, from database I am able to delete that users detail, but I also want that my app to be removed from that users app lists. I searched a lot…
Niraj Chauhan
  • 7,677
  • 12
  • 46
  • 78
0
votes
3 answers

Sending PUT/DELETE data with a XMLHttpRequest

I used the example from Send POST data using XMLHttpRequest to create this JavaScript code: function PostXML(webURL, post_data) { var objHTTP = new ActiveXObject("MSXML2.XMLHTTP"); objHTTP.open("POST", webURL, false); …
tampie
  • 185
  • 1
  • 1
  • 10
0
votes
2 answers

ASP.NET MVC HTTP Post/Delete

I have a ASP.NET MVC app. I have single function pattern which will be called both with HTTP POST and HTTP DELETE. Although Post is called, Delete is never called. I confirmed that the IIS accepts HTTP Delete. Any comments? Route and…
user2941694
  • 1
  • 1
  • 1
  • 1
0
votes
0 answers

Tomcat sends 403 at DELETE request although readonly is false

I've got a Servlet that implements the doDelete method. When I run the application on my tomcat (8.0.0 RC1) I get a 403 response. I checked the documentation regarding this (http://tomcat.apache.org/tomcat-8.0-doc/default-servlet.html) but no…
0
votes
0 answers

In android what should I use to send a http delete request (with parameters)

I've been using HttpURLConnection and it's been working so far, and it handles cookies with two lines but now I need to call a http delete request and it needs parameters and the server gets them form the body. Apparently you can't send a delete…
user2312638
  • 443
  • 2
  • 6
  • 17
0
votes
0 answers

Restler3: DELETE Body JSON

I really don't understand what I should do to make a DELETE request. I want to use JSON as in/output only, so also a DELETE request should receive JSON. But that doesn't make the goal: public function delete($request_data = NULL) $request_data is…
user1289915
0
votes
1 answer

PUT and DELETE requests unsuccessful on PHP REST API, but POST and GET are fine

I've got a slimPHP REST API built. Here's what I have for headers: header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Credentials: true"); header('Access-Control-Allow-Headers: origin, content-type,…
bentedder
  • 796
  • 6
  • 21
0
votes
1 answer

How can I delete data using AJAX in REST API (SLIM FRAME)

I want to delete user using REST API. I try to use id = $(this).attr('rel'); $.ajax({ url: App.url+'/allusers/users/'+id, type: 'DELETE', success: function(data){ alert(data); } });
Ravi Prakash
  • 23
  • 1
  • 7
0
votes
1 answer

Http Delete? Delete a like?

I cannot for the life of me figure out how to make a connection to delete my like from a post in the ios Facebook sdk. Here is my code to like the connection. How do I delete the like? I cannot make the startForDelete connection. // create the…
Carey Richardson
  • 191
  • 2
  • 11