Geoffrey Sneddon wrote:
> 
> We use HTTP_HOST to get the host for the authority of the absolute  
> IRI. What else can we use for the host if we do not have it?  All I  
> can think that we would always have is the server IP, which may not be  
> ideal if it is an internal IP. The only place we must use absolute  
> URIs is the location header in HTTP for redirects (everything supports  
> relative URIs for it, though). If we don't bother to use absolute IRIs  
> (or authority relative IRIs) elsewhere we never hit this issue apart  
> from in that case.
> 

Outputting URLs is not the only place where HTTP_HOST is used.  It is 
used in the Site class to find the correct config, plugin, and theme 
data for a site.  There may be other places it is used.

I think there isn't much to discuss on this topic.  Was there an implied 
question as to why we use absolute URLs?  If so, no, there's no reason. 
  But as I said above, we do use the HTTP_HOST for at least one other thing.

Owen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/habari-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to