Questions tagged [delete-method]
34 questions
0
votes
3 answers
i have a form with 2 buttons for submitting two different form action and form method
I have two buttons:
one submitting the form for changing the photo and
one deleting.
By deleting i want to send delete method to the route delete with sweet alert.
However this does not work.
How can i have one form and 2 input for submitting…

Persian
- 45
- 6
0
votes
1 answer
HTTP Programming Using Python Socket
I have implemented HTTP methods (GET,HEAD,POST and OPTIONS), that work fine. But unable to implement DELETE method. Here is code:
import socket
# creating socket instance
# socket.AF_INET = IPV4
# type=socket.SOCK_STREAM = TCP
s =…
0
votes
0 answers
When receiving the parameter of the delete method as an array from Spring boot, the leading blank is removed only when the size is 1
I have a simple Spring Boot controller like this:
public class TestController {
@DeleteMapping
public ResponseEntity> deleteTest(String[] keywords) {
return new ResponseEntity<>(keywords, HttpStatus.OK);
}
}
If I make a…

Seongsic ko
- 1
- 1
0
votes
0 answers
AttributeError: 'HttpWebRequest' object has no attribute 'delete'
url = 'something'
headers = {'Content-Type': 'text/xml', 'Accept' : 'application/xml'}
request = HttpWebRequest.Create(url)
request.delete(url, headers = headers)
I am trying to call a delete menthod but getting attribute error - AttributeError:…

Claire
- 1
0
votes
1 answer
deleteMany in mongodb with filter
Orders
id:1101, supplier:"000822",article:004970,stock:150
id:1102, supplier:"000822",article:004975,stock:100
id:1103, supplier:"000822",article:004650,stock:120
id:1104, supplier:"000822",article:004655,stock:130
id:1105,…

hansvdzz
- 21
- 2
0
votes
1 answer
I have problems with the delete method in Mockito
public class BookControllerTest {
int ID=2;
int RELEASE=22;
String AUTHOR="HOMERO";
String TITLE="LA ODISEA";
Book BOOK = new Book();
Optional OPTIONAL_BOOK = Optional.of(BOOK);
ListREVIEW_LIST = new…

Wart
- 1
- 1
0
votes
2 answers
The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST in laravel 8
I get the following error with the code below.
The DELETE method is not supported for this route. Supported methods:
GET, HEAD, POST
Controller
public function destroy(Post $post)
{
$post->delete();
return…
0
votes
0 answers
I can not update or delete property. Get and Post methods work fine. I'm using spring boot and thymeleaf
I see there are many questions for this question but nothing is helping.
I can't find the solution.
I can't set up the button links correctly.
Controller:
@RequestMapping(value="/deleteProperty/{idProperty}", method = RequestMethod.DELETE)
…

Developer
- 35
- 12
0
votes
3 answers
how can I call a delete method properly?
It's actually the first time that I'm trying to call a delete method angular.
my code in my dataService is:
deleteMeaningItem(data): Observable {
return this.http.delete(url, data);
}
and in component:
…

Qiimiia
- 510
- 6
- 16
0
votes
1 answer
How can I use the delete method in Angular to pass data in body?
I have the below AWS lambda function which I have created with the intention of defining soft deleting and hard deleting my product.
exports.handler = async (event) => {
const product = JSON.parse(event.body);
let sql;
let msg;
…

Aditya P
- 19
- 1
- 9
0
votes
1 answer
Delete verb not working in IIS 8 windows 2012 R2
Larvel website hosted on Windows server 2012 R2 but I am not able to delete Attachments in the website.
Please refer screenshot now
Error message
Request URL:http://13.232.72.80/api/delete-form-data/form-field/33
Request method:DELETE
Remote…

Vijayakumar JR
- 9
- 1
0
votes
1 answer
integrating Delete Method API with retrofit 2 android with multiple parameters
I am using retrofit 2 for HTTP request in android. The API has delete method implemented and expect 3 parameters I am able to integrate with 1 parameter but could not be able to perform with 3 parameters. While running it on postman the API response…

Muhammad Umar Khan
- 11
- 9
0
votes
1 answer
HTTP Status 405 - Request method 'GET' not supported occurs when calling a delete request
I am trying to implement delete action for the each datatable row by invoking a bootstrap modal. And then sending a delete request to the controller with the parameter of username.
$(document).ready(function () {
…

GeekySelene
- 847
- 3
- 13
- 31
0
votes
3 answers
The action 'destroy' could not be found for ListingsController
UPDATE - I'VE NOW SOLVED THIS PROBLEM - I created a partial for the each Course item and rendered them from the main listing view. Thanks for all your help, I'm not really sure why it worked but it did END OF UPDATE
Apologies if this looks like a…

Jack Riminton
- 130
- 1
- 8
0
votes
0 answers
Sending HTTP DELETE request in codeigniter application?
Can anyone let me know how to use http delete method. am trying to achieve that using curl but it is giving http code 0 which i don't understand. can anyone please tel me what else need to be added to the bellow code
$url =…

Umesh M Gowda
- 121
- 1
- 13