smtp: use the upload buffer size for scratch buffer malloc
[platform/upstream/curl.git] / docs / cmdline-opts / page-footer
1 .SH FILES
2 .I ~/.curlrc
3 .RS
4 Default config file, see --config for details.
5 .SH ENVIRONMENT
6 The environment variables can be specified in lower case or upper case. The
7 lower case version has precedence. http_proxy is an exception as it is only
8 available in lower case.
9
10 Using an environment variable to set the proxy has the same effect as using
11 the --proxy option.
12
13 .IP "http_proxy [protocol://]<host>[:port]"
14 Sets the proxy server to use for HTTP.
15 .IP "HTTPS_PROXY [protocol://]<host>[:port]"
16 Sets the proxy server to use for HTTPS.
17 .IP "[url-protocol]_PROXY [protocol://]<host>[:port]"
18 Sets the proxy server to use for [url-protocol], where the protocol is a
19 protocol that curl supports and as specified in a URL. FTP, FTPS, POP3, IMAP,
20 SMTP, LDAP etc.
21 .IP "ALL_PROXY [protocol://]<host>[:port]"
22 Sets the proxy server to use if no protocol-specific proxy is set.
23 .IP "NO_PROXY <comma-separated list of hosts>"
24 list of host names that shouldn't go through any proxy. If set to a asterisk
25 \&'*' only, it matches all hosts.
26
27 This environment variable disables use of the proxy even when specified with
28 the --proxy option. That is
29 .B NO_PROXY=direct.example.com curl -x http://proxy.example.com
30 .B http://direct.example.com
31 accesses the target URL directly, and
32 .B NO_PROXY=direct.example.com curl -x http://proxy.example.com
33 .B http://somewhere.example.com
34 accesses the target URL through the proxy.
35
36 The list of host names can also be include numerical IP addresses, and IPv6
37 versions should then be given without enclosing brackets.
38
39 .SH "PROXY PROTOCOL PREFIXES"
40 Since curl version 7.21.7, the proxy string may be specified with a
41 protocol:// prefix to specify alternative proxy protocols.
42
43 If no protocol is specified in the proxy string or if the string doesn't match
44 a supported one, the proxy will be treated as an HTTP proxy.
45
46 The supported proxy protocol prefixes are as follows:
47 .IP "http://"
48 Makes it use it as a HTTP proxy. The default if no scheme prefix is used.
49 .IP "https://"
50 Makes it treated as a \fBHTTPS\fP proxy.
51 .IP "socks4://"
52 Makes it the equivalent of --socks4
53 .IP "socks4a://"
54 Makes it the equivalent of --socks4a
55 .IP "socks5://"
56 Makes it the equivalent of --socks5
57 .IP "socks5h://"
58 Makes it the equivalent of --socks5-hostname
59 .SH EXIT CODES
60 There are a bunch of different error codes and their corresponding error
61 messages that may appear during bad conditions. At the time of this writing,
62 the exit codes are:
63 .IP 1
64 Unsupported protocol. This build of curl has no support for this protocol.
65 .IP 2
66 Failed to initialize.
67 .IP 3
68 URL malformed. The syntax was not correct.
69 .IP 4
70 A feature or option that was needed to perform the desired request was not
71 enabled or was explicitly disabled at build-time. To make curl able to do
72 this, you probably need another build of libcurl!
73 .IP 5
74 Couldn't resolve proxy. The given proxy host could not be resolved.
75 .IP 6
76 Couldn't resolve host. The given remote host was not resolved.
77 .IP 7
78 Failed to connect to host.
79 .IP 8
80 Weird server reply. The server sent data curl couldn't parse.
81 .IP 9
82 FTP access denied. The server denied login or denied access to the particular
83 resource or directory you wanted to reach. Most often you tried to change to a
84 directory that doesn't exist on the server.
85 .IP 10
86 FTP accept failed. While waiting for the server to connect back when an active
87 FTP session is used, an error code was sent over the control connection or
88 similar.
89 .IP 11
90 FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request.
91 .IP 12
92 During an active FTP session while waiting for the server to connect back to
93 curl, the timeout expired.
94 .IP 13
95 FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request.
96 .IP 14
97 FTP weird 227 format. Curl couldn't parse the 227-line the server sent.
98 .IP 15
99 FTP can't get host. Couldn't resolve the host IP we got in the 227-line.
100 .IP 16
101 HTTP/2 error. A problem was detected in the HTTP2 framing layer. This is
102 somewhat generic and can be one out of several problems, see the error message
103 for details.
104 .IP 17
105 FTP couldn't set binary. Couldn't change transfer method to binary.
106 .IP 18
107 Partial file. Only a part of the file was transferred.
108 .IP 19
109 FTP couldn't download/access the given file, the RETR (or similar) command
110 failed.
111 .IP 21
112 FTP quote error. A quote command returned error from the server.
113 .IP 22
114 HTTP page not retrieved. The requested url was not found or returned another
115 error with the HTTP error code being 400 or above. This return code only
116 appears if --fail is used.
117 .IP 23
118 Write error. Curl couldn't write data to a local filesystem or similar.
119 .IP 25
120 FTP couldn't STOR file. The server denied the STOR operation, used for FTP
121 uploading.
122 .IP 26
123 Read error. Various reading problems.
124 .IP 27
125 Out of memory. A memory allocation request failed.
126 .IP 28
127 Operation timeout. The specified time-out period was reached according to the
128 conditions.
129 .IP 30
130 FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT
131 command, try doing a transfer using PASV instead!
132 .IP 31
133 FTP couldn't use REST. The REST command failed. This command is used for
134 resumed FTP transfers.
135 .IP 33
136 HTTP range error. The range "command" didn't work.
137 .IP 34
138 HTTP post error. Internal post-request generation error.
139 .IP 35
140 SSL connect error. The SSL handshaking failed.
141 .IP 36
142 Bad download resume. Couldn't continue an earlier aborted download.
143 .IP 37
144 FILE couldn't read file. Failed to open the file. Permissions?
145 .IP 38
146 LDAP cannot bind. LDAP bind operation failed.
147 .IP 39
148 LDAP search failed.
149 .IP 41
150 Function not found. A required LDAP function was not found.
151 .IP 42
152 Aborted by callback. An application told curl to abort the operation.
153 .IP 43
154 Internal error. A function was called with a bad parameter.
155 .IP 45
156 Interface error. A specified outgoing interface could not be used.
157 .IP 47
158 Too many redirects. When following redirects, curl hit the maximum amount.
159 .IP 48
160 Unknown option specified to libcurl. This indicates that you passed a weird
161 option to curl that was passed on to libcurl and rejected. Read up in the
162 manual!
163 .IP 49
164 Malformed telnet option.
165 .IP 51
166 The peer's SSL certificate or SSH MD5 fingerprint was not OK.
167 .IP 52
168 The server didn't reply anything, which here is considered an error.
169 .IP 53
170 SSL crypto engine not found.
171 .IP 54
172 Cannot set SSL crypto engine as default.
173 .IP 55
174 Failed sending network data.
175 .IP 56
176 Failure in receiving network data.
177 .IP 58
178 Problem with the local certificate.
179 .IP 59
180 Couldn't use specified SSL cipher.
181 .IP 60
182 Peer certificate cannot be authenticated with known CA certificates.
183 .IP 61
184 Unrecognized transfer encoding.
185 .IP 62
186 Invalid LDAP URL.
187 .IP 63
188 Maximum file size exceeded.
189 .IP 64
190 Requested FTP SSL level failed.
191 .IP 65
192 Sending the data requires a rewind that failed.
193 .IP 66
194 Failed to initialise SSL Engine.
195 .IP 67
196 The user name, password, or similar was not accepted and curl failed to log in.
197 .IP 68
198 File not found on TFTP server.
199 .IP 69
200 Permission problem on TFTP server.
201 .IP 70
202 Out of disk space on TFTP server.
203 .IP 71
204 Illegal TFTP operation.
205 .IP 72
206 Unknown TFTP transfer ID.
207 .IP 73
208 File already exists (TFTP).
209 .IP 74
210 No such user (TFTP).
211 .IP 75
212 Character conversion failed.
213 .IP 76
214 Character conversion functions required.
215 .IP 77
216 Problem with reading the SSL CA cert (path? access rights?).
217 .IP 78
218 The resource referenced in the URL does not exist.
219 .IP 79
220 An unspecified error occurred during the SSH session.
221 .IP 80
222 Failed to shut down the SSL connection.
223 .IP 82
224 Could not load CRL file, missing or wrong format (added in 7.19.0).
225 .IP 83
226 Issuer check failed (added in 7.19.0).
227 .IP 84
228 The FTP PRET command failed
229 .IP 85
230 RTSP: mismatch of CSeq numbers
231 .IP 86
232 RTSP: mismatch of Session Identifiers
233 .IP 87
234 unable to parse FTP file list
235 .IP 88
236 FTP chunk callback reported error
237 .IP 89
238 No connection available, the session will be queued
239 .IP 90
240 SSL public key does not matched pinned public key
241 .IP 91
242 Invalid SSL certificate status.
243 .IP 92
244 Stream error in HTTP/2 framing layer.
245 .IP XX
246 More error codes will appear here in future releases. The existing ones
247 are meant to never change.
248 .SH AUTHORS / CONTRIBUTORS
249 Daniel Stenberg is the main author, but the whole list of contributors is
250 found in the separate THANKS file.
251 .SH WWW
252 https://curl.haxx.se
253 .SH "SEE ALSO"
254 .BR ftp (1),
255 .BR wget (1)