Linked Questions
37 questions linked to/from HTTP POST with URL query parameters -- good idea or not?
6458 votes
42 answers
3.7m views
What is the difference between POST and PUT in HTTP?
Background Information Analysis: According to RFC 2616, § 9.5, POST is used to create a resource: The POST method is used to request that the origin server accept the entity enclosed in the request ...
1752 votes
10 answers
2.9m views
How are parameters sent in an HTTP POST request?
In an HTTP GET request, parameters are sent as a query string: http://example.com/page?parameter=value&also=another In an HTTP POST request, the parameters are not sent along with the URI. Where ...
121 votes
2 answers
441k views
Flask example with POST
Suppose the following route which accesses an xml file to replace the text of a specific tag with a given xpath (?key=): @app.route('/resource', methods = ['POST']) def update_text(): # CODE Then,...
45 votes
4 answers
71k views
What happens if the action field in a <form> has parameters?
Is there a well-supported, common behavior that I can expect if I do something like this in HTML: <form method="get" action="/somePage.html?param1=foo¶m2=foo"> <input name="param2"&...
38 votes
3 answers
25k views
Mixing GET with POST - is it a bad practice?
Is it a bad practice to mix GET and POST? (note this is in PHP) e.g. <form action="delete.php?l=en&r=homepage" method="post"> <!-- post fields here --> </form>
65 votes
3 answers
33k views
What are best practices for activation/registration/password-reset links in emails with nonce
Applications send out emails to verify user accounts or reset a password. I believe the following is the way it should be and I am asking for references and implementations. If an application has to ...
15 votes
5 answers
19k views
Rails functional test: sending URL query parameters in POST request
I'm sending a POST request in a Rails functional test like this: post :create, collection: { name: 'New Collection' } collection gets sent as JSON-encoded form data, as expected. What I can't figure ...
23 votes
2 answers
97k views
HTTP post: url parameters and form data
When I do http POST request via Web form, Is there any difference(practically or theoretically) between parameters specified in the URL and parameters passed with form on the server side? Can I do ...
10 votes
4 answers
14k views
Why is using a HTTP GET to update state on the server in a RESTful call incorrect?
OK, I know already all the reasons on paper why I should not use a HTTP GET when making a RESTful call to update the state of something on the server. Thus returning possibly different data each time. ...
9 votes
5 answers
11k views
Passing params in the URL when using HTTP POST
Is it allowable to pass parameters to a web page through the URL (after the question mark) when using the POST method? I know that it works (most of the time, anyways) because my company's webapp ...
6 votes
1 answer
20k views
REST API, when to use @PathParam, @QueryParam, @RequestBody, and/or @RequestHeader
I have been trying to find an answer if there is some sort of standard in regards to when/when not to use the above methods of passing information to a REST call. I have been looking everywhere but ...
7 votes
2 answers
16k views
Is using a query string in POST request a bad practice?
There is a system that sends POST requests from frontend to backend. These POST requests do not use the body to pass the data to the server; instead, it uses query strings in the URL params. These ...
3 votes
3 answers
13k views
Testing a service function POST response with Jasmine
I'm not entirely sure how to do this but I have a endpoint URL which is a POST request for login authentication. When you add a request payload, you will get either a successful login credential or an ...
3 votes
1 answer
15k views
POST request only with http_build_query in php
I need to create a POST request with http_build_query. Following are my codes: $uri_args = array ( 'name' => 'Jack', 'surname' => 'Jackson', 'username' => 'jackson12', ...
3 votes
8 answers
5k views
HttpWebRequest with POST and GET at the same time
I need to redirect a user to http://www.someurl.com?id=2 using a POST method. Is it possible? If yes, then how? Right now I have following and it forwards the POST data properly, but it removes the ?...