Everything after the '?' symbol in a URL is considered data to be
passed to web applications.
This "query string" should contain name/value pairs separated by
ampersands, with names and values
in each pair being separated by equal signs, for example
name=John&last_name=Doe

If you really want to use the '?' symbol as a part of the URL you must
write it "encoded" (in the browser, not in your webpy app):

http://yoursite.com/test%3Ftest

You can read more about all this here:
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm


On 23 mar, 13:16, Михаил <[email protected]> wrote:
> Hi all!
> How I can match query which contains '?' symbol?
>
> With this code for query '/test?test' I get only '/test' and for '/?test'
> only '/':
>
> # ===========================
> urls = (
>             '/somepath/(.*)', 'someclass'
>           )
>
> class someclass:
>     def GET(self, query):
>         return query
> # ===========================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to