For example, the URL request is like this:
http://any-server.org/cgi-bin/test.cgi?a=1&b=2&b=20&b=200
Is it possible to get three values of b as a list[2,20,200] in CGI or any web framework?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
.getall():.getall()is a method on theMultiDictclass; various parameters ofrequest, including.GET,.POSTand.paramsareMultiDictinstances. TheWebObproject documentation (on which the Pyramid request is based) can provide more information.