Linked Questions
14 questions linked to/from Difference between HTTP redirect codes
3679
votes
22
answers
1.7m
views
403 Forbidden vs 401 Unauthorized HTTP responses
For a web page that exists, but for which a user does not have sufficient privileges (they are not logged in or do not belong to the proper user group), what is the proper HTTP response to serve?
401 ...
59
votes
5
answers
25k
views
After a POST, should I do a 302 or a 303 redirect?
A common scenario for a web app is to redirect after a POST that modifies the database. Like redirecting to the newly created database object after the user creates it.
It seems like most web apps ...
51
votes
6
answers
50k
views
How long is a 302 redirect saved in browser?
Due to a misconfiguration of our webserver the main domain sent a 302 redirect to a new location. We fixed that issue. When emptying the browser cache everything works fine now.
For the "normal" ...
36
votes
7
answers
37k
views
Is HTTP/1.0 still in use?
Say one is to write an HTTP server/client, how important is it to support HTTP/1.0? Is it still used anywhere nowdays?
Edit: I'm less concerned with the usefullness/importance of HTTP/1.0, rather the ...
23
votes
4
answers
12k
views
Devise routing: is there a way to remove a route from Rails.application.routes?
devise_for creates routes including a DELETE route, which we want to remove, and devise_for doesn't support an :except or :only option.
How can I remove a route from Rails.application.routes? Either ...
13
votes
3
answers
22k
views
Why POST redirects to GET and PUT redirects to PUT?
I am using express 4.13.3 (latest) and following code:
var express = require('express')
var app = express()
app.get('/test', function (req, res, next) {
res.send('hello!')
})
app.post('/test', ...
11
votes
1
answer
3k
views
Why does Django's HTTPResponseRedirect use the same HTTP method for PUT but not POST?
I have a Django project where I'm using a view to handle different HTTP methods. The POST handled the creation of an object and then redirected to the same view as a GET (or so I thought), using ...
2
votes
2
answers
4k
views
How can I avoid "Are you sure you want to send a form again?"?
In my app
user can access to the community page just like this
http://example.com/communities?tag=lovely
then if I try to go back to the previous page. I always get this message
Are you sure you ...
0
votes
1
answer
1k
views
HTTP temporary redirect - should I use 302 or one of 303 and 307
Bob Aman's answer on Difference between HTTP redirect codes (Jan 21 '11) says:
I personally recommend avoiding 302 if you have the choice. Many
clients do not follow the spec when they encounter a ...
-1
votes
1
answer
590
views
Redirect from one page to another not working
I am trying to Insert the scan results using the Scan func and once done I want to redirect to show results which are nothing but a select query to the inserts done ever. Both functions are working ...
1
vote
1
answer
628
views
What modern browsers do not change verb on HTTP 302?
All browsers (and all libraries) that I know of, upon receiving a 302 Found in response to a POST will treat it as a 303 See Other and make a simple GET request to the Location, rather than ...
0
votes
2
answers
315
views
One URL: Two Different Redirects
I have a URL that once handled GET and POST requests. I want it to now only handle POST requests, and do a redirect for other requests. Based on this question, it appears that I should use a 303 after ...
1
vote
2
answers
173
views
How to get new URL when the input URL changes?
Consider this URL http://dx.doi.org/10.1006/jpdc.1997.1383. When I put it in the browser address bar and press enter, the URL will change into http://www.sciencedirect.com/science/article/pii/...
0
votes
1
answer
95
views
Deleting an element breaks my app and sends an error with an empty object, using Mongo/Mongoose/NodeJS/Express
I am a student who is currently coding a final project for a NodeJS course. I ran into a problem and cannot seem to find any solutions googling it. I am hoping to find some guidance here. Thank you ...