
(해석 또는 이해가 잘못된 부분이 있다면 댓글로 편하게 알려주세요.)
DELETE, MKCOL, COPY, MOVE, PROPFIND 5가지 네임스페이스를 사용한다PUT, POST 메서드를 오버라이딩하는 경우 요청에 추가적인 데이터나 프로토콜이 필요할 수 있음 + 접근 제어가 어려움 -> MKCOL 메서드를 추가하기로 결정MKCOL /publishing HTTP/1.1
Host: minstar
Content-Length: 0
Connection: Keep-AliveHTTP/1.1 201 Created
Server: Microsoft-IIS/5.0
Date: Fri, 10 May 2002 23:20:36 GMT
Location: http://minstar/publishing/
Content-Length: 0201 Created : 컬렉션이 성공적으로 생성됨405 Method Not Allowed : 동일한 컬렉션이 이미 존재함403 Forbidden : 쓰기 권한(컬렉션 생성 권한)이 없음409 Conflict : 컬렉션을 생성할 상위 컬렉션이 존재하지 않음Depth : 삭제할 컬렉션의 깊이 (설정되지 않으면 무한으로 간주)Content-Location : 삭제된 컬렉션의 URLDELETE /publishing HTTP/1.0
Host: minstarHTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 14 May 2002 16:41:44 GMT
Content-Location: http://minstar/publishing/
Content-Type: text/xml
Content-Length: 0Destination 헤더 값을 타겟 URL로 사용Depth : 컬렉션의 깊이 (Depth가 0인 경우 지정된 리소스 하나에만 COPY, MOVE 메서드가 적용되며 infinity가 허용됨)Overwrite : Overwrite가 F인 경우 동일한 리소스가 destination에 존재하면 연산에 실패함COPY : 원본을 destination에 복사MOVE : 원본을 destination에 복사 -> 새로 생성된 URI의 무결성 확인 -> 원본 삭제{COPY,MOVE} /publishing HTTP/1.1
Destination: http://minstar/pub-new
Depth: infinity
Overwrite: T
Host: minstarHTTP/1.1 201 Created
Server: Microsoft-IIS/5.0
Date: Wed, 15 May 2002 18:29:53 GMT
Location: http://minstar.inktomi.com/pub-new/
Content-Type: text/xml
Content-Length: 0DELETE, PUT, OPTIONS 메서드를 일부 수정함PUT /ch-publish.fm HTTP/1.1
Accept: */*
If:<http://minstar/index.htm>(<opaquelocktoken:********>)
User-Agent: DAV Client (C)
Host: minstar.inktomi.com
Connection: Keep-Alive
Cache-Control: no-cache
Content-Length: 1155If : 리소스에 걸린 락과 일치하는 락 토큰이 명시된 경우 PUT 연산 수행OPTIONS /ch-publish.fm HTTP/1.1
Accept: */*
Host: minstar.inktomi.comHTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
MS-Author-Via: DAV
DASL: <DAV:sql>
DAV: 1, 2
Public: OPTIONS, TRACE, GET, HEAD, DELETE, PUT, POST, COPY, MOVE, MKCOL,PROPFIND,
PROPPATCH, LOCK, UNLOCK, SEARCH
Allow: OPTIONS, TRACE, GET, HEAD, DELETE, PUT, COPY, MOVE, PROPFIND,PROPPATCH,
SEARCH, LOCK, UNLOCKDAV 헤더 : DAV 호환 클래스에 대한 정보를 제공한다Public 헤더 : 서버에서 지원하는 모든 메서드를 나열한 헤더Allow 헤더 : Public 헤더의 부분집합, 특정 리소스에 대해 지원하는 모든 메서드를 나열한 헤더DASL 헤더 : SEARCH 메서드에서 사용되는 쿼리문의 유형을 제공하는 헤더