BaseHTTPHandler from the BaseHTTPServer module doesn\'t seem to provide any convenient way to access http request parameters. What is the best way to parse the GET paramete
You may want to use urllib.parse:
>>> from urllib.parse import urlparse, parse_qs >>> url = 'http://example.com/?foo=bar&one=1' >>> parse_qs(urlparse(url).query) {'foo': ['bar'], 'one': ['1']}
For Python 2, the module is named urlparse instead of url.parse.
url.parse