MOVE
Metoda HTTP
Specificarea metodei HTTP MOVE
lucrări în curs
Metoda HTTP MOVE a fost specificată în secțiunea 9.9 din documentul RFC 4918 de către Internet Engineering Task Force (IETF) și World Wide Web Consortium (W3C).
Descrierea metodei MOVE
lucrări în curs
Exemplu pentru metoda 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)