Should the HEAD
and GET
methods return the same status code? More specifically, we have run into the situation where a client website is returning a 200
when we do a HEAD
, but returns a 303
when we do a GET
. It has to do with redirecting to a language specific page based on location, but shouldn't the HEAD
then also ask you to redirect?
相关问题
- Angular RxJS mergeMap types
- Google Apps Script: testing doPost() with cURL
- How to instantiate Http service in main.ts manuall
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- PHP Empty $_POST
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Is there a size limit for HTTP response headers on
- Is a unicode user agent legal inside an HTTP heade
- git: retry if http request failed
- What is the definition of HTTP_X_PURPOSE?
- Flutter - http.get fails on macos build target: Co
- Why does Google Chrome NOT use cached pages when I
- C# HttpClient.SendAsync always returns 404 but URL
The key is the word
SHOULD
. From the HTTP method specification, RFC2616:The word
SHOULD
is further definied in RFC2119:So, the case you described is legit, but not recommended. You may want to ask the site maintainer for the reasoning of this path.