B.3 Redirect Status Codes

The status codes from 300 to 399 are intended to redirect the client to the right URL at which to make the request. These can be problematic in WebDAV. Although all clients are supposed to support redirects, they may choose not to follow redirects, and this has caused interoperability issues.

B.3.1 300 Multiple Choices

300 Multiple Choices indicates that there are actually several related entities or resources available at the requested URL. The response includes a body with information on how to pick one of those entities. This status code is not commonly used.

Defined in HTTP/1.1.

B.3.2 301 Moved Permanently

301 Moved Permanently is a basic redirect response for a single URL to a single new URL. This is used commonly on the Web, when a popular Web page must move to a new server address (e.g., to a server with more power to handle all the requests). It can also theoretically be used in response to WebDAV methods. The client will frequently just repeat the same request to the new URL.

Defined in HTTP/1.1.

B.3.3 302 Found or 302 Moved Temporarily

302 Found is also known as 302 Moved Temporarily. The first wording is the official one, found in RFC2616. However, the other version can frequently be found on the Web. Either way, this code is used when the resource can temporarily be found at a different URL. This response can theoretically be used with any WebDAV request.

Defined in HTTP/1.1.

B.3.4 303 See Other

303 See Other is used to redirect to another resource, which is not a replacement for the originally requested resource. This code is intended to be used when a Web client submits a form to one URL, and the server wants to tell it to display the results of a GET to another URL now that the form has been submitted.

Defined in HTTP/1.1.

B.3.5 304 Not Modified

304 Not Modified is used only in response to a method with an If-Modified-Since header. The If-Modified-Since header is used to make a request conditional on the last-modified time of the requested resource. It is frequently used with the GET method to download a resource only if it has changed since the last time it was downloaded, when the client has a cached version. The client shouldn't need to support this status code if it doesn't use If-Modified-Since.

Defined in HTTP/1.1.

B.3.6 305 Use Proxy

305 Use Proxy was intended to be used by firewalls to reroute clients to a proxy server. It can theoretically be used in response to any HTTP/1.1 or WebDAV method.

Defined in HTTP/1.1.

B.3.7 306 (Unused)

This status code is reserved in HTTP/1.1.

B.3.8 307 Temporary Redirect

307 Temporary Redirect is defined almost identically to 302 Found. I can't tell the difference.

Defined in HTTP/1.1.



WebDAV. Next Generation Collaborative Web Authoring
WebDAV. Next Generation Collaborative Web Authoring
ISBN: 130652083
EAN: N/A
Year: 2003
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net