What is a full specification of X-Forwarded-Proto
HTTP header values?
相关问题
- 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
There finally is RFC 7239 - Forwarded HTTP Extension from june 2014. The header is defined in section 5.4.
Some examples:
I just hope this won't take too much time to get widely adopted. An example of the diversity of headers because of standard lacking (from here):
X-Forwarded-Proto: https
(de facto standard)X-Forwarded-Protocol: https
X-Forwarded-Ssl: on
X-Url-Scheme: https
Front-End-Https: on
There is no "full specification" -- it's a de facto standard. The
X-
in front of a header name customarily* has denoted it as experimental/non-standard/vendor-specific. Once it's a standard part of HTTP, it'll lose the prefix.There's some work from the IETF on standardizing it, but it's just at the draft stages, as far as i can tell. Check out http://tools.ietf.org/html/draft-ietf-appsawg-http-forwarded-10 for the latest draft as of the time of this writing. But be aware that it can change at any time while it's being fleshed out, and don't rely on it in production stuff yet.
Update:
RFC 7239 now defines the
Forwarded:
header, which is intended to replaceX-Forwarded-*
. If you care about standards, i would recommend using that instead.* This used to be an official thing, but no longer is. RFC 6648 deprecates the
X-
prefixing convention. Unfortunately, the convention is so widely known (and the deprecation so low-key) that most people outside the IETF will probably ignore the recommendation.I'm not aware of a "full specification".
The IETF APPSArea Working Group recently decided to define a new header field "Forwarded" which is supposed to replace the "X-Forwarded-*" header fields that you mentioned.
See http://tools.ietf.org/html/draft-ietf-appsawg-http-forwarded for details.