How to send more than one query string in Apache Bench?

thirumalairaj picture thirumalairaj · Feb 3, 2011 · Viewed 9.6k times · Source

ab -n 1 -c 1 http://localhost:2020/welTo.do?pxtId=3000007937&superDo=jack

I got answer for first query string but i also get

'superDo' is not recognized as an internal or external command, operable program or batch file.

Please help me

TIA

Regards thiru

Answer

noodl picture noodl · Feb 3, 2011

You probably just need to quote the URL to avoid shell special characters from being interpreted. In this case your & symbol is causing the text to the left to be run in the background while attempting to run superDo as a command.

 ab -n 1 -c 1 'http://localhost:2020/welTo.do?pxtId=3000007937&superDo=jack'