Hi, You can find it in the os.environ dictionary. os.environ['SERVER_NAME'] I believe is what you are looking for.
-Marzia On Mon, Nov 10, 2008 at 1:13 PM, jago <[EMAIL PROTECTED]> wrote: > > I wonder how to get the 'host' of an application. > > As 'host' I mean http://localhost:8080 or http://www.example.com/ ? > > With self.request.url I have the current host + path. Is there a clean > way to only get the host without splitting strings? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---