卷曲命令以重复URL请求 [英] Curl Command to Repeat URL Request
本文介绍了卷曲命令以重复URL请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Linux命令重复击中URL次数x的语法是什么?我不需要对数据做任何事情,只需要在浏览器中复制击中刷新20次即可.
Whats the syntax for a linux command that hits a URL repeatedly, x number of times. I don't need to do anything with the data, I just need to replicate hitting refresh 20 times in a browser.
推荐答案
您可以使用带有伪查询字符串的URL序列替换(如果您想使用CURL并保存一些击键):
You could use URL sequence substitution with a dummy query string (if you want to use CURL and save a few keystrokes):
curl http://www.myurl.com/?[1-20]
如果您的URL中还有其他查询字符串,请将序列分配给一个一次性变量:
If you have other query strings in your URL, assign the sequence to a throwaway variable:
curl http://www.myurl.com/?myVar=111&fakeVar=[1-20]
在手册页上查看URL部分: https://curl.haxx.se/docs/manpage.html
Check out the URL section on the man page: https://curl.haxx.se/docs/manpage.html
这篇关于卷曲命令以重复URL请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文