http-method Questions

1

I got several alerts in the last two days bcs our service responded 5xx in a large percentage of the requests (tipically offhours when we have zero to low traffic anyway). When I checked the applic...
Inquiring asked 28/1, 2022 at 9:49

7

Solved

In an AWS Lambda code, how can I get the HTTP method (e.g. GET, POST...) of an HTTP request coming from the AWS Gateway API? I understand from the documentation that context.httpMethod is the sol...

7

Solved

I would like to know which http method I should use when doing a login request, and why? Since this request creates an object (a user session) on the server, I think it should be POST, what do you ...
Heaton asked 3/5, 2011 at 11:30

2

Solved

Today when using Postman I noticed the method option of PURGE. I have never encountered it in practice and cannot find the explanation of it's purpose. What is this method used for, where did it c...
Emmettemmey asked 15/9, 2014 at 21:52

16

Solved

First of all, some definitions: PUT is defined in Section 9.6 RFC 2616: The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an a...
Traps asked 11/2, 2015 at 16:30

5

Solved

While the HTTP 1.1 spec seems to allow message bodies on DELETE requests, it seems to indicate that servers should ignore it since there are no defined semantics for it. 4.3 Message Body A se...
Polymerism asked 14/1, 2013 at 17:45

15

Solved

What's the difference when using GET or POST method? Which one is more secure? What are (dis)advantages of each of them? (similar question)
Terhune asked 2/2, 2009 at 21:15

2

Solved

This may be a self-answering question, but I'm hoping one of you could point me to any resource where it is declared, or can be inferred, whether to use upper or lower case letters when declaring a...
Laciniate asked 11/12, 2014 at 13:5

2

Solved

I have to allow delete and update requests from front for my objects of some model. I wish to delete the instance and appropriate row in DB. I tried to use info from DRF tutorials (https://www.djan...
Bestialize asked 15/5, 2019 at 12:13

3

Solved

I'm working with Django and I'M using class-based views with urls. So, in mu classes I have the methods: post, get, put and delete. Example: class MyClassView(View): def get(self, request, id=No...
Insight asked 9/11, 2019 at 13:50

1

To ask a question related to Are HTTP headers case-sensitive?, if HTTP methods are case sensitive, what do most servers do with a "get" or "post" vs a "GET" or "POST"? For example, it looks like A...
Stupe asked 5/5, 2018 at 16:41

8

I'm creating a set of services using Rails 4, which I am consuming with a JavaScript browser application. Cross-origin GETS are working fine, but my POSTs are failing the preflight OPTIONS check wi...

2

I'm surprised to find so little mention of this dilemma online, and it makes me wonder if I'm totally missing something. Assume I have a singleton resource called Settings. It is created on init/in...
Classy asked 18/2, 2021 at 12:6

1

I am trying to redirect from POST to GET. How to achieve this in FastAPI? What did you try? I have tried below with HTTP_302_FOUND, HTTP_303_SEE_OTHER as suggested from Issue#863#FastAPI: But Nothi...
Lumpkin asked 31/5, 2020 at 16:22

3

Solved

I have a resource Car which have some required fields and another optional ones. The Car was created with the following request: POST /cars { plate: "XYZ-A2C4", color: "blue, owner: "John" //O...
Godfrey asked 6/6, 2020 at 8:29

1

Solved

I need to get the http method like POST/PATCH/GET/etc from a joinPoint in an aspect. @Before("isRestController()") public void handlePost(JoinPoint point) { // do something to get for example "P...
Osy asked 14/1, 2020 at 22:56

6

Solved

I want to design my rest endpoint with the appropriate method for the following scenario. There is a group. Each group has a status. The group can be activated or inactivated by the admin. ...
Deadly asked 16/6, 2014 at 10:44

3

Solved

Curl offers a series of different http method calls that are prefixed with a X, but also offers the same methods without. I've tried both and I can't seem to figure out the difference. Can someone ...
Marandamarasca asked 14/12, 2011 at 1:1

1

I definitely didn't find clear way to do partial updates quite automatically (possible by comparing field by field object in databse and partial object). I saw some tracks like : here but I don'...
Stagecoach asked 16/2, 2018 at 10:31

1

Whenever I have to create a RESTful web service and the use case implies on getting data based on a set of search criteria, I always opted for a POST request with the parameters in the body instead...
Fabrianne asked 1/3, 2017 at 14:15

2

Solved

How could the PUT method be idempotent but not safe? Can someone explain it out? HTTP Method Idempotent Safe OPTIONS yes yes GET yes yes HEAD yes yes PUT yes no POST no no DELETE yes no PATCH no n...
Utile asked 24/6, 2019 at 4:17

2

I'm writing a webservice. Could any one explain these above methods and give me some example about them? Thank for your help.
Adelbert asked 20/11, 2014 at 2:24

0

After post a form, I use pushState/replaceState to manipulate the history. Then when refresh, Chrome will send GET request to the new url, but Safari will send POST. Is it a BUG in Safafi? Anyone h...
Erland asked 25/10, 2017 at 13:11

2

Solved

The Spring Security reference states: You can use multiple elements to define different access requirements for different sets of URLs, but they will be evaluated in the order listed and the f...
Newmarket asked 8/9, 2011 at 11:15

4

Solved

I know how HTTP methods work and for what they are designed, but I'm curious to know if some methods are faster than others when using just to get data. In the team I'm working on I noticed a lot o...
Worried asked 6/8, 2012 at 17:51

© 2022 - 2024 — McMap. All rights reserved.