Questions tagged [http-method]

HTTP methods used to designate the appropriate action to direct a server towards a resource. GET and POST are the most widely known; PATCH and DELETE also fit in that category, among others.

355 questions
0
votes
1 answer

what is the right way to handle multiple HTTP methods with single URI and single request

I want to understand what should be the right request/response structure and API design to solve below problem. I have 2 entities let say Abc and Xyz. And Xyz has a foreign key of Abc. So, to create a record for Xyz, there has to be mapped Abc…
mehtas
  • 49
  • 1
  • 8
0
votes
1 answer

AWS Lambda: Parameter validation failed

I'm trying to run the following code to write into dynamodb via a POST method but getting an error: { "httpMethod":"POST", "body": { "TableName":"LamdaTest", "Item":{ "ID":"1", "Name":"Foobar" …
Nadeem
  • 17
  • 9
0
votes
1 answer

400 BAD Request error on HttpMethod.PUT - File upload second time

I have a PUT request method in the controller where I upload zip file and the method takes it as inputstream and processes the stream. It works well with file sizes of Kb. Now I uploaded a zip file of 10Mb size, and it works fine the first time. The…
Harish
  • 565
  • 1
  • 12
  • 34
0
votes
1 answer

Should HEAD's response status code be the same as GET's status code?

As I know, HEAD is the same as GET, but without response body. If I request resource that doesn't exist, GET will response with 404 Not Found. What status code should return HEAD request in this case? 200 OK or 404 Not Found?
Petr Flaks
  • 543
  • 2
  • 7
  • 25
0
votes
2 answers

sap.ui.unified.FileUploader change http methode / allow post on segw

I am working on a file upload in UI5. I can not use the fileupload via associations since I need the binary before writing in my table. The problem is sap.ui.unified.FileUploader always uses the POST HTTP method, this causes an error in the backend…
Erch
  • 589
  • 5
  • 25
0
votes
3 answers

Correct (RESTful) HTTP Method for handing mixed / batch requests

I have an application that needs to send multiple (change) requests to the server at a time. These requests are being sent in a batch, represented by a JSON object. The requests can be of any (change) type (e.g. creations, updates, deletions). the…
mcmurphy
  • 781
  • 16
  • 30
0
votes
2 answers

Extra argument 'method' in call Alamofire swift 4

I'm trying to send a notification from device to device i have done this before on my other app but for some reason i get this error message Extra argument 'method' in call inside the alamofire.request function on method. I have searched online…
Jiyar
  • 35
  • 10
0
votes
4 answers

Calling POST method by clicking a button

this is my first time when I'm setting up the server and need help. So my goal is to set up server by NodeJS and Expresss. Let's say we have an app with Admin and Users. When Admin clicks a button, it sends some data for the server, then Users can…
0
votes
1 answer

How to bypass preflight in a HTTP post with complex mediatype using Electron?

I need to consume a HTTP endpoint using a specific media type and that endpoint doesn't handle the OPTIONS method. I imagine this would be impossible using regular browsers but I belive it should be possible using Electron, since I can do the same…
pca1987
  • 323
  • 3
  • 15
0
votes
2 answers

Grails: Same URL Mapping to different actions per different HTTP methods

I'm using Grails v3.2.9 In official documentation I found the following for mapping to http methods: static mappings = { "/product/$id"(controller:"product", action: "update", method: "PUT") } But this is not enough. What I need is to have one…
Suren Aznauryan
  • 984
  • 10
  • 24
0
votes
1 answer

How to disable http methods in embedded tomcat

How to disable OPTIONS and TRACE http methods at http://localhost:9092 level in embedded tomcat? I used ZAP Security tool for testing and my request is-- OPTIONS http://localhost:9092 HTTP/1.1 Proxy-Connection: keep-alive Upgrade-Insecure-Requests:…
0
votes
1 answer

How to use App Service methods as REST API endpoints?

POST /api/services/app/Company/Create is the URL we normally get when we create App Service in ASP.NET Boilerplate. How can I achieve POST /api/services/app/Company using App Service? Because if I use OData, then some response format is not in ABP…
Satish Somani
  • 65
  • 1
  • 2
  • 6
0
votes
1 answer

how to secure route when storing form data using laravel?

When I save the form data to database using laravel it works fine. I used the reference from http://www.studentstutorial.com/laravel/insert-data-laravel.php to store the data to the database. But when I directly enter the url localhost:8000/create…
Devraj
  • 71
  • 3
  • 12
0
votes
2 answers

How to deny HTTP methods (or verbs) for path in ASP.NET app

For security reasons i want to disable some http methods(e.x. OPTIONS,TRACE,HEAD) through application level. I want to do this for all files in directory "bundles/" But this path is actually created by this bundles.Add(new…
0
votes
0 answers

HTTP Body with DELETE method is allowed?

I made API server with Django rest framework. It is quite simple board, But I have some question about delete article. When delete article, METHOD will be DELETE. In previous code, I receive parameter(ex. password) to HTTP Body, and it works…
Hide
  • 3,199
  • 7
  • 41
  • 83