address = 'http://' + os.environ['HTTP_HOST']

-Marzia

On Mon, Nov 10, 2008 at 2:24 PM, jago <[EMAIL PROTECTED]> wrote:

>
> No.
>
> I want the complete string:
>
> http://localhost:8080/
>
> in my case os.environ['SERVER_NAME'] return only 'localhost', which
> does not work.
>
> On Nov 10, 10:32 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote:
> > 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 meanhttp://localhost:8080orhttp://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to