~ubuntu-branches/ubuntu/utopic/curl/utopic-security

« back to all changes in this revision

Viewing changes to docs/libcurl/opts/CURLOPT_WILDCARDMATCH.html

  • Committer: Package Import Robot
  • Author(s): Gianfranco Costamagna
  • Date: 2014-07-25 12:03:28 UTC
  • mfrom: (3.4.49 sid)
  • Revision ID: package-import@ubuntu.com-20140725120328-pcipulguoki2iabo
Tags: 7.37.1-1ubuntu1
* Merge from Debian unstable (LP: #1348564). Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 
2
 "http://www.w3.org/TR/html4/loose.dtd">
 
3
<html><head>
 
4
<title>CURLOPT_WILDCARDMATCH man page</title>
 
5
<meta name="generator" content="roffit">
 
6
<STYLE type="text/css">
 
7
P.level0 {
 
8
 padding-left: 2em;
 
9
}
 
10
 
 
11
P.level1 {
 
12
 padding-left: 4em;
 
13
}
 
14
 
 
15
P.level2 {
 
16
 padding-left: 6em;
 
17
}
 
18
 
 
19
span.emphasis {
 
20
 font-style: italic;
 
21
}
 
22
 
 
23
span.bold {
 
24
 font-weight: bold;
 
25
}
 
26
 
 
27
span.manpage {
 
28
 font-weight: bold;
 
29
}
 
30
 
 
31
h2.nroffsh {
 
32
 background-color: #e0e0e0;
 
33
}
 
34
 
 
35
span.nroffip {
 
36
 font-weight: bold;
 
37
 font-size: 120%;
 
38
 font-family: monospace;
 
39
}
 
40
 
 
41
p.roffit {
 
42
 text-align: center;
 
43
 font-size: 80%;
 
44
}
 
45
</STYLE>
 
46
</head><body>
 
47
 
 
48
<p class="level0"><a name="NAME"></a><h2 class="nroffsh">NAME</h2>
 
49
<p class="level0">CURLOPT_WILDCARDMATCH - enable directory wildcard transfers <a name="SYNOPSIS"></a><h2 class="nroffsh">SYNOPSIS</h2>
 
50
<p class="level0">#include &lt;curl/curl.h&gt; 
 
51
<p class="level0">CURLcode curl_easy_setopt(CURL *handle, CURLOPT_WILDCARDMATCH, long onoff); <a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2>
 
52
<p class="level0">Set <span Class="emphasis">onoff</span> to 1 if you want to transfer multiple files according to a file name pattern. The pattern can be specified as part of the <a Class="emphasis" href="./CURLOPT_URL.html">CURLOPT_URL</a> option, using an fnmatch-like pattern (Shell Pattern Matching) in the last part of URL (file name). 
 
53
<p class="level0">By default, libcurl uses its internal wildcard matching implementation. You can provide your own matching function by the <a Class="emphasis" href="./CURLOPT_FNMATCH_FUNCTION.html">CURLOPT_FNMATCH_FUNCTION</a> option. 
 
54
<p class="level0">A brief introduction of its syntax follows: 
 
55
<p class="level1">
 
56
<p class="level0"><a name=""></a><span class="nroffip">* - ASTERISK</span> 
 
57
<p class="level1"><a href="ftp://example.com/some/path/">ftp://example.com/some/path/</a><span Class="bold">*.txt</span> (for all txt's from the root directory) 
 
58
<p class="level0">
 
59
<p class="level1">
 
60
<p class="level0"><a name=""></a><span class="nroffip">? - QUESTION MARK</span> 
 
61
<p class="level1">Question mark matches any (exactly one) character. 
 
62
<p class="level1"><a href="ftp://example.com/some/path/">ftp://example.com/some/path/</a><span Class="bold">photo?.jpeg</span> 
 
63
<p class="level0">
 
64
<p class="level1">
 
65
<p class="level0"><a name=""></a><span class="nroffip">[ - BRACKET EXPRESSION</span> 
 
66
<p class="level1">The left bracket opens a bracket expression. The question mark and asterisk have no special meaning in a bracket expression. Each bracket expression ends by the right bracket and matches exactly one character. Some examples follow: 
 
67
<p class="level1"><span Class="bold">[a-zA-Z0-9]</span> or <span Class="bold">[f-gF-G]</span> - character interval 
 
68
<p class="level1"><span Class="bold">[abc]</span> - character enumeration 
 
69
<p class="level1"><span Class="bold">[^abc]</span> or <span Class="bold">[!abc]</span> - negation 
 
70
<p class="level1"><a class="bold" href="#">[[:</a><span Class="emphasis">name</span><a class="bold" href="#">:]]</a> class expression. Supported classes are <span Class="bold">alnum</span>,<span Class="bold">lower</span>, <span Class="bold">space</span>, <span Class="bold">alpha</span>, <span Class="bold">digit</span>, <span Class="bold">print</span>, <span Class="bold">upper</span>, <span Class="bold">blank</span>, <span Class="bold">graph</span>, <span Class="bold">xdigit</span>. 
 
71
<p class="level1"><span Class="bold">[][-!^]</span> - special case - matches only '-', ']', '[', '!' or '^'. These characters have no special purpose. 
 
72
<p class="level1"><a class="bold" href="#">[\[\]\\]</a> - escape syntax. Matches '[', ']' or '&acute;. 
 
73
<p class="level1">Using the rules above, a file name pattern can be constructed: 
 
74
<p class="level1"><a href="ftp://example.com/some/path/">ftp://example.com/some/path/</a><span Class="bold">[a-z[:upper:]\\].jpeg</span> 
 
75
<p class="level0">
 
76
<p class="level0"><a name="PROTOCOLS"></a><h2 class="nroffsh">PROTOCOLS</h2>
 
77
<p class="level0">This feature is only supported for FTP download. <a name="EXAMPLE"></a><h2 class="nroffsh">EXAMPLE</h2>
 
78
<p class="level0">See <a href="http://curl.haxx.se/libcurl/c/ftp-wildcard.html">http://curl.haxx.se/libcurl/c/ftp-wildcard.html</a> <a name="AVAILABILITY"></a><h2 class="nroffsh">AVAILABILITY</h2>
 
79
<p class="level0">Added in 7.21.0 <a name="RETURN"></a><h2 class="nroffsh">RETURN VALUE</h2>
 
80
<p class="level0">Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. <a name="SEE"></a><h2 class="nroffsh">SEE ALSO</h2>
 
81
<p class="level0"><a Class="manpage" href="./CURLOPT_FNMATCH_FUNCTION.html">CURLOPT_FNMATCH_FUNCTION</a> <a Class="manpage" href="./CURLOPT_URL.html">CURLOPT_URL</a> <a class="manpage" href="#"> </a> <p class="roffit">
 
82
 This HTML page was made with <a href="http://daniel.haxx.se/projects/roffit/">roffit</a>.
 
83
</body></html>