On Fri, Apr 24, 2009 at 4:57 PM, mdipierro <[email protected]> wrote:
> No. This code is dangerous because does not always work. It only work
> for simple mappings that do not use regex and domainname.

I was talking about get full URL in request...
Even if I have a rewrite, I want to know what URL user requested:

> >> I want a manner to get full GET URL from client, but using a rewrite
> >> in routes_in I can get only a half of. An example:

> >> routes_in = (
> >>     ('/(?P<all>.+)', '/myapp/default/padrao?\g<all>'),
> >> )

> >> In this case I can get 'full' URL (I say 'full' because I don't get
> >> "http://127.0.0.1:800";) with request.env.query_string. But in cases
> >> that I have:

> >> routes_in = (
> >>     ('/(A|B)(?P<all>.+)', '/myapp/default/padrao?\g<all>'),
> >> )

> >> I can't get "A" or "B", only the expression matched by "(?P<all>.+)".
> >> Is there an way to get "full" URL that I like - am I missing something?
> >> If there isn't, can it be implemented to future versions?

-- 
 Álvaro Justen
 Peta5 - Telecomunicações e Software Livre
 21 3021-6001 / 9898-0141
 http://www.peta5.com.br/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to