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
0
votes
0 answers
Double HTTP call to server with different METHOD
My ex-colleague left some angular.js code to save some data to database via a HTTP POST.
factory.save=function(data){
var deferred=$q.defer();
$http({
url:'http://localhost/saveData',
method:"POST",
headers:…

Lee
- 2,874
- 3
- 27
- 51
0
votes
1 answer
Why is my route-enabled HttpGet method viewed as not supporting GET?
I have a pair of GET and POST Web API methods that work fine. I have another pair that seem to be set up the exact same way, and yet the GET method refuses to accept calls. All attempts to do so end with the msg, "The requested resource does not…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
Grails Dynamic Requestmaps with same URL values
Using Grails 2.4.3, Spring Security Core Plugin 2.0-RC4..
I have these requestmap entries in my database: (id, version, config_attribute, http_method, url)
- '1', '0', 'ROLE_ADMIN,ROLE_USER', 'GET', '/customer/**'
- '2', '0', 'ROLE_ADMIN', NULL,…

renz
- 1,072
- 3
- 11
- 21
0
votes
0 answers
Rest template delete not working
I tried invoking delete operation via RestTemplate's delete method but it's not working.
My Rest controller code for delete
@RequestMapping(method = RequestMethod.DELETE)
@ResponseBody
public DeleteResponse deleteRecords(
@RequestBody final…

bhuvanesh.l
- 57
- 1
- 5
0
votes
1 answer
How can I disable HTTP Methods for Tomcat 5.5.27
Please let me know how can I disable HTTP MEthods like OPTIONS, PUT, DELETE for the web server Apache Coyote HTTP 1.1 Connector (Tomcat 5.5.27)
sourabh
0
votes
1 answer
Passing OPTIONS when I should Pass PUT
I have the following configuration.
.config(config);
config.$inject = ["$httpProvider"];
function config($httpProvider) {
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common["X-Requested-With"];
//Reset…

thank_you
- 11,001
- 19
- 101
- 185
0
votes
1 answer
$_POST limitations in terms of number of fields
My php version is 5.4.16
I have a form with 2500 fields. That sounds weird, but actually I have
an excel sheet. I read the sheet and display all data in an HTML table
whose each cell has a hidden field so that I would be able to post all
the data…

Abdul Moiz
- 1,317
- 2
- 17
- 40
0
votes
0 answers
how to enable only GET & POST HTTP method in asp.net
I would like to have only GET & POST methods enabled in my application.
How I need to add the code for the same in web.config file ???

Fahad
- 1
- 3
0
votes
1 answer
Should watching/unwatching a forum use get or post http method in rails
I understand, in general, the differences between GET and POST, and common use cases. This question is specific to actions that would toggle the state of something. For example, if users have the ability to "watch" (or "unwatch") a forum to be…

Mangesh Tamhankar
- 178
- 8
0
votes
1 answer
Triggering GET method on form submit when POST method is specified
I have a form_tag to which I specify a POST method but each time I submit the form it is trying to use the GET method. Here is my form :
<%= form_tag (refund_path(subscription), :method => "post") do %>
<%= hidden_field_tag…

David Geismar
- 3,152
- 6
- 41
- 80
0
votes
0 answers
I'm just wondering does PutMethod and void doPut are same?
There is no clear explanation on the Internet. Please help me. I am suppose to upload a file using put method using spring Mvc. So I am looking for put method example but because each one is writing differently.

user4150758
- 384
- 4
- 17
0
votes
0 answers
How do I add the "Accept-Patch" header to my response to an OPTIONS request?
I am using Flask. I'm lost as to how to add an "Accept-Patch" response to any OPTIONS requests my server might get.
Would it be something like this (I tried this and while it worked, I'm not sure if this is allowed):
class MyViewMixin(MethodView):
…

user2986242
- 477
- 1
- 5
- 19
0
votes
2 answers
conflict in return type of the function + IOS
I'm building an iOS app and i'm using AFNetworking library to POST data to the server.
I have created a function to post data and calling this function in different classes in my app.
I am getting response of the request in the variable called …

Neelanshu
- 63
- 2
- 10
0
votes
1 answer
Is it possible to implement the CONNECT HTTP method with the Snap framework?
I'm looking into possibilities how to implement the CONNECT HTTP method that allows tunneling data over HTTP. However, I couldn't find a way how to implement bi-directional processing within one Snap request. The closest thing I found was…

Petr
- 62,528
- 13
- 153
- 317
0
votes
4 answers
What is the proper HTTP method for modifying a subordinate of the named resource?
I am creating a web client which has the purpose of modifying a set of database tables by adding records to them and removing records from them. It must do so atomically, so both deletion and insertion must be done with a single HTTP request.…

Colin P. Hill
- 422
- 4
- 18