easy:SetOpt_WildcardMatch(onoff)
onoff
to 1 if you want to transfer multiple files according to a
file name pattern. The pattern can be specified as part of the
#CURLOPT_URL
option, using an fnmatch-like pattern (Shell Pattern
Matching) in the last part of URL (file name).
By default, libcurl uses its internal wildcard matching implementation. You
can provide your own matching function by the
#CURLOPT_FNMATCH_FUNCTION
option.
A brief introduction of its syntax follows:
"* - ASTERISK"
"? - QUESTION MARK"
ftp://example.com/some/path/photo?.jpeg
"[ - BRACKET EXPRESSION"
[a-zA-Z0\-9] or [f\-gF\-G]
[abc]
[^abc] or [!abc]
[[:§name:]]
[][-!^]
[\[\]\\]
Using the rules above, a file name pattern can be constructed:
ftp://example.com/some/path/[a-z[:upper:]\\].jpeg