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