Linked Questions

3679 votes
22 answers
1.7m views

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 ...
VirtuosiMedia's user avatar
59 votes
5 answers
25k views

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 ...
Kyle's user avatar
  • 22.1k
51 votes
6 answers
50k views

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" ...
Ole Albers's user avatar
  • 9,399
36 votes
7 answers
37k views

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 ...
cvb's user avatar
  • 4,609
23 votes
4 answers
12k views

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 ...
ipd's user avatar
  • 5,714
13 votes
3 answers
22k views

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', ...
user606521's user avatar
  • 15.7k
11 votes
1 answer
3k views

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 ...
hanleyhansen's user avatar
  • 6,457
2 votes
2 answers
4k views

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 ...
MKK's user avatar
  • 2,753
0 votes
1 answer
1k views

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 ...
Ahmad Ismail's user avatar
  • 14.5k
-1 votes
1 answer
590 views

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 ...
Neo's user avatar
  • 13
1 vote
1 answer
628 views

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 ...
Matthew Wilkes's user avatar
0 votes
2 answers
315 views

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 ...
Sonny's user avatar
  • 8,366
1 vote
2 answers
173 views

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/...
user3049183's user avatar
0 votes
1 answer
95 views

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 ...
Lemuel's user avatar
  • 3