<story><title>Mastering curl: interactive text guide</title><url>https://antonz.org/mastering-curl/</url></story><parent_chain></parent_chain><comment><author>Karellen</author><text>&amp;gt; Curl automatically expands glob expressions in URLs into multiple specific URLs.&lt;p&gt;&amp;gt; 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:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    curl --output-dir &amp;#x2F;tmp -o &amp;quot;out_#1_#2.txt&amp;quot; http:&amp;#x2F;&amp;#x2F;httpbin&amp;#x2F;anything&amp;#x2F;{al,bt,gm}?num=[1-2]
&lt;/code&gt;&lt;/pre&gt;
Note that it&amp;#x27;s not just curl that does glob expansion. So do some shells. Try:&lt;p&gt;&lt;pre&gt;&lt;code&gt;    echo http:&amp;#x2F;&amp;#x2F;httpbin&amp;#x2F;anything&amp;#x2F;{al,bt,gm}?num=[1-2]
&lt;/code&gt;&lt;/pre&gt;
Bash does &amp;quot;brace expansion&amp;quot; on `{al,bt,gm}` to create 3 separate params before they are given to curl&amp;#x2F;echo. (Although other, stricter bourne shells, like `dash`, do not perform this expansion.)</text></comment>
<story><title>Mastering curl: interactive text guide</title><url>https://antonz.org/mastering-curl/</url></story><parent_chain></parent_chain><comment><author>bloopernova</author><text>In the linked article, all the examples use a hostname of &amp;quot;httpbin&amp;quot;. To run the examples locally, I had to replace that with httpbin.org.&lt;p&gt;Is that a standard test host? I&amp;#x27;m curious about why it&amp;#x27;s named httpbin - is it a docker hostname?&lt;p&gt;Sorry for a weird offtopic question :&amp;#x2F;</text></comment>