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
0 answers

Allow only GET, POST and HEAD HTTP methods

I have a java application which gone through security audit. The auditor asked me to allow only GET, POST and HEAD HTTP methods. How to do that?
0
votes
1 answer

TypeScript - Send optional field on POST only when there is value

I am using Formik, in my React application. I have a simple form with 3 fields. I am doing 2 operations with that form. Add/Edit Resources. My Problem is that one field is optional. Meaning I should never send it, if its value is null. Currently, I…
user10104341
0
votes
1 answer

How to use payload with method get?

I'm trying to learn how to query for data from a local government data site (hoping I can teach my math students to do some data analysis). I'm hoping to get the data and insert them into Google Sheets. The following is a sample provided by the…
0
votes
1 answer

Would it be appropriate to semi-update request using HTTP PUT?

Assuming I have the following json for update using PATCH. { "person" : { "name" : "ABC" "sex" : "M" }, "contact" : { "mobileno" : "12341234" } } So if this user can only update contact and the above json is…
shadow
  • 800
  • 2
  • 16
  • 33
0
votes
1 answer

WSO2 - Unsupported Request Method

I'm setting up wso2 api manager. The issue is when i request a rest API from wso2 to backend, the request is always GET method irrespective of wso2's request method. The wso2 server hits the backend as GET method even if my requested API is POST…
0
votes
1 answer

How to disallow TRACE http method in spring boot actuator

I have a server on port = 8078 and spring boot actuator on port = 8081.I want to disable TRACE Http method on both. I already create customizer bean(see below). But with this bean I disallowed only Trace on 8078. It's looks like actuator doesn't…
Pugovka
  • 1
  • 1
0
votes
0 answers

How to restrict HTTP OPTIONS method on port 61614 in activemq?

We are using activemq 5.14 in our application and the recent Internal Vulnerability Assessment shows that http-options-method-enabled on port 61614. Below is the entry from activemq.xml.
user2181374
0
votes
1 answer

Moving project online broke laravel controller

That's my route: Route::group(['prefix' => 'admin', 'middleware'=>['auth','role:admin']], function () { Route::get('/co2index', 'UserController@adminCo2Index'); } This is the controller method that fails:
JahStation
  • 893
  • 3
  • 15
  • 35
0
votes
1 answer

superagent Access-Control-Allow-Origin error

I'm using superagent v3.8.3 I got Access-Control-Allow-Origin CORS error. import request from 'superagent' request( APIS.IAMPORT.GET_TOKEN.method, APIS.IAMPORT.GET_TOKEN.path() ) .withCredentials() .send({ …
kkangil
  • 1,616
  • 3
  • 13
  • 27
0
votes
1 answer

Writing when cases in kotlin

i'm relatively new to kotlin and im loving it. I'm trying to re-write an when function, but I'm having trouble even figuring out what to google. This was my starting code: fun HttpMethod.isWrite() = when (this) { HttpMethod.DELETE ->…
The Dude
  • 1,088
  • 7
  • 16
  • 30
0
votes
1 answer

Does the post method all the function to display in Flask

I am writing these two following function in my code to be able to process incoming messages and respond back to the user on Messenger via a bot: @app.route('/', methods=['post']) def webhook(): # endpoint for processing incoming messaging…
0
votes
2 answers

what is the correct way to pass additional parameter to HTTP @DELETE method

I have to build JAX-RS web service, which will delete client from client resource, plus it should have external uuid in request. the implementation of @DELETE method without externalId is very simple /myService/client/1 @DELETE …
JiboOne
  • 1,438
  • 4
  • 22
  • 55
0
votes
1 answer

Why someone calls post() method inside get() method in Servlets?

why we call post() method inside get() method in servlets? public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
Shan
  • 15
  • 1
  • 8
0
votes
0 answers

What HTTP Request Method to use when addressing a service?

I've built an API which basically forwards HTTP-Requests to a service of mine. The service calls an internal function and sends the answer back. Both, request and answer, have a body with information. The problem is that i dont now which HTTP Method…
NicO
  • 591
  • 2
  • 8
  • 21
0
votes
3 answers

PUT request not appearing in allowed requests using ModelViewSet

I'm not able make put request using ModelViewSet like in the documentation. My views, serializers are as below class PostsViewSet(viewsets.ModelViewSet): queryset = PostsModel.objects.all() serializer_class = PostsSerializer class…