Questions tagged [http-verbs]

HTTP Verbs represent the request methods that are recognized as part of the Hypertext Transfer Protocol. These include but are not limited to POST, GET , PUT and DELETE.

219 questions
3
votes
3 answers

Which HTTP Verb for Read endpoint with request body

We are exposing an endpoint that will return a large data set. There is a background process which runs once per hour and generates the data. The data will be different after each run. The requester can ask for either the full set of data or a…
JHoward
  • 31
  • 3
3
votes
0 answers

Why does Laravel not allow access to get parameters with a post request?

I have been checking out the Laravel source code a bit and I found this bit of code: return $this->getRealMethod() == 'GET' ? $this->query : $this->request; From: https://github.com/illuminate/http/blob/master/Request.php#L668 This basically…
Stephan-v
  • 19,255
  • 31
  • 115
  • 201
3
votes
4 answers

REST: What is difference between GET and DELETE, when we can implement same functionality in both?

In REST Web Services we have GET AND DELETE methods. Generally we read GET is to get data from server like "getCountriesName" and DELETE is used to call resource which deletes particular object like "removeOrganization". But if i implements DELETE…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
3
votes
2 answers

Updating many-to-many association with REST

I have three different models as User, PermissionSet and Permission. These models represent their SQL tables respectively. User has a many-to-one association PermissionSet, a user may have one PermissionSet or none. PermissionSets would be owned by…
Buğra Ekuklu
  • 3,049
  • 2
  • 17
  • 28
3
votes
1 answer

Routing in Symfony 1.4: Is there a way to allow sf_method = OPTIONS for preflight HTTP requests

you all might know that browsers do preflighted HTTP requests in some cases: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests My web application is still on Symfony1. I want to implement a RESTful service…
3
votes
5 answers

Are REST API's really RESTful?

I'm new to this game so I might be misunderstanding things. Actually, if someone tells me that I'm misunderstanding things, it will be a favor. Maybe this person will be considerate enough to show me the right path. But... One of the "guidelines" or…
Dentra Andres
  • 371
  • 1
  • 7
  • 18
3
votes
2 answers

How to request an API using the HTTP LINK verb with RESTSharp?

I am currently developing a Windows Phone 8 app, consuming REST API and I'm using the well known library "RESTSharp" to request the API services. My problem is that the REST API is exposing a method that requires to use the HTTP LINK verb and I was…
Invvard
  • 1,497
  • 2
  • 15
  • 20
3
votes
1 answer

POST Requests seen as GET by server

Got a really strange problem here. When sending post requests to my PHP script $_SERVER['REQUEST_METHOD'] returns "GET" instead of "POST". It works fine for every other REST method so this is what I get GET -> GET POST-> GET PUT -> PUT DELETE…
3
votes
2 answers

Passing Oauth2 token via query parameters when using PUT http verb?

I am using the league\oauth2-server and have it working perfectly when I am using the GET http verb. However when doing a PUT request I am getting hit with Call to undefined method League\OAuth2\Server\Util\Request::PUT() The specific code that is…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
3
votes
1 answer

Abort any POST operation in IIS

My site is getting DOS attack with POST VERB, my site is a static site and I am trying to stop any POST action on the home page. I had the URL Rewrite installed on my server, so I am trying to write rule to abort POST on homepage, but it is not…
Tippu
  • 1,191
  • 4
  • 16
  • 36
3
votes
1 answer

Issuing HEAD request with IRestClient in ServiceStack

The context: I've built a REST service which handles 'Profile' objects. Each profile is required to have a unique name. One of the operations that clients will need to do for validation purposes is check to make sure that a profile with the given…
Jeff Smith
  • 353
  • 2
  • 8
3
votes
2 answers

How can I enable DELETE verb in IIS7?

I have a do a call via AJAX and by Delete verb method, but the response from the IIS server is 405 Method Not Allowed. I have read about it. Apparently is all ok, I have no webDAV installed. I tried to define handlers, modules etc... and I can't…
Tekno
  • 193
  • 1
  • 1
  • 11
2
votes
1 answer

Forms Authentication. Get allowed verb for a role specified in web.config

I've specified verbs for roles in web.config. This works fine, the role observer is redirected to login page if the role tries to post in page Test.aspx. Example:
2
votes
1 answer

How to Block Http Methods in ASP.NET

We have a requirement of disabling the HTTP methods besides POST, GET and Head in an ASPNET Core Web application due as a part of security fixes. How can we disable the HTTP OPTIONS method in ASP.Net core API? Allowed 3 methods which are POST,GET…
2
votes
3 answers

How to make HTTP PUT and DELETE work in Silverlight 4

I would prefer to avoid getting into a debate about whether HTTP verbs PUT and DELETE are appropriate or obsolete and focus on the question of actually making Silverlight work when "forced" to use these verbs. I am trying to create a Silverlight 4…