MOVE
HTTP метод
Спецификация на HTTP метод MOVE
текуща работа
HTTP метод MOVE е специфициран в раздел 9.9 на документ RFC 4918 от Internet Engineering Task Force (IETF) и World Wide Web Consortium (W3C).
Описание на метода MOVE
текуща работа
Пример за HTTP метод MOVE
Request header:
MOVE /old-resource-path HTTP/1.1
Host: api.example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/58.0.3029.110 Safari/537
Destination: https://api.example.com/new-resource-path
Overwrite: T
Accept-Language: de-DE,de;q=0.5
Connection: keep-alive
MOVE /old-resource-path HTTP/1.1
Host: api.example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/58.0.3029.110 Safari/537
Destination: https://api.example.com/new-resource-path
Overwrite: T
Accept-Language: de-DE,de;q=0.5
Connection: keep-alive
Response header:
HTTP/1.1 201 Created (oder 204 No Content, wenn die Ressource bereits existiert und Overwrite auf T gesetzt ist)
Location: https://api.example.com/new-resource-path
Date: Mon, 31 July 2023 14:58:12 GMT
Server: Apache/2.4.7 (Ubuntu)
HTTP/1.1 201 Created (oder 204 No Content, wenn die Ressource bereits existiert und Overwrite auf T gesetzt ist)
Location: https://api.example.com/new-resource-path
Date: Mon, 31 July 2023 14:58:12 GMT
Server: Apache/2.4.7 (Ubuntu)