A request message from a client to a server includes, within the first line of that message, the method to be applied to the resource, the identifier of the resource, and the protocol version in use.
역) 클라이언트로부터 서버로의 request 메시지는 메시지의 첫번째 라인에 자원에 적용될 메소드, 자원식별자, 그리고 사용된 프로토콜 버전을 포함한다.
Request = Request-Line ; Section 5.1
*(( general-header ; Section 4.5
| request-header ; Section 5.3
| entity-header ) CRLF) ; Section 7.1
CRLF
[ message-body ] ; Section 4.3
5.1 Request Line
The Request-Line begins with a method token, followed by the Request-URI and the protocol version, and ending with CRLF. The elements are separated by SP characters. No CR or LF is allowed except in the final CRLF sequence.
역) Request-Line은 method 토큰(역주 : 한단어로 이해) 으로 시작하는데, 그 뒤에 Request-URI와 프로토콜 버전, 그리고 CRLF로 끝난다. element들은 SP문자로 구분되며, 마지막 CRLF 문자열을 제외한 어떠한 CR, LF도 인정되지 않는다.
Request-Line = Method SP Request-URI SP HTTP-Version CRLF
5.1.1 Method
The Method token indicates the method to be performed on the resource identified by the Request-URI. The method is case-sensitive.
역) Method토큰은 Request-URI에 의해 식별된 자원을 수행하기 위한 방법을 나타낸다. method는 대소문자를 구분하지 않는다.
Method = "OPTIONS" ; Section 9.2
| "GET" ; Section 9.3
| "HEAD" ; Section 9.4
| "POST" ; Section 9.5
| "PUT" ; Section 9.6
| "DELETE" ; Section 9.7
| "TRACE" ; Section 9.8
| "CONNECT" ; Section 9.9
| extension-method
extension-method = token
The list of methods allowed by a resource can be specified in an Allow header field (section 14.7). The return code of the response always notifies the client whether a method is currently allowed on a resource, since the set of allowed methods can change dynamically. An origin server SHOULD return the status code 405 (Method Not Allowed) if the method is known by the origin server but not allowed for the requested resource, and 501 (Not Implemented) if the method is unrecognized or not implemented by the origin server. The methods GET and HEAD MUST be supported by all general-purpose servers. All other methods are OPTIONAL; however, if the above methods are implemented, they MUST be implemented with the same semantics as those specified in section 9.
역) method의 리스트는 14.7장의 Allow header field에 명시될수 있는 자원에 의해 허용된다.
역) response의 return code는 언제나 클라이언트에 method가 현재 자원에 허용되는지 알리는데, 그 이유는 허용된 method 모음은 수시로 바뀔수 있기 때문이다.
역) orgin server는 그 method가 origin server에 의해 알려진 것이라면 405(비허용 method) status code를, method가 origin server에 구현되지 않았어나 인식되지 않는것일때 501(구현되지 않음)status code를 리턴해야 한다.
역) method GET 과 HEAD는 모든 일반적인 목적의 server들에 의해 지원되야만 한다.
역) 모든 다른 method들은 OPTIONAL하다; 그러나 그 이상의 method들이 구현된다면, 그것들은 9장에 명시된 그것들로서 같은 의미로 구현되야만 한다.
5.1.2 Request-URI
The Request-URI is a Uniform Resource Identifier (section 3.2) and identifies the resource upon which to apply the request.
역) Request-URI는 3.2장에서의 URI이고 request 적용시에 자원을 식별한다.
Request-URI = "*" | absoluteURI | abs_path | authority
The four options for Request-URI are dependent on the nature of the request. The asterisk “*” means that the request does not apply to a particular resource, but to the server itself, and is only allowed when the method used does not necessarily apply to a resource. One example would be
역) Request-URI를 위한 네가지 옵션은 request의 성격에 의존하고 있다.
역) 별표"*"는 request 특정 자원이 아니라 그 자신의 서버에 적용되며, 그리고 오직 사용된 method가 구지 자원에 적용 될 필요는 없을때 허락된다.
역) 하나의 예가 있다.
OPTIONS * HTTP/1.1
The absoluteURI form is REQUIRED when the request is being made to a proxy. The proxy is requested to forward the request or service it from a valid cache, and return the response. Note that the proxy MAY forward the request on to another proxy or directly to the server specified by the absoluteURI. In order to avoid request loops, a proxy MUST be able to recognize all of its server names, including any aliases, local variations, and the numeric IP address. An example Request-Line would be:
역) absoluteURI 폼은 request가 하나의 proxy를 만들 때 요구된다.
역) proxy는 request로의 포워딩이 요청되거나 검증된 cache로부터 그것을 서비스하고, response를 리턴한다.
역) proxy는 다른 proxy또는 닥접 absoluteURI에 명시된 서버로 직접적인 요청이 포워드될수도 있다.
역) request의 무한반복을 막기위해 proxy는 그 서버의 이름, 어떤 별명, 지역변수들 그리고 숫자형의 IP주소 모두를 반드시 알 수 있어야 한다.
역) Request-Line의 한 예가 있다.
GET
http://www.w3.org/pub/WWW/TheProject.html HTTP/1.1
To allow for transition to absoluteURIs in all requests in future versions of HTTP, all HTTP/1.1 servers MUST accept the absoluteURI form in requests, even though HTTP/1.1 clients will only generate them in requests to proxies.
The authority form is only used by the CONNECT method (section 9.9).
추후 번역 예정
Trackback URL : http://openmaya.tistory.com/trackback/53