11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

equested resource, and 501 (Not Implemented) if the method isunrecognized or not implemented by the origin server. The methods GETand HEAD MUST be supported by all general-purpose servers. All othermethods are OPTIONAL; however, if the above methods are implemented,they MUST be implemented with the same semantics as those specifiedin section 9.5.1.2 <strong>Request</strong>-URIThe <strong>Request</strong>-URI is a Uni<strong>for</strong>m Resource Identifier (section 3.2) andidentifies the resource upon which to apply the request.<strong>Request</strong>-URI= "*" | absoluteURI | abs_path | authorityThe four options <strong>for</strong> <strong>Request</strong>-URI are dependent on the nature of therequest. The asterisk "*" means that the request does not apply to aparticular resource, but to the server itself, and is only allowedwhen the method used does not necessarily apply to a resource. Oneexample would beOPTIONS * HTTP/1.1The absoluteURI <strong>for</strong>m is REQUIRED when the request is being made to aproxy. The proxy is requested to <strong>for</strong>ward the request or service itfrom a valid cache, and return the response. Note that the proxy MAY<strong>for</strong>ward the request on to another proxy or directly to the server<strong>Fielding</strong>, et al. Standards Track [Page 36]RFC <strong>2616</strong> HTTP/1.1 June 1999specified by the absoluteURI. In order to avoid request loops, aproxy MUST be able to recognize all of its server names, includingany aliases, local variations, and the numeric IP address. An example<strong>Request</strong>-Line would be:GET http://www.w3.org/pub/WWW/TheProject.html HTTP/1.1To allow <strong>for</strong> transition to absoluteURIs in all requests in futureversions of HTTP, all HTTP/1.1 servers MUST accept the absoluteURI<strong>for</strong>m in requests, even though HTTP/1.1 clients will only generatethem in requests to proxies.The authority <strong>for</strong>m is only used by the CONNECT method (section 9.9).The most common <strong>for</strong>m of <strong>Request</strong>-URI is that used to identify aresource on an origin server or gateway. In this case the absolutepath of the URI MUST be transmitted (see section 3.2.1, abs_path) as

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!