curl -i https://example.com/resourceThe server offers multiple possible representations.
Redirection responses like 301, 302, 307, and 308.
Redirection responses like 301, 302, 307, and 308.
curl -i https://example.com/resourceThe server offers multiple possible representations.
curl -I http://example.com/oldUse when a resource’s canonical URL has changed permanently.
curl -I https://example.com/tempCommon temporary redirect; older behavior can vary with method preservation.
curl -i -X POST https://example.com/form -d 'x=1'Common after form submission or async job creation pages.
curl -I -H 'If-None-Match: "abc123"' https://example.com/app.jsReturned for conditional requests using validators like `ETag` or `If-Modified-Since`.
HTTP/1.1 305 Use ProxyHistorical code; generally not used in modern applications.
HTTP/1.1 306Reserved and not used in modern HTTP practice.
curl -i -X POST https://example.com/move-temp -d '{"x":1}'Unlike many 302 implementations, the method and body are meant to be preserved.
curl -i -X PUT https://example.com/move-permanent -d '{"name":"new"}'Like 301, but preserves the request method and body.