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

Ajax post cross domain request to instagram

I am trying to make request to delete comment via Instagram API. This is my code: $.ajax({ type: "POST", url: "https://api.instagram.com/v1/media/" + mediaId + "/comments/" + commentId + "?access_token=" + accessToken, data: { _method:…
0
votes
2 answers

How Can I use Delete Request with Ajax Mvc to delete multiple row is checked

I want to delete multiple row on html table which has checked an I dont want to use post method . How can ı send Id Array to send Controller.I am using EF6 Thanks For Help. $.ajax({ url: "/Urun/DeleteField" + '/' + DeleteArray, type:…
0
votes
0 answers

AngularJS: value argument of $resource.save callback is a Resource

I am using AngularJS' $resource directive to implement a REST interface on the client side. The server side's implementation works flawlessly. However, on the client side I am stuck. On the data side I have a materials model which holds an array of…
Bastian
  • 4,638
  • 6
  • 36
  • 55
0
votes
1 answer

Worklight adapter invoke Http DELETE Method not working

Refer this link. Worklight WL.Server.invokeHttp() with DELETE method doesn't accept query param I am adding content in body ,but i am getting 500 response.Same request is working from postman and other clients.I think this is an issue with…
gaurav001
  • 167
  • 1
  • 1
  • 8
0
votes
0 answers

DELETE http request in HttpURLConnection

I have a client program in which i make a HTTPURLConnection to a RESTful web service. I am passing all JSON data in the http request object. Everything seems to work fine for the HTTP POST/GET method but not for the DELETE method. When i execute the…
manitaz
  • 1,181
  • 2
  • 9
  • 26
0
votes
1 answer

HTTP Content-type header and body are not transmitted when sent from within PhantomJS

When initiating an HTTP DELETE request with content-type header and body, these two elements are: Well received when the request is initiated from within Chrome, Not received when the request is initiated from within PhantomJS. Which of the two is…
Younes
  • 1,635
  • 1
  • 19
  • 33
0
votes
1 answer

Node/Express - How to implement DELETE and PUT requests

I know that I can route to router.get('/object/:id', ...), router.post('/object/new', ...), router.delete('/object/:id', ...), and router.put('/object/:id', ...) and that when I browse to a specific object, the browser will issue a http get request.…
jordan
  • 9,570
  • 9
  • 43
  • 78
0
votes
3 answers

Is it a good restful URL design to avoid using DELETE and PUT?

I read an example of restful service, it only uses two HTTP method: get post. for example, there is a task list at the server. To design the restful URL, we can use: www.example.com/task GET. return all the task list. www.example.com/task/id …
Jimmy
  • 1,699
  • 2
  • 16
  • 17
0
votes
0 answers

ASP.NET Web API DELETE method 405 Method Not Allowed

I'm developing a project using asp.net web api in vs 2012. In this project when I want to delete a record from a separated project I get this error message "NetworkError: 405 Method Not Allowed - http://localhost:30777/api/Customer/1". In client…
0
votes
0 answers

iOS: RESTKit RKRequestMethodDELETE with parameters

How do I send parameters with RKRequestMethodDELETE request. I need to send groupId (INT) and users (an array). Below is the code that I'm using and it's appending it to the…
user1107173
  • 10,334
  • 16
  • 72
  • 117
0
votes
1 answer

Does jsoup support restful/rest request

Can you tell me please how to create http(s) request in jsoup with request method PUT or DELETE? I came across this link: https://github.com/jhy/jsoup/issues/158 but it is few years old, so hopefully there is some restful support implemented in that…
Wojciech Jakubas
  • 1,499
  • 1
  • 15
  • 22
0
votes
1 answer

DELETE Record using HttpDelete in android

Hi i want to delete record from database, i am using following code, but record is not being deleted, HttpClient client = new DefaultHttpClient(); HttpConnectionParams.setConnectionTimeout(client.getParams(), 10000); HttpDelete delete = new…
Rajesh Panchal
  • 1,140
  • 3
  • 20
  • 39
0
votes
3 answers

How do you insert variable to url?

I search for a solution, and there are some answers but none solve my problem. I want to add variable to the end of url which is user text input value (this is number of ID to delete in database). var idRem = parseInt($('#removeId').val(),10); …
kuba0506
  • 455
  • 2
  • 8
  • 20
0
votes
1 answer

Restkit - [RKManagedObjectRequestOperation deleteTargetObject:] not called

I am using the following to delete objects using RestKit (0.23.1): [self.objectManager deleteObject:myObject path:path parameters:nil success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) { NSLog(@"success deleting…
Dillan
  • 427
  • 3
  • 9
0
votes
1 answer

Express REST API - Delete Method

I am getting stuck on the delete method for my API. My application requires a user to log in and then he can add courses. The courses are stored in a nested array inside the User model. I want the user to be able to cancel (delete) a course from the…
Sizzles27
  • 94
  • 12