I am a total novice at scripting, and need some help in curl scripting. I need to access a URL multiple times using CURL script in Windows command prompt, So that would need calling curl script multiple times. Is there any way to : (A) access the URL request multiple times using single curl script, (B) or a way in command prompt to call the single curl script multiple times?
To execute a curl program 3 times, try...
for /L %i in (1,1,3) do your_curl_script
The last number in (1,1,3) controls your looping count.
NOTE: This is a solution to your (B) option. You could put your CURL code inside a batch file and call the batch file X number of times. The DOS command line would look slightly different, as such:
for /L %i in (1,1,3) do your_batch_file
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.