When is absoluteUri used from the http request specs?
<p>I've been looking into the HttpServletRequest API (Java) which has the getRequestURI and getRequestURL methods. That made me look into:
<a href="https://www.rfc-editor.org/rfc/rfc7230#section-5.3" rel="nofollow noreferrer">https://www.rfc-editor.org/rfc/rfc7230#section-5.3</a>
As I understand getRequestURI returns the value from the first line of the http request which is a relative path to the resource most of the time unless the origin server is behind an inbound proxy in which case it must be an absolute URI. I guess most origin servers of the popular websites on the internet belong to that category which means that the URI in the raw http request should be the absoluteUri (from the http specs) but I haven't managed to find an example of this anywhere. Can a browser really know if it sends its requests to an inbound proxy or directly to the origing server? Is there any practical value in that absoluteUri concept in the http specs? Because the Host header field is always sent in HTTP 1.1 requests. Did that part of the specification had some practical value in the time of HTTP 1.0 when there was no Host header field yet?</p>