xref: /aosp_15_r20/external/curl/docs/cmdline-opts/write-out.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: write-out
5*6236dae4SAndroid Build Coastguard WorkerShort: w
6*6236dae4SAndroid Build Coastguard WorkerArg: <format>
7*6236dae4SAndroid Build Coastguard WorkerHelp: Output FORMAT after completion
8*6236dae4SAndroid Build Coastguard WorkerCategory: verbose
9*6236dae4SAndroid Build Coastguard WorkerAdded: 6.5
10*6236dae4SAndroid Build Coastguard WorkerMulti: single
11*6236dae4SAndroid Build Coastguard WorkerSee-also:
12*6236dae4SAndroid Build Coastguard Worker  - verbose
13*6236dae4SAndroid Build Coastguard Worker  - head
14*6236dae4SAndroid Build Coastguard WorkerExample:
15*6236dae4SAndroid Build Coastguard Worker  - -w '%{response_code}\n' $URL
16*6236dae4SAndroid Build Coastguard Worker---
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard Worker# `--write-out`
19*6236dae4SAndroid Build Coastguard Worker
20*6236dae4SAndroid Build Coastguard WorkerMake curl display information on stdout after a completed transfer. The format
21*6236dae4SAndroid Build Coastguard Workeris a string that may contain plain text mixed with any number of variables.
22*6236dae4SAndroid Build Coastguard WorkerThe format can be specified as a literal "string", or you can have curl read
23*6236dae4SAndroid Build Coastguard Workerthe format from a file with "@filename" and to tell curl to read the format
24*6236dae4SAndroid Build Coastguard Workerfrom stdin you write "@-".
25*6236dae4SAndroid Build Coastguard Worker
26*6236dae4SAndroid Build Coastguard WorkerThe variables present in the output format are substituted by the value or
27*6236dae4SAndroid Build Coastguard Workertext that curl thinks fit, as described below. All variables are specified as
28*6236dae4SAndroid Build Coastguard Worker%{variable_name} and to output a normal % you just write them as %%. You can
29*6236dae4SAndroid Build Coastguard Workeroutput a newline by using \n, a carriage return with \r and a tab space with
30*6236dae4SAndroid Build Coastguard Worker\t.
31*6236dae4SAndroid Build Coastguard Worker
32*6236dae4SAndroid Build Coastguard WorkerThe output is by default written to standard output, but can be changed with
33*6236dae4SAndroid Build Coastguard Worker%{stderr} and %output{}.
34*6236dae4SAndroid Build Coastguard Worker
35*6236dae4SAndroid Build Coastguard WorkerOutput HTTP headers from the most recent request by using *%header{name}*
36*6236dae4SAndroid Build Coastguard Workerwhere *name* is the case insensitive name of the header (without the trailing
37*6236dae4SAndroid Build Coastguard Workercolon). The header contents are exactly as sent over the network, with leading
38*6236dae4SAndroid Build Coastguard Workerand trailing whitespace trimmed (added in 7.84.0).
39*6236dae4SAndroid Build Coastguard Worker
40*6236dae4SAndroid Build Coastguard WorkerSelect a specific target destination file to write the output to, by using
41*6236dae4SAndroid Build Coastguard Worker*%output{name}* (added in curl 8.3.0) where *name* is the full filename. The
42*6236dae4SAndroid Build Coastguard Workeroutput following that instruction is then written to that file. More than one
43*6236dae4SAndroid Build Coastguard Worker*%output{}* instruction can be specified in the same write-out argument. If
44*6236dae4SAndroid Build Coastguard Workerthe filename cannot be created, curl leaves the output destination to the one
45*6236dae4SAndroid Build Coastguard Workerused prior to the *%output{}* instruction. Use *%output{\>\>name}* to append
46*6236dae4SAndroid Build Coastguard Workerdata to an existing file.
47*6236dae4SAndroid Build Coastguard Worker
48*6236dae4SAndroid Build Coastguard WorkerThis output is done independently of if the file transfer was successful or
49*6236dae4SAndroid Build Coastguard Workernot.
50*6236dae4SAndroid Build Coastguard Worker
51*6236dae4SAndroid Build Coastguard WorkerIf the specified action or output specified with this option fails in any way,
52*6236dae4SAndroid Build Coastguard Workerit does not make curl return a (different) error.
53*6236dae4SAndroid Build Coastguard Worker
54*6236dae4SAndroid Build Coastguard Worker**NOTE:** On Windows, the %-symbol is a special symbol used to expand
55*6236dae4SAndroid Build Coastguard Workerenvironment variables. In batch files, all occurrences of % must be doubled
56*6236dae4SAndroid Build Coastguard Workerwhen using this option to properly escape. If this option is used at the
57*6236dae4SAndroid Build Coastguard Workercommand prompt then the % cannot be escaped and unintended expansion is
58*6236dae4SAndroid Build Coastguard Workerpossible.
59*6236dae4SAndroid Build Coastguard Worker
60*6236dae4SAndroid Build Coastguard WorkerThe variables available are:
61*6236dae4SAndroid Build Coastguard Worker
62*6236dae4SAndroid Build Coastguard Worker## `certs`
63*6236dae4SAndroid Build Coastguard WorkerOutput the certificate chain with details. Supported only by the OpenSSL,
64*6236dae4SAndroid Build Coastguard WorkerGnuTLS, Schannel and Secure Transport backends. (Added in 7.88.0)
65*6236dae4SAndroid Build Coastguard Worker
66*6236dae4SAndroid Build Coastguard Worker## `conn_id`
67*6236dae4SAndroid Build Coastguard WorkerThe connection identifier last used by the transfer. The connection id is
68*6236dae4SAndroid Build Coastguard Workerunique number among all connections using the same connection cache.
69*6236dae4SAndroid Build Coastguard Worker(Added in 8.2.0)
70*6236dae4SAndroid Build Coastguard Worker
71*6236dae4SAndroid Build Coastguard Worker## `content_type`
72*6236dae4SAndroid Build Coastguard WorkerThe Content-Type of the requested document, if there was any.
73*6236dae4SAndroid Build Coastguard Worker
74*6236dae4SAndroid Build Coastguard Worker## `errormsg`
75*6236dae4SAndroid Build Coastguard WorkerThe error message. (Added in 7.75.0)
76*6236dae4SAndroid Build Coastguard Worker
77*6236dae4SAndroid Build Coastguard Worker## `exitcode`
78*6236dae4SAndroid Build Coastguard WorkerThe numerical exit code of the transfer. (Added in 7.75.0)
79*6236dae4SAndroid Build Coastguard Worker
80*6236dae4SAndroid Build Coastguard Worker## `filename_effective`
81*6236dae4SAndroid Build Coastguard WorkerThe ultimate filename that curl writes out to. This is only meaningful if curl
82*6236dae4SAndroid Build Coastguard Workeris told to write to a file with the --remote-name or --output option. It is
83*6236dae4SAndroid Build Coastguard Workermost useful in combination with the --remote-header-name option.
84*6236dae4SAndroid Build Coastguard Worker(Added in 7.26.0)
85*6236dae4SAndroid Build Coastguard Worker
86*6236dae4SAndroid Build Coastguard Worker## `ftp_entry_path`
87*6236dae4SAndroid Build Coastguard WorkerThe initial path curl ended up in when logging on to the remote FTP
88*6236dae4SAndroid Build Coastguard Workerserver. (Added in 7.15.4)
89*6236dae4SAndroid Build Coastguard Worker
90*6236dae4SAndroid Build Coastguard Worker## `header_json`
91*6236dae4SAndroid Build Coastguard WorkerA JSON object with all HTTP response headers from the recent transfer. Values
92*6236dae4SAndroid Build Coastguard Workerare provided as arrays, since in the case of multiple headers there can be
93*6236dae4SAndroid Build Coastguard Workermultiple values. (Added in 7.83.0)
94*6236dae4SAndroid Build Coastguard Worker
95*6236dae4SAndroid Build Coastguard WorkerThe header names provided in lowercase, listed in order of appearance over the
96*6236dae4SAndroid Build Coastguard Workerwire. Except for duplicated headers. They are grouped on the first occurrence
97*6236dae4SAndroid Build Coastguard Workerof that header, each value is presented in the JSON array.
98*6236dae4SAndroid Build Coastguard Worker
99*6236dae4SAndroid Build Coastguard Worker## `http_code`
100*6236dae4SAndroid Build Coastguard WorkerThe numerical response code that was found in the last retrieved HTTP(S) or
101*6236dae4SAndroid Build Coastguard WorkerFTP(s) transfer.
102*6236dae4SAndroid Build Coastguard Worker
103*6236dae4SAndroid Build Coastguard Worker## `http_connect`
104*6236dae4SAndroid Build Coastguard WorkerThe numerical code that was found in the last response (from a proxy) to a
105*6236dae4SAndroid Build Coastguard Workercurl CONNECT request. (Added in 7.12.4)
106*6236dae4SAndroid Build Coastguard Worker
107*6236dae4SAndroid Build Coastguard Worker## `http_version`
108*6236dae4SAndroid Build Coastguard WorkerThe http version that was effectively used. (Added in 7.50.0)
109*6236dae4SAndroid Build Coastguard Worker
110*6236dae4SAndroid Build Coastguard Worker## `json`
111*6236dae4SAndroid Build Coastguard WorkerA JSON object with all available keys. (Added in 7.70.0)
112*6236dae4SAndroid Build Coastguard Worker
113*6236dae4SAndroid Build Coastguard Worker## `local_ip`
114*6236dae4SAndroid Build Coastguard WorkerThe IP address of the local end of the most recently done connection - can be
115*6236dae4SAndroid Build Coastguard Workereither IPv4 or IPv6. (Added in 7.29.0)
116*6236dae4SAndroid Build Coastguard Worker
117*6236dae4SAndroid Build Coastguard Worker## `local_port`
118*6236dae4SAndroid Build Coastguard WorkerThe local port number of the most recently done connection. (Added in 7.29.0)
119*6236dae4SAndroid Build Coastguard Worker
120*6236dae4SAndroid Build Coastguard Worker## `method`
121*6236dae4SAndroid Build Coastguard WorkerThe http method used in the most recent HTTP request. (Added in 7.72.0)
122*6236dae4SAndroid Build Coastguard Worker
123*6236dae4SAndroid Build Coastguard Worker## `num_certs`
124*6236dae4SAndroid Build Coastguard WorkerNumber of server certificates received in the TLS handshake. Supported only by
125*6236dae4SAndroid Build Coastguard Workerthe OpenSSL, GnuTLS, Schannel and Secure Transport backends.
126*6236dae4SAndroid Build Coastguard Worker(Added in 7.88.0)
127*6236dae4SAndroid Build Coastguard Worker
128*6236dae4SAndroid Build Coastguard Worker## `num_connects`
129*6236dae4SAndroid Build Coastguard WorkerNumber of new connects made in the recent transfer. (Added in 7.12.3)
130*6236dae4SAndroid Build Coastguard Worker
131*6236dae4SAndroid Build Coastguard Worker## `num_headers`
132*6236dae4SAndroid Build Coastguard WorkerThe number of response headers in the most recent request (restarted at each
133*6236dae4SAndroid Build Coastguard Workerredirect). Note that the status line IS NOT a header. (Added in 7.73.0)
134*6236dae4SAndroid Build Coastguard Worker
135*6236dae4SAndroid Build Coastguard Worker## `num_redirects`
136*6236dae4SAndroid Build Coastguard WorkerNumber of redirects that were followed in the request. (Added in 7.12.3)
137*6236dae4SAndroid Build Coastguard Worker
138*6236dae4SAndroid Build Coastguard Worker## `num_retries`
139*6236dae4SAndroid Build Coastguard WorkerNumber of retries actually performed when `--retry` has been used.
140*6236dae4SAndroid Build Coastguard Worker(Added in 8.9.0)
141*6236dae4SAndroid Build Coastguard Worker
142*6236dae4SAndroid Build Coastguard Worker## `onerror`
143*6236dae4SAndroid Build Coastguard WorkerThe rest of the output is only shown if the transfer returned a non-zero error.
144*6236dae4SAndroid Build Coastguard Worker(Added in 7.75.0)
145*6236dae4SAndroid Build Coastguard Worker
146*6236dae4SAndroid Build Coastguard Worker## `proxy_ssl_verify_result`
147*6236dae4SAndroid Build Coastguard WorkerThe result of the HTTPS proxy's SSL peer certificate verification that was
148*6236dae4SAndroid Build Coastguard Workerrequested. 0 means the verification was successful. (Added in 7.52.0)
149*6236dae4SAndroid Build Coastguard Worker
150*6236dae4SAndroid Build Coastguard Worker## `proxy_used`
151*6236dae4SAndroid Build Coastguard WorkerReturns 1 if the previous transfer used a proxy, otherwise 0. Useful to for
152*6236dae4SAndroid Build Coastguard Workerexample determine if a `NOPROXY` pattern matched the hostname or not. (Added
153*6236dae4SAndroid Build Coastguard Workerin 8.7.0)
154*6236dae4SAndroid Build Coastguard Worker
155*6236dae4SAndroid Build Coastguard Worker## `redirect_url`
156*6236dae4SAndroid Build Coastguard WorkerWhen an HTTP request was made without --location to follow redirects (or when
157*6236dae4SAndroid Build Coastguard Worker--max-redirs is met), this variable shows the actual URL a redirect
158*6236dae4SAndroid Build Coastguard Worker*would* have gone to. (Added in 7.18.2)
159*6236dae4SAndroid Build Coastguard Worker
160*6236dae4SAndroid Build Coastguard Worker## `referer`
161*6236dae4SAndroid Build Coastguard WorkerThe Referer: header, if there was any. (Added in 7.76.0)
162*6236dae4SAndroid Build Coastguard Worker
163*6236dae4SAndroid Build Coastguard Worker## `remote_ip`
164*6236dae4SAndroid Build Coastguard WorkerThe remote IP address of the most recently done connection - can be either
165*6236dae4SAndroid Build Coastguard WorkerIPv4 or IPv6. (Added in 7.29.0)
166*6236dae4SAndroid Build Coastguard Worker
167*6236dae4SAndroid Build Coastguard Worker## `remote_port`
168*6236dae4SAndroid Build Coastguard WorkerThe remote port number of the most recently done connection. (Added in 7.29.0)
169*6236dae4SAndroid Build Coastguard Worker
170*6236dae4SAndroid Build Coastguard Worker## `response_code`
171*6236dae4SAndroid Build Coastguard WorkerThe numerical response code that was found in the last transfer (formerly
172*6236dae4SAndroid Build Coastguard Workerknown as "http_code"). (Added in 7.18.2)
173*6236dae4SAndroid Build Coastguard Worker
174*6236dae4SAndroid Build Coastguard Worker## `scheme`
175*6236dae4SAndroid Build Coastguard WorkerThe URL scheme (sometimes called protocol) that was effectively used. (Added in 7.52.0)
176*6236dae4SAndroid Build Coastguard Worker
177*6236dae4SAndroid Build Coastguard Worker## `size_download`
178*6236dae4SAndroid Build Coastguard WorkerThe total amount of bytes that were downloaded. This is the size of the
179*6236dae4SAndroid Build Coastguard Workerbody/data that was transferred, excluding headers.
180*6236dae4SAndroid Build Coastguard Worker
181*6236dae4SAndroid Build Coastguard Worker## `size_header`
182*6236dae4SAndroid Build Coastguard WorkerThe total amount of bytes of the downloaded headers.
183*6236dae4SAndroid Build Coastguard Worker
184*6236dae4SAndroid Build Coastguard Worker## `size_request`
185*6236dae4SAndroid Build Coastguard WorkerThe total amount of bytes that were sent in the HTTP request.
186*6236dae4SAndroid Build Coastguard Worker
187*6236dae4SAndroid Build Coastguard Worker## `size_upload`
188*6236dae4SAndroid Build Coastguard WorkerThe total amount of bytes that were uploaded. This is the size of the
189*6236dae4SAndroid Build Coastguard Workerbody/data that was transferred, excluding headers.
190*6236dae4SAndroid Build Coastguard Worker
191*6236dae4SAndroid Build Coastguard Worker## `speed_download`
192*6236dae4SAndroid Build Coastguard WorkerThe average download speed that curl measured for the complete download. Bytes
193*6236dae4SAndroid Build Coastguard Workerper second.
194*6236dae4SAndroid Build Coastguard Worker
195*6236dae4SAndroid Build Coastguard Worker## `speed_upload`
196*6236dae4SAndroid Build Coastguard WorkerThe average upload speed that curl measured for the complete upload. Bytes per
197*6236dae4SAndroid Build Coastguard Workersecond.
198*6236dae4SAndroid Build Coastguard Worker
199*6236dae4SAndroid Build Coastguard Worker## `ssl_verify_result`
200*6236dae4SAndroid Build Coastguard WorkerThe result of the SSL peer certificate verification that was requested. 0
201*6236dae4SAndroid Build Coastguard Workermeans the verification was successful. (Added in 7.19.0)
202*6236dae4SAndroid Build Coastguard Worker
203*6236dae4SAndroid Build Coastguard Worker## `stderr`
204*6236dae4SAndroid Build Coastguard WorkerFrom this point on, the --write-out output is written to standard
205*6236dae4SAndroid Build Coastguard Workererror. (Added in 7.63.0)
206*6236dae4SAndroid Build Coastguard Worker
207*6236dae4SAndroid Build Coastguard Worker## `stdout`
208*6236dae4SAndroid Build Coastguard WorkerFrom this point on, the --write-out output is written to standard output.
209*6236dae4SAndroid Build Coastguard WorkerThis is the default, but can be used to switch back after switching to stderr.
210*6236dae4SAndroid Build Coastguard Worker(Added in 7.63.0)
211*6236dae4SAndroid Build Coastguard Worker
212*6236dae4SAndroid Build Coastguard Worker## `time_appconnect`
213*6236dae4SAndroid Build Coastguard WorkerThe time, in seconds, it took from the start until the SSL/SSH/etc
214*6236dae4SAndroid Build Coastguard Workerconnect/handshake to the remote host was completed. (Added in 7.19.0)
215*6236dae4SAndroid Build Coastguard Worker
216*6236dae4SAndroid Build Coastguard Worker## `time_connect`
217*6236dae4SAndroid Build Coastguard WorkerThe time, in seconds, it took from the start until the TCP connect to the
218*6236dae4SAndroid Build Coastguard Workerremote host (or proxy) was completed.
219*6236dae4SAndroid Build Coastguard Worker
220*6236dae4SAndroid Build Coastguard Worker## `time_namelookup`
221*6236dae4SAndroid Build Coastguard WorkerThe time, in seconds, it took from the start until the name resolving was
222*6236dae4SAndroid Build Coastguard Workercompleted.
223*6236dae4SAndroid Build Coastguard Worker
224*6236dae4SAndroid Build Coastguard Worker## `time_posttransfer`
225*6236dae4SAndroid Build Coastguard WorkerThe time it took from the start until the last byte is sent by libcurl.
226*6236dae4SAndroid Build Coastguard WorkerIn microseconds. (Added in 8.10.0)
227*6236dae4SAndroid Build Coastguard Worker
228*6236dae4SAndroid Build Coastguard Worker## `time_pretransfer`
229*6236dae4SAndroid Build Coastguard WorkerThe time, in seconds, it took from the start until the file transfer was just
230*6236dae4SAndroid Build Coastguard Workerabout to begin. This includes all pre-transfer commands and negotiations that
231*6236dae4SAndroid Build Coastguard Workerare specific to the particular protocol(s) involved.
232*6236dae4SAndroid Build Coastguard Worker
233*6236dae4SAndroid Build Coastguard Worker## `time_redirect`
234*6236dae4SAndroid Build Coastguard WorkerThe time, in seconds, it took for all redirection steps including name lookup,
235*6236dae4SAndroid Build Coastguard Workerconnect, pretransfer and transfer before the final transaction was
236*6236dae4SAndroid Build Coastguard Workerstarted. `time_redirect` shows the complete execution time for multiple
237*6236dae4SAndroid Build Coastguard Workerredirections. (Added in 7.12.3)
238*6236dae4SAndroid Build Coastguard Worker
239*6236dae4SAndroid Build Coastguard Worker## `time_starttransfer`
240*6236dae4SAndroid Build Coastguard WorkerThe time, in seconds, it took from the start until the first byte is received.
241*6236dae4SAndroid Build Coastguard WorkerThis includes time_pretransfer and also the time the server needed to calculate
242*6236dae4SAndroid Build Coastguard Workerthe result.
243*6236dae4SAndroid Build Coastguard Worker
244*6236dae4SAndroid Build Coastguard Worker## `time_total`
245*6236dae4SAndroid Build Coastguard WorkerThe total time, in seconds, that the full operation lasted.
246*6236dae4SAndroid Build Coastguard Worker
247*6236dae4SAndroid Build Coastguard Worker## `url`
248*6236dae4SAndroid Build Coastguard WorkerThe URL that was fetched. (Added in 7.75.0)
249*6236dae4SAndroid Build Coastguard Worker
250*6236dae4SAndroid Build Coastguard Worker## `url.scheme`
251*6236dae4SAndroid Build Coastguard WorkerThe scheme part of the URL that was fetched. (Added in 8.1.0)
252*6236dae4SAndroid Build Coastguard Worker
253*6236dae4SAndroid Build Coastguard Worker## `url.user`
254*6236dae4SAndroid Build Coastguard WorkerThe user part of the URL that was fetched. (Added in 8.1.0)
255*6236dae4SAndroid Build Coastguard Worker
256*6236dae4SAndroid Build Coastguard Worker## `url.password`
257*6236dae4SAndroid Build Coastguard WorkerThe password part of the URL that was fetched. (Added in 8.1.0)
258*6236dae4SAndroid Build Coastguard Worker
259*6236dae4SAndroid Build Coastguard Worker## `url.options`
260*6236dae4SAndroid Build Coastguard WorkerThe options part of the URL that was fetched. (Added in 8.1.0)
261*6236dae4SAndroid Build Coastguard Worker
262*6236dae4SAndroid Build Coastguard Worker## `url.host`
263*6236dae4SAndroid Build Coastguard WorkerThe host part of the URL that was fetched. (Added in 8.1.0)
264*6236dae4SAndroid Build Coastguard Worker
265*6236dae4SAndroid Build Coastguard Worker## `url.port`
266*6236dae4SAndroid Build Coastguard WorkerThe port number of the URL that was fetched. If no port number was specified
267*6236dae4SAndroid Build Coastguard Workerand the URL scheme is known, that scheme's default port number is
268*6236dae4SAndroid Build Coastguard Workershown. (Added in 8.1.0)
269*6236dae4SAndroid Build Coastguard Worker
270*6236dae4SAndroid Build Coastguard Worker## `url.path`
271*6236dae4SAndroid Build Coastguard WorkerThe path part of the URL that was fetched. (Added in 8.1.0)
272*6236dae4SAndroid Build Coastguard Worker
273*6236dae4SAndroid Build Coastguard Worker## `url.query`
274*6236dae4SAndroid Build Coastguard WorkerThe query part of the URL that was fetched. (Added in 8.1.0)
275*6236dae4SAndroid Build Coastguard Worker
276*6236dae4SAndroid Build Coastguard Worker## `url.fragment`
277*6236dae4SAndroid Build Coastguard WorkerThe fragment part of the URL that was fetched. (Added in 8.1.0)
278*6236dae4SAndroid Build Coastguard Worker
279*6236dae4SAndroid Build Coastguard Worker## `url.zoneid`
280*6236dae4SAndroid Build Coastguard WorkerThe zone id part of the URL that was fetched. (Added in 8.1.0)
281*6236dae4SAndroid Build Coastguard Worker
282*6236dae4SAndroid Build Coastguard Worker## `urle.scheme`
283*6236dae4SAndroid Build Coastguard WorkerThe scheme part of the effective (last) URL that was fetched. (Added in 8.1.0)
284*6236dae4SAndroid Build Coastguard Worker
285*6236dae4SAndroid Build Coastguard Worker## `urle.user`
286*6236dae4SAndroid Build Coastguard WorkerThe user part of the effective (last) URL that was fetched. (Added in 8.1.0)
287*6236dae4SAndroid Build Coastguard Worker
288*6236dae4SAndroid Build Coastguard Worker## `urle.password`
289*6236dae4SAndroid Build Coastguard WorkerThe password part of the effective (last) URL that was fetched. (Added in 8.1.0)
290*6236dae4SAndroid Build Coastguard Worker
291*6236dae4SAndroid Build Coastguard Worker## `urle.options`
292*6236dae4SAndroid Build Coastguard WorkerThe options part of the effective (last) URL that was fetched. (Added in 8.1.0)
293*6236dae4SAndroid Build Coastguard Worker
294*6236dae4SAndroid Build Coastguard Worker## `urle.host`
295*6236dae4SAndroid Build Coastguard WorkerThe host part of the effective (last) URL that was fetched. (Added in 8.1.0)
296*6236dae4SAndroid Build Coastguard Worker
297*6236dae4SAndroid Build Coastguard Worker## `urle.port`
298*6236dae4SAndroid Build Coastguard WorkerThe port number of the effective (last) URL that was fetched. If no port
299*6236dae4SAndroid Build Coastguard Workernumber was specified, but the URL scheme is known, that scheme's default port
300*6236dae4SAndroid Build Coastguard Workernumber is shown. (Added in 8.1.0)
301*6236dae4SAndroid Build Coastguard Worker
302*6236dae4SAndroid Build Coastguard Worker## `urle.path`
303*6236dae4SAndroid Build Coastguard WorkerThe path part of the effective (last) URL that was fetched. (Added in 8.1.0)
304*6236dae4SAndroid Build Coastguard Worker
305*6236dae4SAndroid Build Coastguard Worker## `urle.query`
306*6236dae4SAndroid Build Coastguard WorkerThe query part of the effective (last) URL that was fetched. (Added in 8.1.0)
307*6236dae4SAndroid Build Coastguard Worker
308*6236dae4SAndroid Build Coastguard Worker## `urle.fragment`
309*6236dae4SAndroid Build Coastguard WorkerThe fragment part of the effective (last) URL that was fetched. (Added in 8.1.0)
310*6236dae4SAndroid Build Coastguard Worker
311*6236dae4SAndroid Build Coastguard Worker## `urle.zoneid`
312*6236dae4SAndroid Build Coastguard WorkerThe zone id part of the effective (last) URL that was fetched. (Added in 8.1.0)
313*6236dae4SAndroid Build Coastguard Worker
314*6236dae4SAndroid Build Coastguard Worker## `urlnum`
315*6236dae4SAndroid Build Coastguard WorkerThe URL index number of this transfer, 0-indexed. Unglobbed URLs share the
316*6236dae4SAndroid Build Coastguard Workersame index number as the origin globbed URL. (Added in 7.75.0)
317*6236dae4SAndroid Build Coastguard Worker
318*6236dae4SAndroid Build Coastguard Worker## `url_effective`
319*6236dae4SAndroid Build Coastguard WorkerThe URL that was fetched last. This is most meaningful if you have told curl
320*6236dae4SAndroid Build Coastguard Workerto follow location: headers.
321*6236dae4SAndroid Build Coastguard Worker
322*6236dae4SAndroid Build Coastguard Worker## `xfer_id`
323*6236dae4SAndroid Build Coastguard WorkerThe numerical identifier of the last transfer done. -1 if no transfer has been
324*6236dae4SAndroid Build Coastguard Workerstarted yet for the handle. The transfer id is unique among all transfers
325*6236dae4SAndroid Build Coastguard Workerperformed using the same connection cache.
326*6236dae4SAndroid Build Coastguard Worker(Added in 8.2.0)
327