title: How can I force cherrypy to accept a variable number of GET parameters?
body: <p>for instance, say I have my cherrypy index module set up like this</p>
  
  <pre><code>&gt;&gt;&gt; import cherrypy
  &gt;&gt;&gt; class test:
          def index(self, var = None):
              if var:
                  print var
              else:
                  print "nothing"
          index.exposed = True
  
  &gt;&gt;&gt; cherrypy.quickstart(test())
  </code></pre>
  
  <p>If I send more than one GET parameter I get this error</p>
  
  <blockquote>
    <p>404 Not Found</p>
    
    <p>Unexpected query string parameters:
    var2</p>
    
    <p>Traceback (most recent call last):<br>
    File
    "C:\Python26\lib\site-packages\cherrypy_cprequest.py",
    line 606, in respond
        cherrypy.response.body = self.handler()   File
    "C:\Python26\lib\site-packages\cherrypy_cpdispatch.py",
    line 27, in <strong>call</strong>
        test_callable_spec(self.callable, self.args, self.kwargs)   File
    "C:\Python26\lib\site-packages\cherrypy_cpdispatch.py",
    line 130, in test_callable_spec
        "parameters: %s" % ", ".join(extra_qs_params)) HTTPError:
    (404, 'Unexpected query string
    parameters: var2')</p>
    
    <p>Powered by CherryPy 3.1.2</p>
  </blockquote>