I use curl to request a Flask route that expects several request parameters. However, the log shows only the first parameter in the URL, and Flask does not see the second parameter. What is going wrong?
@app.route('/path', methods=['GET']) def foo(): print request.args.get('param2') req = request.args.items() print req
curl http://localhost:5000/path?param1=1¶m2=2
127.0.0.1 - - [01/Jun/2015 21:35:10] "GET /path?param1=1 HTTP/1.1" 200 - None [('param1', u'1')]
python flask
MakleBirt
source share