Revert "Imported Upstream version 7.44.0"
[platform/upstream/curl.git] / docs / libcurl / opts / CURLOPT_QUOTE.html
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_QUOTE 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_QUOTE - (S)FTP commands to run before transfer <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_QUOTE, struct curl_slist *cmds); <a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2>
52 <p class="level0">Pass a pointer to a linked list of FTP or SFTP commands to pass to the server prior to your request. This will be done before any other commands are issued (even before the CWD command for FTP). The linked list should be a fully valid list of 'struct curl_slist' structs properly filled in with text strings. Use <span Class="emphasis">curl_slist_append(3)</span> to append strings (commands) to the list, and clear the entire list afterwards with <span Class="emphasis">curl_slist_free_all(3)</span>. Disable this operation again by setting a NULL to this option. When speaking to a FTP server, prefix the command with an asterisk (*) to make libcurl continue even if the command fails as by default libcurl will stop at first failure. 
53 <p class="level0">The set of valid FTP commands depends on the server (see <a href="http://www.ietf.org/rfc/rfc959.txt">RFC 959</a> for a list of mandatory commands). 
54 <p class="level0">The valid SFTP commands are: 
55 <p class="level1">
56 <p class="level0"><a name="chgrp"></a><span class="nroffip">chgrp group file</span> 
57 <p class="level1">The chgrp command sets the group ID of the file named by the file operand to the group ID specified by the group operand. The group operand is a decimal integer group ID. 
58 <p class="level0"><a name="chmod"></a><span class="nroffip">chmod mode file</span> 
59 <p class="level1">The chmod command modifies the file mode bits of the specified file. The mode operand is an octal integer mode number. 
60 <p class="level0"><a name="chown"></a><span class="nroffip">chown user file</span> 
61 <p class="level1">The chown command sets the owner of the file named by the file operand to the user ID specified by the user operand. The user operand is a decimal integer user ID. 
62 <p class="level0"><a name="ln"></a><span class="nroffip">ln source_file target_file</span> 
63 <p class="level1">The ln and symlink commands create a symbolic link at the target_file location pointing to the source_file location. 
64 <p class="level0"><a name="mkdir"></a><span class="nroffip">mkdir directory_name</span> 
65 <p class="level1">The mkdir command creates the directory named by the directory_name operand. 
66 <p class="level0"><a name="pwd"></a><span class="nroffip">pwd</span> 
67 <p class="level1">The pwd command returns the absolute pathname of the current working directory. 
68 <p class="level0"><a name="rename"></a><span class="nroffip">rename source target</span> 
69 <p class="level1">The rename command renames the file or directory named by the source operand to the destination path named by the target operand. 
70 <p class="level0"><a name="rm"></a><span class="nroffip">rm file</span> 
71 <p class="level1">The rm command removes the file specified by the file operand. 
72 <p class="level0"><a name="rmdir"></a><span class="nroffip">rmdir directory</span> 
73 <p class="level1">The rmdir command removes the directory entry specified by the directory operand, provided it is empty. 
74 <p class="level0"><a name="symlink"></a><span class="nroffip">symlink source_file target_file</span> 
75 <p class="level1">See ln. 
76 <p class="level0"><a name="DEFAULT"></a><h2 class="nroffsh">DEFAULT</h2>
77 <p class="level0">NULL <a name="PROTOCOLS"></a><h2 class="nroffsh">PROTOCOLS</h2>
78 <p class="level0">SFTP and FTP <a name="EXAMPLE"></a><h2 class="nroffsh">EXAMPLE</h2>
79 <p class="level0">TODO <a name="AVAILABILITY"></a><h2 class="nroffsh">AVAILABILITY</h2>
80 <p class="level0">SFTP support added in 7.16.3. *-prefix for SFTP added in 7.24.0 <a name="RETURN"></a><h2 class="nroffsh">RETURN VALUE</h2>
81 <p class="level0">Returns CURLE_OK <a name="SEE"></a><h2 class="nroffsh">SEE ALSO</h2>
82 <p class="level0"><a Class="manpage" href="./CURLOPT_POSTQUOTE.html">CURLOPT_POSTQUOTE</a>, <a Class="manpage" href="./CURLOPT_PREQUOTE.html">CURLOPT_PREQUOTE</a>, <span Class="manpage"> </span> <p class="roffit">
83  This HTML page was made with <a href="http://daniel.haxx.se/projects/roffit/">roffit</a>.
84 </body></html>