Questions tagged [delete-method]

34 questions
40
votes
4 answers

Why use HTTP PUT and DELETE methods instead of POST?

new_story GET /story/new(.:format) {:action=>"new", :controller=>"stories"} edit_story GET /story/edit(.:format) {:action=>"edit", :controller=>"stories"} story GET /story(.:format) {:action=>"show", :controller=>"stories"} …
Willem Obst
8
votes
3 answers

Ruby delete method (string manipulation)

I'm new to Ruby, and have been working my way through Mr Neighborly's Humble Little Ruby Guide. There have been a few typos in the code examples along the way, but I've always managed to work out what's wrong and subsequently fix it - until…
Brian
  • 123
  • 1
  • 1
  • 8
4
votes
3 answers

Android Volley Request with Body

Is it possible to send a simple text in the body of a StringRequest using DELETE-Method? I couldn't find any example where somebody put something in the body of a request... This is my request and I want to add "{'deviceid':'xyz'}" to the body…
Unknown User
  • 356
  • 1
  • 4
  • 14
2
votes
0 answers

Method DELETE is not allowed even though Access-Control-Allow-Methods is set to allow it

My middleware code: app.use(cors()); app.use(function (req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Methods", "GET, PUT, POST, DELETE, OPTIONS"); …
Daniel Ertel-Moore
  • 91
  • 1
  • 1
  • 12
2
votes
5 answers

Rails delete method it doesn't work

Well I'm having such a problem with delete method in Ruby on Rails, i think, i tried everything i read but it doesn't work maybe you gusy can help fix the gap. When I click the link It redirect to patients/1?confirm=Are+you+sure%3F&method=delete But…
rfcabal
  • 121
  • 1
  • 4
  • 17
1
vote
2 answers

Response to DELETE method request sent using node.js never arrives

I have node.js server which acts like a proxy. It recieves localhost requests and forward them to web service on another domain. GET, POST and PUT requests work just fine. But I have a problem with DELETE method request. It causing "Gateway Timeout…
aliona
  • 447
  • 1
  • 6
  • 18
1
vote
1 answer

How to use make delete request of generic viewset without sending the pk

I am using django in the backend and react native in the frontend, I have a generic viewset with destroy, create mixins. In my use case, I make a post request when the user is logged in and then delete the same instance when he logged out. The…
1
vote
2 answers

ListView delete command and ObjectDataSource delete method not working correctly

I am using a ListView and an ObjectDataSource. The attributes of the ListView are as follows:
user619891
1
vote
2 answers

Laravel Ajax can't pass parameter in url but works with a constant

I'm writing an ajax that works when url contains a constant but does not work when url contains a variable because this does not get replaced by the actual value. $('body').on('click', '.deleteLayer', function () { var layer_id =…
Jon Simson
  • 63
  • 1
  • 8
1
vote
2 answers

Can't delete item using ReactJs MongoDB NodeJS

So I'm working with NodeJS, MongoDB and ReactJS. I have a Task List where I add -(Task.create) with mongoose- to my project multiple tasks and I have a form with a button to delete those tasks, but I can't do it because I can't access to each task…
AFAF
  • 569
  • 2
  • 16
  • 40
1
vote
2 answers

Symfony 3.4 can't delete in production env

I have an error that I can't resolve. I have a Symfony application, running well in dev env on my local and on the staging server, so with app_dev.php. When I test the same application on my staging server in prod mod (so with app.phpor just…
Climberdav
  • 61
  • 7
1
vote
2 answers

VBA deleting a duplicate copy of chart object fails in Excel 2013

I have a VBA code that is intended to copy the contents of a range into a chart, to be able to export it to a PNG file (+some post-processing using an external command). Here is the relevant part: Sub GenererImage() ' Entry point getparams '…
1
vote
2 answers

How to delete registry key: getting error "Cannot delete... because the subkey does not exist"

To begin, I recognize that this question appears similar to others. However, my research thus far has not found a solution to the specific problem I am facing, just a lot of solutions to problems with similar circumstance. I am new to registry…
MrSpudtastic
  • 205
  • 2
  • 18
1
vote
2 answers

Rails tutorial: delete method doesn't work

I'm following instructions of this tutorial: http://guides.rubyonrails.org/getting_started.html I have a problem with deleting articles. I've written the code as the tutorial suggests, and link 'Destroy' has appeared, but when I click it, instead of…
1
vote
0 answers

Unable to success DELETE request from POSTMAN

Since some weeks now, I'm improving my knowledge in POSTMAN. Able to send GET, POST request, validating JSON schema, running test... and so on. But, I'm loosing my hair trying to send DELETE request. When you build a GET request, OAUTH1 parameters…
Vincent83149
  • 51
  • 2
  • 9
1
2 3