http-method Questions
9
Solved
In RESTful style programming, we should use HTTP methods as our building blocks. I'm a little confused though which methods match up to the classic CRUD methods. GET/Read and DELETE/Delete are obvi...
Parsifal asked 1/6, 2011 at 14:57
1
Solved
Given a web page, I would like to detect:
Which elements in the page might trigger an http request?
For those
elements, I would like to know what is the http method (POST,
GET, etc.) of the relev...
Archducal asked 16/6, 2016 at 8:12
2
Solved
Is the HTTP verb PURGE idempotent?
If I send the same PURGE request twice will I receive 200 the second time?
I have a microservice that invalidates a Varnish cache before publishing a message in...
Circumnutate asked 25/2, 2016 at 16:14
2
Solved
I'm using Silex framework for mocking REST server. I need to create uri for OPTIONS http method, but Application class offers only methods for PUT, GET, POST and DELETE. Is it possible to add and u...
Summerwood asked 29/11, 2012 at 9:17
2
My initial purpose was to verify the HTTP chunked transfer. But accidentally found this inconsistency.
The API is designed to return a file to client. I use HEAD and GET methods against it. Differ...
Kentigerma asked 15/12, 2015 at 13:12
3
Solved
How can I detect HTTP method in CodeIgniter controller class?
Edited:
Is there any other way than using $_SERVER['REQUEST_METHOD'] in CodeIgniter?
Bread asked 25/6, 2012 at 13:6
1
Solved
Fiddler is capturing a lot of HTTP OPTIONS calls, which I have no interest in.
Is it possible to ignore these and only see GET and POST?
Myrmeco asked 19/1, 2015 at 11:46
2
Solved
I'm using the HttpClient and I need to set a non-standard type for the HttpMethod. Where using HttpWebRequest only expects a string, HttpClient expects an HttpMethod. Enumerating the available valu...
Switchboard asked 25/10, 2013 at 17:49
3
Solved
I'm trying to perform a PURGE with HttpUrlConnection like this:
private void callVarnish(URL url) {
HttpURLConnection conn = null;
try {
conn = (HttpURLConnection) url.openConnection();
conn....
Compulsive asked 18/10, 2012 at 7:36
3
I am developing REST WCF service and As theoretically i know when to opt for what purpose.
GET to get the resource
PUT to update
POST to Insert
DELETE to delete
But what is the disadvantage if ...
Wrote asked 23/8, 2013 at 5:39
5
Solved
Thinking about REST, it's relatively easy to map HTTP methods to CRUD actions: POST for create, GET for read, etc. But what about "fire and forget" actions? What HTTP method would best represent a ...
Propitiate asked 25/7, 2010 at 18:22
1
Solved
Problem is that the Java HTTPUrlConnection does not support HTTP.PATCH.
So I found a guide that did an implementation of delete with with a body. But I'm receiving HTTP/1.1 400 Bad Request
I arri...
Femineity asked 7/3, 2014 at 14:21
1
Solved
I was reading the spec on CORS requests, and I found this about preflight requests:
These are requests to a non same origin URL with an HTTP request
method other than GET that first need to be ...
Pandanus asked 28/2, 2014 at 23:23
1
Solved
For example, HttpServletResponse has the HTTP status codes as constants like
public static final int SC_OK = 200;
public static final int SC_CREATED = 201;
public static final int SC_BAD_REQ...
Dostie asked 25/9, 2013 at 15:7
1
Solved
I am trying to implement a Delete method on a Web API controller. However, I always get a 404 - Not Found. At this point, I have GET, POST and PUT methods that are working just fine. I've been read...
Marcellusmarcelo asked 2/7, 2013 at 13:29
8
Solved
I'm implementing a prototype of a RESTful API using ASP.NET MVC and apart from the odd bug here and there I've achieve all the requirements I set out at the start, apart from callers being able to ...
Gangling asked 21/1, 2009 at 23:41
2
In my site users can download their files. But files are generated by using PHP. So what's HTTP method should I use for sending request for download as file attachment? GET or POST?
Malaco asked 3/5, 2013 at 9:3
2
Solved
I'm building a simple PHP web service using Azure Web Sites and I'm having trouble getting it to support PUT and DELETE http methods. Assuming it's something that'll have to go into the web.config ...
Sitwell asked 9/4, 2013 at 17:20
2
Solved
I'm struggeling getting the Blueimp jQuery File-Uploader working on MVC 3 with IIS 7.5 on Windows Server 2008 R2. I'm using an HttpHandler to handle the Upload, which get's called. But the HttpHand...
Waddington asked 19/2, 2012 at 18:56
3
Solved
I joined a project which uses spring framework and all the calls are made by ajax requests and the redirection after success is defined in the view itself and passed to the ajax JS function through...
Scutum asked 27/10, 2012 at 15:13
2
Solved
I have a resource that represents a collection of tags:
/users/{username}/tags
An API client should be able to add a set of tags to this collection in a single HTTP request. I thought about how ...
Appoint asked 1/6, 2012 at 18:16
1
Solved
The verbs are pretty straightforward for CRUD actions.
What would be the right HTTP verb for only performing an action, something
like an upvote?
Maybe this speaks more to data modeling? Is ...
Pettway asked 15/3, 2012 at 23:50
1
Solved
I am working on a web application using Flask. One of the views is supposed to accept uploaded files through PUT requests, however I only can get POST requests with $ curl -F upload=@filename...
Override asked 2/3, 2012 at 12:41
1
Solved
I'd like to use the appropriate HTTP method when possible. In this case, when a button is clicked to delete something, I want to fire the controller action with the attribute [HttpDelete]. However,...
Disadvantage asked 12/1, 2012 at 12:58
3
Today's browsers (or HTML < 5) only support HTTP GET and POST, but to communicate RESTful one need PUT and DELETE too. If the workaround should not be to use Ajax, something like a hidden form f...
Foozle asked 14/5, 2010 at 8:59
© 2022 - 2024 — McMap. All rights reserved.