Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 493
thirumalairaj Avatar asked Feb 03 '11 12:02

thirumalairaj


1 Answers

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'
like image 92
noodl Avatar answered Sep 30 '22 23:09

noodl