CURLOPT_WILDCARDMATCH
to 1L
and then use a "wildcard pattern" in the in the file name part of the URL.*
- ASTERISKsome/path
. Only two asterisks are allowed within the same pattern string.?
- QUESTION MARK"photo1.jpeg
and photo7.jpeg
this pattern could match them:[
- BRACKET EXPRESSION]
) and matches exactly one character. Some examples follow:[a-zA-Z0-9]
or [f-gF-G]
- character intervals[abc]
- character enumeration[^abc]
or [!abc]
- negation[[:name:]]
class expression. Supported classes are alnum, lower, space, alpha, digit, print, upper, blank, graph, xdigit.[][-!^]
- special case, matches only \-
, ]
, [
, !
or ^
.[\\[\\]\\\\]
- escape syntax. Matches [
, ]
or \\
.CURLOPT_CHUNK_BGN_FUNCTION
callback is called before a transfer is initiated for a file that matches.CURL_CHUNK_BGN_FUNC_OK
transfer the fileCURL_CHUNK_BGN_FUNC_SKIP
CURL_CHUNK_BGN_FUNC_FAIL
stop because of errorCURLOPT_CHUNK_END_FUNCTION
callback is called.CURLOPT_FNMATCH_FUNCTION
option to your alternative.