如何在 Apache Bench 中发送多个查询字符串?
ab -n 1 -c 1 http://localhost:2020/welTo.do?pxtId=3000007937&superDo =jack
我得到了第一个查询字符串的答案,但我也得到了
“superDo”不被识别为内部或外部命令, 可运行的程序或批处理文件。
请帮助我
TIA
问候 蒂鲁
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能只需要引用 URL 即可避免 shell 特殊字符被解释。在这种情况下,您的
&
符号会导致左侧的文本在后台运行,同时尝试将 superDo 作为命令运行。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.有两种解决方法:
There are two workarounds for this:
你试过post文件吗?认为这应该有效:
然后创建一个名为 postfile.txt 的平面文件,其内容如下:
改编的示例 从这里
Have you tried the post file? think this should work:
And then make a flat file named postfile.txt with contents like this:
Example adapted from here