1. PUT
PUT /put_test.txt HTTP/1.0
Content-Length: 13
Host: 도멘인주소
put test page
2. DELETE
DELETE /put_test.txt HTTP/1.0
Host: 도메인주소
3. COPY
COPY /test.txt HTTP/1.0
Host: 도메인주소
Destination: http://도메인주소/test2.txt
Overwrite: T
※ 참고 상태코드
http://msdn.microsoft.com/en-us/library/aa142816(v=exchg.65).aspx
Status Code |
Meaning |
201 (Created) |
The resource was successfully copied. |
204 (No Content) |
The source resource was successfully copied to a pre-existing destination resource. |
403 (Forbidden) |
The source URI and the destination URI are the same. |
409 (Conflict) |
A resource cannot be created at the destination URI until one or more intermediate collections are created. |
412 (Precondition Failed) |
Either the Overwrite header is "F" and the state of the destination resource is not null, or the method was used in a Depth: 0 transaction. |
423 (Locked) |
The destination resource is locked. |
502 (Bad Gateway) |
The COPY destination is located on a different server, which refuses to accept the resource. |
507 (Insufficient Storage) |
The destination resource does not have sufficient storage space. |