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
4
votes
2 answers
Custom permissions on viewset
Im trying to find a way to create custom permissions on a viewset.
Im want to implement somthing like this :
class ActivityViewSet(viewsets.ModelViewSet):
queryset = Activity.objects.all()
serializer_class = ActivitySerializer
if…

idik
- 872
- 2
- 10
- 19
4
votes
2 answers
How to pass authentication details in a HTTP DELETE request?
I'm trying to create a REST API following the HTTP method semantics but I got stuck with the DELETE method.
In my use case, the service is behind a gateway that authenticates the user. This service uses a SSO token that then is used to authenticate…

Juan Vega
- 1,030
- 1
- 16
- 32
4
votes
0 answers
How to exclude specific HTTP method from `javax.servlet.Filter`?
I would like to exclude HTTP OPTION requests from my javax.servlet.Filter. How can I achieve it?
Filter registration:
@Bean
public FilterRegistrationBean filterRegistrationBean() {
FilterRegistrationBean registrationBean = new…

jnemecz
- 3,171
- 8
- 41
- 77
4
votes
3 answers
Security: Brute-forcing GET-requests by URL?
what should my concerns be if I we're about to make an application that handles logins the following way:
http://api.myApp.example/printSomething/username/password/
How insecure is it compared to a normal login page that are based on POSTed user…

Industrial
- 41,400
- 69
- 194
- 289
4
votes
1 answer
Should a logoff request be designed as GET or POST?
I'm implementing some rest services. The first service I have to call according to the SDK is a http POST request to logon. The input are my user's credentials, and the output is my session id.
To logout, I also have to make a http POST request, but…

user1884155
- 3,616
- 4
- 55
- 108
4
votes
1 answer
How to map different HTTP methods on the same url to different controllers?
I have my API for a small part of my application split over two controllers, because of (external) requirements on the casing of JSON data in the API (some requests should use camelCasing, while others should use PascalCasing).
Now, I have a url…

Tomas Aschan
- 58,548
- 56
- 243
- 402
4
votes
1 answer
Using grails spring security to secure URLs with http method
I'm using spring security 1.2.7.3, and I want to secure URLs with http method, in other words I want something like this in my config.groovy:
grails.plugins.springsecurity.interceptUrlMap = [
'/api/person/**': ['ROLE_ADMIN'], //IF HTTP "POST"
…

ux11
- 158
- 2
- 13
4
votes
1 answer
PhoneGap and different HTTP method requests to a RESTful API
I'm building a mobile app with PhoneGap and I need it to fit into my services RESTful api.
Basically if I want to retrieve/delete/update/check/(nonidempotent action) the resource, issuing a GET/DELETE/PUT/HEAD/POST request via jQuery's ajax method…

Bill Riley
- 97
- 1
- 9
4
votes
1 answer
Monotouch/iPhone - Call to HttpWebRequest.GetRequestStream() connects to server when HTTP Method is DELETE
My Scenario:
I am using Monotouch for iOS to create an iPhone app. I am calling ASP.NEt MVC 4 Web API based http services to login/log off. For Login, i use the POST webmethod and all's well. For Logoff, i am calling the Delete web method. I want to…

AMSI Dev
- 61
- 5
3
votes
1 answer
searching a solution to get/post DOUBLE DATA SUBMISSION
Possible Duplicate:
Avoiding form resubmit in php when pressing f5
I need help on how to prevent the DOUBLE DATA SUBMISSION to mysql database.
This usually occurs when after the submit, user hits REFRESH button.
Whenever I send data using html…

Suhrob Samiev
- 1,528
- 1
- 25
- 57
3
votes
1 answer
Login user via GET (basic auth header) or POST
I've been doing some HTTP methods and header research recently if we should use GET with basic authorization instead of POST when submitting?
HTTP Methods
The GET method requests a representation of the specified resource. Requests using GET should…

iProgram
- 6,057
- 9
- 39
- 80
3
votes
2 answers
AWS lambda get http method with Python
I am having difficulty getting http method used in a call to aws lambda via api gateway. I created a REST api in api gateway, which makes a call to a lambda function. In the lambda function I want to have two functions, one for POST requests and one…

davidb
- 1,503
- 4
- 30
- 49
3
votes
1 answer
spring REST RequestMethod how to Map a http LOCK and UNLOCK RequestMapping?
seems that this is the same as Custom HTTP Methods in Spring MVC
I need to implement a call with http method LOCK and UNLOCK.
currently spring's requestMethod only supports
public enum RequestMethod {
GET, HEAD, POST, PUT, PATCH, DELETE,…

Dirk Hoffmann
- 1,444
- 17
- 35
3
votes
1 answer
param identified as a string rather than a file
In my view file submit.html.erb, I decided to use the

Tony Marshle
- 129
- 1
- 2
- 10
3
votes
0 answers
Safari send POST request when refresh after pushState/replaceState
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 had met it before?

Jared Zhou
- 51
- 3