> Curl automatically expands glob expressions in URLs into multiple specific URLs.<p>> For example, this command requests three different paths (al, bt, gm), each with two different parameters (num=1 and num=2), for a total of six URLs:<p><pre><code> curl --output-dir /tmp -o "out_#1_#2.txt" http://httpbin/anything/{al,bt,gm}?num=[1-2]
</code></pre>
Note that it's not just curl that does glob expansion. So do some shells. Try:<p><pre><code> echo http://httpbin/anything/{al,bt,gm}?num=[1-2]
</code></pre>
Bash does "brace expansion" on `{al,bt,gm}` to create 3 separate params before they are given to curl/echo. (Although other, stricter bourne shells, like `dash`, do not perform this expansion.)
In the linked article, all the examples use a hostname of "httpbin". To run the examples locally, I had to replace that with httpbin.org.<p>Is that a standard test host? I'm curious about why it's named httpbin - is it a docker hostname?<p>Sorry for a weird offtopic question :/
Shameless plug for a load testing tool I built that, in my workflow, relies on curl for the request syntax: <a href="https://github.com/Steven-Ireland/spam">https://github.com/Steven-Ireland/spam</a>