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.
Questions tagged [http-method]
355 questions
22
votes
2 answers
Explain and example about 'get', 'delete', 'post', 'put', 'options', 'patch', 'head' method?
I'm writing a webservice. Could any one explain these above methods and give me some example about them? Thank for your help.

Dao Tam
- 503
- 1
- 3
- 13
20
votes
2 answers
Using Spring Security, how can I use HTTP methods (e.g. GET, PUT, POST) to distingush security for particular URL patterns?
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 first match will be used. So you
must put the most…

kamaci
- 72,915
- 69
- 228
- 366
19
votes
1 answer
How to filter Fiddler traffic by request method?
Fiddler is capturing a lot of HTTP OPTIONS calls, which I have no interest in.
Is it possible to ignore these and only see GET and POST?

Buh Buh
- 7,443
- 1
- 34
- 61
18
votes
2 answers
HTTP method names: upper or lower case?
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 an HTTP method name in HTTP or REST requests. The…

VLostBoy
- 4,104
- 2
- 23
- 31
16
votes
2 answers
Django. ''The `actions` argument must be provided when calling `.as_view()` '' when I try to allow DELETE, PUT, ETC
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…

Tyomik_mnemonic
- 786
- 3
- 9
- 31
16
votes
2 answers
Which HTTP method to use for file downloading?
In my site users can download their files. But files are generated by using PHP. So what's HTTP method should I use for sending request for download as file attachment? GET or POST?

Erik
- 14,060
- 49
- 132
- 218
15
votes
1 answer
How to do a Post/Redirect/Get (PRG) in FastAPI?
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 Nothing Works!
It always shows INFO: "GET / HTTP/1.1"…

mrx
- 364
- 1
- 3
- 9
15
votes
1 answer
What are practical use-cases for the HTTP verb REPORT and why is it neglected over time?
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 of a GET request for all the obvious reasons. I've…

Nico Van Belle
- 4,911
- 4
- 32
- 49
15
votes
1 answer
HTML elements that could trigger an HTTP request
Given a web page, I would like to detect:
Which elements in the page might trigger an http request?
For those
elements, I would like to know what is the http method (POST,
GET, etc.) of the relevant request.
I'm assuming this is a tough question..…

Mugen
- 8,301
- 10
- 62
- 140
15
votes
1 answer
Why does a cross-origin HEAD request need a preflight check?
I was reading the spec on CORS requests, and I found this about preflight requests:
These are requests to a non same origin URL with an HTTP request
method other than GET that first need to be authorized using either a
preflight result cache…

Paul Draper
- 78,542
- 46
- 206
- 285
14
votes
1 answer
HTTP method for small actions such as a (up)vote
The verbs are pretty straightforward for CRUD actions.
What would be the right HTTP verb for only performing an action, something
like an upvote?
Maybe this speaks more to data modeling? Is an upvote a resource or just an attribute? I'm unsure…

Jonathan Allard
- 18,429
- 11
- 54
- 75
13
votes
2 answers
Why Tomcat returns different headers for HEAD and GET requests to my RESTful API?
My initial purpose was to verify the HTTP chunked transfer. But accidentally found this inconsistency.
The API is designed to return a file to client. I use HEAD and GET methods against it. Different headers are returned.
For GET, I get these…

smwikipedia
- 61,609
- 92
- 309
- 482
10
votes
1 answer
Can Spring MVC handle requests from HTML forms other than POST and GET?
Spring 3 MVC supports all 4 of RESTful methods: GET, POST, PUT and DELETE. But does its view technology support them on forms? If not, what is the real use of method attribute in form:form tag?
I tried to use PUT method on the form:

ffriend
- 27,562
- 13
- 91
- 132
10
votes
2 answers
Fine Grained rest HTTP verbs browser support
Is there any data regarding how browsers actually support rest http verbs (especially PUT, DELETE). This question is mostly motivated by the fact that many sources (such as this stackoverflow answer) inform that most browsers don't suport PUT and…

Daniel Ribeiro
- 3,110
- 3
- 23
- 49
10
votes
1 answer
ASP.NET Web API - 404 On Delete
I am trying to implement a Delete method on a Web API controller. However, I always get a 404 - Not Found. At this point, I have GET, POST and PUT methods that are working just fine. I've been reading a handful of the other SO posts about the same…

Travis Parks
- 8,435
- 12
- 52
- 85