Google App Engine - Request class query_string

前端 未结 2 1255
一个人的身影
一个人的身影 2021-01-05 14:44

In Python and GAE, I would like to ask how to get the parameters of a query string in the url. As I know, the query_string part returns all the part after the \"?\" in the

2条回答
  •  孤城傲影
    2021-01-05 14:57

    You don't need to complicate. You can retrieve all GET parameters with:

    self.request.get('var_name')
    

    Or if you want to retrieve them all in one list you can use:

    self.request.get_all()
    

    You can find more info on the Request class here.

提交回复
热议问题