Hi niklasr,
Thanks for your reply.

On 12月5日, 上午11时22分, niklasr <[EMAIL PROTECTED]> wrote:
> os.environ may achieve it
>
> import os
> if os.environ.get('HTTP_HOST'):
>     url = os.environ['HTTP_HOST']
> else:
>     url = os.environ['SERVER_NAME']
>
> On Dec 5, 4:07 am, lws68825 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > Can anyone help me on getting host info in a cgi script? I want to set
> > different mapping parameters to wsgiapplication for different domain
> > names.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to