Moshe C. wrote: > How can I retrieve the host and port (defined in the "server:main" > section of the ini file) from within the application code?
request.environ['HTTP_HOST']. SERVER_NAME and SERVER_PORT also give the same(ish) info -- generally HTTP_HOST is the what the client saw, and SERVER_NAME/SERVER_PORT is what the server is actually connected to. Ian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
