Curl: Difference between revisions
m
→URL syntax: m
m (→One-Liners: m) |
m (→URL syntax: m) |
||
Line 89:
=URL syntax=
*You can specify multiple URLs or parts of URLs by writing part sets within braces as in:
<nowiki>http://site.{one,two,three}.com</nowiki>
*You can get sequences of alphanumeric series by using [] as in:
<nowiki> ftp://ftp.numericals.com/file[1-100].txt
ftp://ftp.numericals.com/file[001-100].txt
ftp://ftp.letters.com/file[a-z].txt</nowiki>
*Nested sequences are not supported, but you can use several ones next to each other:
<nowiki>http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html</nowiki>
*You can specify a step counter for the ranges to get every Nth number or letter:
<nowiki>http://www.numericals.com/file[1-100:10].txt
http://www.letters.com/file[a-z:2].txt</nowiki>
*If you specify URL without protocol:// prefix, curl will attempt to guess what protocol you might want.
|