Created
May 10, 2012 09:45
-
-
Save JensRantil/2652183 to your computer and use it in GitHub Desktop.
Improvements proposal to "http://tools.ietf.org/html/draft-petersson-forwarded-for-02"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hi again, | |
| I stumbled across you "Forwarded http Extension" (http://tools.ietf.org/html/draft-petersson-forwarded-for-02) a week ago and have been thinking about it a bit more; One thing that I think the draft currently is missing is a way to disclose to the backend the full URL that was used for the original request. | |
| There are two things missing: | |
| Which resource was requested in the original request. If a request to http://myserver.com/hello/index.jsp is proxied to http://myserver.com/hello2/index.jsp it would be highly useful for the backend to know that the original request was /hello/index.jsp and not /hello2/index.jsp. While a frontend webserver could potentially correct redirects (301s and 302s, example: http://wiki.nginx.org/HttpProxyModule#proxy_redirect) there are also occasions when the backend would like to know about the original request being made. Examples are to have correct links/URLs to media files (images, CSS, JavaScript etc.). | |
| Which port that was used on the original request. While I have not needed this myself, I think there are occasions similar to the one with media file URLs above when it would be useful to know the port used for the original request. | |
| Now you know. | |
| Thank you for your work, | |
| Jens Rantil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment