Re: [Webware-discuss] request().serverURL() question

2007-06-19 Thread sophana
I still haven't tested your modification sorry, but the code is very similar to the one I use. Just to say that HTTP_HOST does not always exist in some rare cases, with some exotic clients (generally bad robots). Maybe a try/except would help, but what to use instead? Christoph Zwerschke a écrit :

Re: [Webware-discuss] request().serverURL() question

2007-05-17 Thread sophana
Christoph Zwerschke a écrit : > I've implemented my suggestion with the canonical parameter now (see > http://svn.w4py.org/Webware/trunk/WebKit/HTTPRequest.py). Can you let me > know whether this solves your problem with serverURL()? > Thanks I'll try that. ---

Re: [Webware-discuss] request().serverURL() question

2007-05-17 Thread Christoph Zwerschke
sophana wrote: > Yes I have a rewrite rule, but the rule does not apply in this case. > This may explain that I don't get the expected result. > What I don't understand is that, even if the url was rewritten, the > result is simply wrong... The apache name must not be used. It does not matter whet

Re: [Webware-discuss] request().serverURL() question

2007-05-17 Thread sophana
Christoph Zwerschke a écrit : > sophana wrote: > >> I've just found out that request().serverURL() does not return the real >> PATH of the request. >> It replaces the http host with the server name configured in apache. >> Is this the intended behaviour? >> I can't use this, because the session

Re: [Webware-discuss] request().serverURL() question

2007-05-17 Thread Christoph Zwerschke
sophana wrote: > I've just found out that request().serverURL() does not return the real > PATH of the request. > It replaces the http host with the server name configured in apache. > Is this the intended behaviour? > I can't use this, because the session is lost when returning to another url. Ac

[Webware-discuss] request().serverURL() question

2007-05-17 Thread sophana
Hi I'm using apache2 + mod-webkit (from 0.9.1) and webware 0.9.2 (and 0.9.3) My website can have multiple names: http://example.com/ or http://www.example.com (like many websites) and also https://... I've just found out that request().serverURL() does not return the real PATH of the request. It r