Skip to main content

4.6.1. Redirection

4.6.1. Redirection

The 3xx series of status codes indicate redirection. When a server uses one of these status codes, it includes a Location header field indicating where the client should redirect its request.

Applications using HTTP need to be careful about redirection because clients may or may not automatically follow redirects, depending on the method and status code used.

For example, many clients will automatically follow a 301 Moved Permanently or 302 Found redirect for a GET request but won't automatically follow redirects for POST requests without user intervention.

Applications SHOULD specify what clients are expected to do when they receive a redirect. For example:

Clients SHOULD follow redirects.

Clients MUST NOT automatically follow redirects; user confirmation is required.

See [HTTP] Section 15.4 for more information about redirect status codes and their semantics.