たとえば、cherrypy インデックス モジュールを次のように設定したとします。
>>> import cherrypy
>>> class test:
def index(self, var = None):
if var:
print var
else:
print "nothing"
index.exposed = True
>>> cherrypy.quickstart(test())
複数の GET パラメータを送信すると、このエラーが発生します
404お探しのページが見つかりませんでした
予期しないクエリ文字列パラメータ: var2
トレースバック (最新の呼び出しが最後):
File "C:\Python26\lib\site-packages\cherrypy_cprequest.py", line 606, in response cherrypy.response.body = self.handler() File "C:\Python26\lib \site-packages\cherrypy_cpdispatch.py"、27 行目、呼び出し test_callable_spec(self.callable, self.args, self.kwargs) ファイル "C:\Python26\lib\site-packages\cherrypy_cpdispatch.py"、130 行目、 in test_callable_spec "parameters: %s" % ", ".join(extra_qs_params)) HTTPError: (404, '予期しないクエリ文字列パラメーター: var2')CherryPy 3.1.2 を搭載