Reputation: 1197
for example, the URL:
http://localhost:8080/company?a=1
and how can i know whether the URL contains parameters a .
Upvotes: 1
Views: 677
Reputation: 18128
Here's how you access a
:
@route('/company')
def company():
if bottle.request.params.get('a') is not None:
# param "a" was present in the URI's query string
Upvotes: 2