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

Disabling http methods in web.xml of application

I am trying to disable http methods like PUT, DELETE, TRACE, OPTIONS and PROPFIND. I have made the few changes in my web.xml file of my application but the methods are still enabled. Following is the code snippet:
Coder200
  • 18
  • 2
0
votes
2 answers

How to make a PUT request with Apache Olingo?

I am trying to transfer an entity via a HTTP PUT request using following code. public ClientEntity createEntity(URI absoluteUri, ClientEntity ce) { ODataEntityCreateRequest request = client …
0
votes
1 answer

Angular Js 405 DELETE Method Not Alowed

I have the following code in Angular DepartmentController.prototype.delete = function (id) { this.departmentResource.delete(id); }; The error is DELETE http://localhost:64956//api/departments 405 (Method Not Allowed) My department factory is…
joesid
  • 671
  • 1
  • 10
  • 21
0
votes
1 answer

PUT or POST if the operation looks idempotent

I want to create an application which is similar to this - A client (identified by user id) sends a REST API call to the server. The server queries database to check if this user has a badge before. If it has, it doesn't do anything. Otherwise, it…
Neeraj Gupta
  • 765
  • 1
  • 10
  • 18
0
votes
1 answer

REST API problems with PUT/PATCH/DELETE and HTTP headers

I know, that some web-clients can't use PUT/PATCH/DELETE http methods. I heard about clients, which uses Flash, and about simple http forms. Have you had such problems? With which web-frameworks on client side? Should I expect some problems with…
0
votes
0 answers

Comparign a String to dataUsingEncoding(NSUTF8StringEncoding) in Swift

I was wondering why i can not compare a string that I pass through request.HTTPBody = post.String.dataUsingEncoding(NSUTF8StringEncoding) to the php server to a string of type variable. I pass a String through request.HTTPMethod = "POST" and I want…
Luke
  • 407
  • 2
  • 10
  • 22
0
votes
1 answer

Http POST call returns Method not allowed error in Mule because http method is being set to OPTIONS

I have a mule 3.7.3 workflow which accepts http POST requests and is being called from a UI application written in angular. When the http POST call is made to Mule, it fails with method not allowed because the message is being sent with the http…
user3165854
  • 1,505
  • 8
  • 48
  • 100
0
votes
1 answer

Application Request Routing (ARR) with HTTP Methods and Mule

I'm trying to redirect messages internet URL with the Application Request Routing (ARR), the component to the IIS in Windows Server. I want to redirect that messages by the HTTP Method. Example: HTTP POST:…
gtx911
  • 1,189
  • 4
  • 25
  • 46
0
votes
2 answers

Using Laravel requests for GET methods?

I've only used Laravel's Requests for POST methods. In the documentation, all examples use POST methods, but the class does offer a method to check which HTTP verb is used. Is it advisable to use a Request when the method is GET if there is a need…
Shane
  • 1,190
  • 15
  • 28
0
votes
2 answers

Does the OWASP ASVS standard forbid the use of non-standard HTTP methods?

In owasp 2014 (https://www.owasp.org/images/5/58/OWASP_ASVS_Version_2.pdf) we have: V 11.2 (page 31): Verify that the application accepts only a defined set of HTTP request methods, such as GET and POST and unused methods are explicitly…
Mahmoud Moravej
  • 8,705
  • 6
  • 46
  • 65
0
votes
1 answer

Are all elements in a POST requests body mandatory?

If a POST request requires that i send four data elements in the body, like: { "name":abc, "surname":xyz, "contact_no":1234, "address":random_value } What will happen if I miss out some of the elements, for example if I call the web service…
user5936834
0
votes
2 answers

To PUT, POST or PATCH?

I have a REST Service that can be used to control databases, I want to allow calls to Stop & Start the databases, but was wondering what would be the correct Method? By calling the Stop or Start Operation I am changing the state of the resource so…
sbarnby71
  • 584
  • 4
  • 7
  • 21
0
votes
0 answers

Recommendation on a Restful client

I'm developing a web service which has some non standard http methods (CREATE, BEGIN, NEXT). Up until now I've been using the chrome plugin 'advanced rest client'. They've just updated it and removed the functionality to select custom method names,…
Andy
  • 3,228
  • 8
  • 40
  • 65
0
votes
1 answer

Default Http method used by struts2 for processing request.I am always getting GET

Whenever i am intercepting request in struts2 interceptor getting httpmethod as GET. My requirement is to disable submission with GET httpmethod. please suggest.
0
votes
1 answer

Http methods conventions - POST for getting data, GET for verifying email

Sometimes it may need query data which can exceed GET length limit so I am considering to use POST. Query does change anything, just returns data according to the parameters. I am using GET for link with token which is sent as email for user. It…
Justinas Jakavonis
  • 8,220
  • 10
  • 69
  • 114