On 4 Sep 2008, at 23:34, Owen Winkler wrote:
> > Geoffrey Sneddon wrote: >> As I'm sure many of you have seen, getting errors such as "Notice: >> Undefined index: HTTP_HOST in system/classes/site.php line 137" is >> far >> from uncommon. > > ... > >> Is there any reason we actually output absolute IRIs? Can we not get >> by with just outputting relative IRIs, even if it is absolute path >> IRIs? > > Can you explain what these thoughts have to do with each other? 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. -- Geoffrey Sneddon <http://gsnedders.com/> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
