1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard Workerscript 5*6236dae4SAndroid Build Coastguard Workerdocumentation 6*6236dae4SAndroid Build Coastguard Workermanagen 7*6236dae4SAndroid Build Coastguard Worker</keywords> 8*6236dae4SAndroid Build Coastguard Worker</info> 9*6236dae4SAndroid Build Coastguard Worker 10*6236dae4SAndroid Build Coastguard Worker# 11*6236dae4SAndroid Build Coastguard Worker# Client-side 12*6236dae4SAndroid Build Coastguard Worker<client> 13*6236dae4SAndroid Build Coastguard Worker<server> 14*6236dae4SAndroid Build Coastguard Workernone 15*6236dae4SAndroid Build Coastguard Worker</server> 16*6236dae4SAndroid Build Coastguard Worker 17*6236dae4SAndroid Build Coastguard Worker<name> 18*6236dae4SAndroid Build Coastguard Workermanagen makes ASCII page 19*6236dae4SAndroid Build Coastguard Worker</name> 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/mainpage.idx"> 22*6236dae4SAndroid Build Coastguard Worker_header.md 23*6236dae4SAndroid Build Coastguard Worker%options 24*6236dae4SAndroid Build Coastguard Worker_footer.md 25*6236dae4SAndroid Build Coastguard Worker</file> 26*6236dae4SAndroid Build Coastguard Worker 27*6236dae4SAndroid Build Coastguard Worker<file1 name="%LOGDIR/_header.md"> 28*6236dae4SAndroid Build Coastguard Worker<!-- Copyright (C) Daniel Stenberg, <[email protected]>, et al. --> 29*6236dae4SAndroid Build Coastguard Worker<!-- SPDX-License-Identifier: curl --> 30*6236dae4SAndroid Build Coastguard Worker# DESCRIPTION 31*6236dae4SAndroid Build Coastguard Worker 32*6236dae4SAndroid Build Coastguard Worker**curl** is a tool for transferring data from or to a server using URLs. It 33*6236dae4SAndroid Build Coastguard Workersupports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, 34*6236dae4SAndroid Build Coastguard WorkerIMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, 35*6236dae4SAndroid Build Coastguard WorkerSMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. 36*6236dae4SAndroid Build Coastguard Worker 37*6236dae4SAndroid Build Coastguard Workercurl is powered by libcurl for all transfer-related features. See 38*6236dae4SAndroid Build Coastguard Worker*libcurl(3)* for details. 39*6236dae4SAndroid Build Coastguard Worker</file1> 40*6236dae4SAndroid Build Coastguard Worker<file2 name="%LOGDIR/option1.md"> 41*6236dae4SAndroid Build Coastguard Worker--- 42*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al. 43*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl 44*6236dae4SAndroid Build Coastguard WorkerShort: v 45*6236dae4SAndroid Build Coastguard WorkerLong: fakeitreal 46*6236dae4SAndroid Build Coastguard WorkerMutexed: trace trace-ascii 47*6236dae4SAndroid Build Coastguard WorkerHelp: Make the operation more talkative 48*6236dae4SAndroid Build Coastguard WorkerCategory: important verbose global 49*6236dae4SAndroid Build Coastguard WorkerAdded: 4.0 50*6236dae4SAndroid Build Coastguard WorkerMulti: boolean 51*6236dae4SAndroid Build Coastguard WorkerScope: global 52*6236dae4SAndroid Build Coastguard WorkerSee-also: 53*6236dae4SAndroid Build Coastguard Worker - include 54*6236dae4SAndroid Build Coastguard Worker - silent 55*6236dae4SAndroid Build Coastguard Worker - trace 56*6236dae4SAndroid Build Coastguard Worker - trace-ascii 57*6236dae4SAndroid Build Coastguard WorkerExample: 58*6236dae4SAndroid Build Coastguard Worker - --verbose $URL 59*6236dae4SAndroid Build Coastguard Worker--- 60*6236dae4SAndroid Build Coastguard Worker 61*6236dae4SAndroid Build Coastguard Worker# `--verbose` 62*6236dae4SAndroid Build Coastguard Worker 63*6236dae4SAndroid Build Coastguard WorkerMakes curl verbose during the operation. Useful for debugging and seeing 64*6236dae4SAndroid Build Coastguard Workerwhat's going on under the hood. A line starting with \> means header data sent 65*6236dae4SAndroid Build Coastguard Workerby curl, \< means header data received by curl that is hidden in normal cases, 66*6236dae4SAndroid Build Coastguard Workerand a line starting with * means additional info provided by curl. 67*6236dae4SAndroid Build Coastguard Worker 68*6236dae4SAndroid Build Coastguard WorkerIf you only want HTTP headers in the output, --include or --dump-header might 69*6236dae4SAndroid Build Coastguard Workerbe more suitable options. 70*6236dae4SAndroid Build Coastguard Worker 71*6236dae4SAndroid Build Coastguard WorkerIf you think this option still does not give you enough details, consider using 72*6236dae4SAndroid Build Coastguard Worker--trace or --trace-ascii instead. 73*6236dae4SAndroid Build Coastguard Worker 74*6236dae4SAndroid Build Coastguard WorkerNote that verbose output of curl activities and network traffic might contain 75*6236dae4SAndroid Build Coastguard Workersensitive data, including usernames, credentials or secret data content. Be 76*6236dae4SAndroid Build Coastguard Workeraware and be careful when sharing trace logs with others. 77*6236dae4SAndroid Build Coastguard Worker</file2> 78*6236dae4SAndroid Build Coastguard Worker<file3 name="%LOGDIR/option2.md"> 79*6236dae4SAndroid Build Coastguard Worker--- 80*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al. 81*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl 82*6236dae4SAndroid Build Coastguard WorkerLong: proto 83*6236dae4SAndroid Build Coastguard WorkerArg: <protocols> 84*6236dae4SAndroid Build Coastguard WorkerHelp: Enable/disable PROTOCOLS 85*6236dae4SAndroid Build Coastguard WorkerAdded: 7.20.2 86*6236dae4SAndroid Build Coastguard WorkerCategory: connection curl 87*6236dae4SAndroid Build Coastguard WorkerMulti: single 88*6236dae4SAndroid Build Coastguard WorkerSee-also: 89*6236dae4SAndroid Build Coastguard Worker - fakeitreal 90*6236dae4SAndroid Build Coastguard Worker - proto-default 91*6236dae4SAndroid Build Coastguard WorkerExample: 92*6236dae4SAndroid Build Coastguard Worker - --proto =http,https,sftp $URL 93*6236dae4SAndroid Build Coastguard Worker--- 94*6236dae4SAndroid Build Coastguard Worker 95*6236dae4SAndroid Build Coastguard Worker# `--proto` 96*6236dae4SAndroid Build Coastguard Worker 97*6236dae4SAndroid Build Coastguard WorkerLimit what protocols to allow for transfers. Protocols are evaluated left to 98*6236dae4SAndroid Build Coastguard Workerright, are comma separated, and are each a protocol name or 'all', optionally 99*6236dae4SAndroid Build Coastguard Workerprefixed by zero or more modifiers. Available modifiers are: 100*6236dae4SAndroid Build Coastguard Worker 101*6236dae4SAndroid Build Coastguard Worker## + 102*6236dae4SAndroid Build Coastguard WorkerPermit this protocol in addition to protocols already permitted (this is 103*6236dae4SAndroid Build Coastguard Workerthe default if no modifier is used). 104*6236dae4SAndroid Build Coastguard Worker 105*6236dae4SAndroid Build Coastguard Worker## - 106*6236dae4SAndroid Build Coastguard WorkerDeny this protocol, removing it from the list of protocols already permitted. 107*6236dae4SAndroid Build Coastguard Worker 108*6236dae4SAndroid Build Coastguard Worker## = 109*6236dae4SAndroid Build Coastguard WorkerPermit only this protocol (ignoring the list already permitted), though 110*6236dae4SAndroid Build Coastguard Workersubject to later modification by subsequent entries in the comma separated 111*6236dae4SAndroid Build Coastguard Workerlist. 112*6236dae4SAndroid Build Coastguard Worker 113*6236dae4SAndroid Build Coastguard Worker## 114*6236dae4SAndroid Build Coastguard Worker 115*6236dae4SAndroid Build Coastguard WorkerFor example: --proto -ftps uses the default protocols, but disables ftps 116*6236dae4SAndroid Build Coastguard Worker 117*6236dae4SAndroid Build Coastguard Worker--proto -all,https,+http only enables http and https 118*6236dae4SAndroid Build Coastguard Worker 119*6236dae4SAndroid Build Coastguard Worker--proto =http,https also only enables http and https 120*6236dae4SAndroid Build Coastguard Worker 121*6236dae4SAndroid Build Coastguard WorkerUnknown and disabled protocols produce a warning. This allows scripts to 122*6236dae4SAndroid Build Coastguard Workersafely rely on being able to disable potentially dangerous protocols, without 123*6236dae4SAndroid Build Coastguard Workerrelying upon support for that protocol being built into curl to avoid an error. 124*6236dae4SAndroid Build Coastguard Worker 125*6236dae4SAndroid Build Coastguard WorkerThis option can be used multiple times, in which case the effect is the same 126*6236dae4SAndroid Build Coastguard Workeras concatenating the protocols into one instance of the option. 127*6236dae4SAndroid Build Coastguard Worker</file3> 128*6236dae4SAndroid Build Coastguard Worker<file4 name="%LOGDIR/_footer.md"> 129*6236dae4SAndroid Build Coastguard Worker<!-- Copyright (C) Daniel Stenberg, <[email protected]>, et al. --> 130*6236dae4SAndroid Build Coastguard Worker<!-- SPDX-License-Identifier: curl --> 131*6236dae4SAndroid Build Coastguard Worker# PROXY PROTOCOL PREFIXES 132*6236dae4SAndroid Build Coastguard WorkerThe proxy string may be specified with a protocol:// prefix to specify 133*6236dae4SAndroid Build Coastguard Workeralternative proxy protocols. (Added in 7.21.7) 134*6236dae4SAndroid Build Coastguard Worker 135*6236dae4SAndroid Build Coastguard WorkerIf no protocol is specified in the proxy string or if the string does not 136*6236dae4SAndroid Build Coastguard Workermatch a supported one, the proxy is treated as an HTTP proxy. 137*6236dae4SAndroid Build Coastguard Worker 138*6236dae4SAndroid Build Coastguard WorkerThe supported proxy protocol prefixes are as follows: 139*6236dae4SAndroid Build Coastguard Worker## http:// 140*6236dae4SAndroid Build Coastguard WorkerMakes it use it as an HTTP proxy. The default if no scheme prefix is used. 141*6236dae4SAndroid Build Coastguard Worker## https:// 142*6236dae4SAndroid Build Coastguard WorkerMakes it treated as an **HTTPS** proxy. 143*6236dae4SAndroid Build Coastguard Worker## socks4:// 144*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks4 145*6236dae4SAndroid Build Coastguard Worker## socks4a:// 146*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks4a 147*6236dae4SAndroid Build Coastguard Worker## socks5:// 148*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks5 149*6236dae4SAndroid Build Coastguard Worker## socks5h:// 150*6236dae4SAndroid Build Coastguard WorkerMakes it the equivalent of --socks5-hostname 151*6236dae4SAndroid Build Coastguard Worker</file4> 152*6236dae4SAndroid Build Coastguard Worker 153*6236dae4SAndroid Build Coastguard Worker<command type="perl"> 154*6236dae4SAndroid Build Coastguard Worker%SRCDIR/../scripts/managen -d %LOGDIR ascii option1.md option2.md 155*6236dae4SAndroid Build Coastguard Worker</command> 156*6236dae4SAndroid Build Coastguard Worker</client> 157*6236dae4SAndroid Build Coastguard Worker 158*6236dae4SAndroid Build Coastguard Worker<verify> 159*6236dae4SAndroid Build Coastguard Worker<stderr> 160*6236dae4SAndroid Build Coastguard Workeroption1.md:19:1:WARN: see-also a non-existing option: include 161*6236dae4SAndroid Build Coastguard Workeroption1.md:19:1:WARN: see-also a non-existing option: silent 162*6236dae4SAndroid Build Coastguard Workeroption1.md:19:1:WARN: see-also a non-existing option: trace 163*6236dae4SAndroid Build Coastguard Workeroption1.md:19:1:WARN: see-also a non-existing option: trace-ascii 164*6236dae4SAndroid Build Coastguard WorkerWARN: option1.md mutexes a non-existing option: trace 165*6236dae4SAndroid Build Coastguard WorkerWARN: option1.md mutexes a non-existing option: trace-ascii 166*6236dae4SAndroid Build Coastguard Workeroption2.md:15:1:WARN: see-also a non-existing option: proto-default 167*6236dae4SAndroid Build Coastguard Worker</stderr> 168*6236dae4SAndroid Build Coastguard Worker<stdout> 169*6236dae4SAndroid Build Coastguard WorkerDESCRIPTION 170*6236dae4SAndroid Build Coastguard Worker 171*6236dae4SAndroid Build Coastguard Worker curl is a tool for transferring data from or to a server using URLs. It 172*6236dae4SAndroid Build Coastguard Worker supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, 173*6236dae4SAndroid Build Coastguard Worker HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, 174*6236dae4SAndroid Build Coastguard Worker SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. 175*6236dae4SAndroid Build Coastguard Worker 176*6236dae4SAndroid Build Coastguard Worker curl is powered by libcurl for all transfer-related features. See 177*6236dae4SAndroid Build Coastguard Worker libcurl(3) for details. 178*6236dae4SAndroid Build Coastguard Worker 179*6236dae4SAndroid Build Coastguard Worker -v, --fakeitreal 180*6236dae4SAndroid Build Coastguard Worker Makes curl verbose during the operation. Useful for debugging and 181*6236dae4SAndroid Build Coastguard Worker seeing what's going on under the hood. A line starting with > 182*6236dae4SAndroid Build Coastguard Worker means header data sent by curl, < means header data received by 183*6236dae4SAndroid Build Coastguard Worker curl that is hidden in normal cases, and a line starting with * 184*6236dae4SAndroid Build Coastguard Worker means additional info provided by curl. 185*6236dae4SAndroid Build Coastguard Worker 186*6236dae4SAndroid Build Coastguard Worker If you only want HTTP headers in the output, --include or 187*6236dae4SAndroid Build Coastguard Worker --dump-header might be more suitable options. 188*6236dae4SAndroid Build Coastguard Worker 189*6236dae4SAndroid Build Coastguard Worker If you think this option still does not give you enough details, 190*6236dae4SAndroid Build Coastguard Worker consider using --trace or --trace-ascii instead. 191*6236dae4SAndroid Build Coastguard Worker 192*6236dae4SAndroid Build Coastguard Worker Note that verbose output of curl activities and network traffic 193*6236dae4SAndroid Build Coastguard Worker might contain sensitive data, including usernames, credentials or 194*6236dae4SAndroid Build Coastguard Worker secret data content. Be aware and be careful when sharing trace 195*6236dae4SAndroid Build Coastguard Worker logs with others. 196*6236dae4SAndroid Build Coastguard Worker 197*6236dae4SAndroid Build Coastguard Worker This option is global and does not need to be specified for each 198*6236dae4SAndroid Build Coastguard Worker use of --next. Providing --fakeitreal multiple times has no extra 199*6236dae4SAndroid Build Coastguard Worker effect. Disable it again with --no-fakeitreal. 200*6236dae4SAndroid Build Coastguard Worker 201*6236dae4SAndroid Build Coastguard Worker Example: 202*6236dae4SAndroid Build Coastguard Worker curl --verbose https://example.com 203*6236dae4SAndroid Build Coastguard Worker 204*6236dae4SAndroid Build Coastguard Worker This option is mutually exclusive with --trace and --trace-ascii. 205*6236dae4SAndroid Build Coastguard Worker See also --include, --silent, --trace and --trace-ascii. 206*6236dae4SAndroid Build Coastguard Worker 207*6236dae4SAndroid Build Coastguard Worker --proto <protocols> 208*6236dae4SAndroid Build Coastguard Worker Limit what protocols to allow for transfers. Protocols are 209*6236dae4SAndroid Build Coastguard Worker evaluated left to right, are comma separated, and are each a 210*6236dae4SAndroid Build Coastguard Worker protocol name or 'all', optionally prefixed by zero or more 211*6236dae4SAndroid Build Coastguard Worker modifiers. Available modifiers are: 212*6236dae4SAndroid Build Coastguard Worker 213*6236dae4SAndroid Build Coastguard Worker + 214*6236dae4SAndroid Build Coastguard Worker 215*6236dae4SAndroid Build Coastguard Worker Permit this protocol in addition to protocols already 216*6236dae4SAndroid Build Coastguard Worker permitted (this is the default if no modifier is used). 217*6236dae4SAndroid Build Coastguard Worker 218*6236dae4SAndroid Build Coastguard Worker - 219*6236dae4SAndroid Build Coastguard Worker 220*6236dae4SAndroid Build Coastguard Worker Deny this protocol, removing it from the list of protocols 221*6236dae4SAndroid Build Coastguard Worker already permitted. 222*6236dae4SAndroid Build Coastguard Worker 223*6236dae4SAndroid Build Coastguard Worker = 224*6236dae4SAndroid Build Coastguard Worker 225*6236dae4SAndroid Build Coastguard Worker Permit only this protocol (ignoring the list already 226*6236dae4SAndroid Build Coastguard Worker permitted), though subject to later modification by subsequent 227*6236dae4SAndroid Build Coastguard Worker entries in the comma separated list. For example: --proto 228*6236dae4SAndroid Build Coastguard Worker -ftps uses the default protocols, but disables ftps 229*6236dae4SAndroid Build Coastguard Worker 230*6236dae4SAndroid Build Coastguard Worker --proto -all,https,+http only enables http and https 231*6236dae4SAndroid Build Coastguard Worker 232*6236dae4SAndroid Build Coastguard Worker --proto =http,https also only enables http and https 233*6236dae4SAndroid Build Coastguard Worker 234*6236dae4SAndroid Build Coastguard Worker Unknown and disabled protocols produce a warning. This allows 235*6236dae4SAndroid Build Coastguard Worker scripts to safely rely on being able to disable potentially 236*6236dae4SAndroid Build Coastguard Worker dangerous protocols, without relying upon support for that 237*6236dae4SAndroid Build Coastguard Worker protocol being built into curl to avoid an error. 238*6236dae4SAndroid Build Coastguard Worker 239*6236dae4SAndroid Build Coastguard Worker This option can be used multiple times, in which case the 240*6236dae4SAndroid Build Coastguard Worker effect is the same as concatenating the protocols into one 241*6236dae4SAndroid Build Coastguard Worker instance of the option. 242*6236dae4SAndroid Build Coastguard Worker 243*6236dae4SAndroid Build Coastguard Worker If --proto is provided several times, the last set value is used. 244*6236dae4SAndroid Build Coastguard Worker 245*6236dae4SAndroid Build Coastguard Worker Example: 246*6236dae4SAndroid Build Coastguard Worker curl --proto =http,https,sftp https://example.com 247*6236dae4SAndroid Build Coastguard Worker 248*6236dae4SAndroid Build Coastguard Worker See also --fakeitreal and --proto-default. 249*6236dae4SAndroid Build Coastguard Worker 250*6236dae4SAndroid Build Coastguard WorkerPROXY PROTOCOL PREFIXES 251*6236dae4SAndroid Build Coastguard Worker 252*6236dae4SAndroid Build Coastguard Worker The proxy string may be specified with a protocol:// prefix to specify 253*6236dae4SAndroid Build Coastguard Worker alternative proxy protocols. 254*6236dae4SAndroid Build Coastguard Worker 255*6236dae4SAndroid Build Coastguard Worker If no protocol is specified in the proxy string or if the string does not 256*6236dae4SAndroid Build Coastguard Worker match a supported one, the proxy is treated as an HTTP proxy. 257*6236dae4SAndroid Build Coastguard Worker 258*6236dae4SAndroid Build Coastguard Worker The supported proxy protocol prefixes are as follows: 259*6236dae4SAndroid Build Coastguard Worker 260*6236dae4SAndroid Build Coastguard Worker http:// 261*6236dae4SAndroid Build Coastguard Worker 262*6236dae4SAndroid Build Coastguard Worker Makes it use it as an HTTP proxy. The default if no scheme prefix is 263*6236dae4SAndroid Build Coastguard Worker used. 264*6236dae4SAndroid Build Coastguard Worker 265*6236dae4SAndroid Build Coastguard Worker https:// 266*6236dae4SAndroid Build Coastguard Worker 267*6236dae4SAndroid Build Coastguard Worker Makes it treated as an HTTPS proxy. 268*6236dae4SAndroid Build Coastguard Worker 269*6236dae4SAndroid Build Coastguard Worker socks4:// 270*6236dae4SAndroid Build Coastguard Worker 271*6236dae4SAndroid Build Coastguard Worker Makes it the equivalent of --socks4 272*6236dae4SAndroid Build Coastguard Worker 273*6236dae4SAndroid Build Coastguard Worker socks4a:// 274*6236dae4SAndroid Build Coastguard Worker 275*6236dae4SAndroid Build Coastguard Worker Makes it the equivalent of --socks4a 276*6236dae4SAndroid Build Coastguard Worker 277*6236dae4SAndroid Build Coastguard Worker socks5:// 278*6236dae4SAndroid Build Coastguard Worker 279*6236dae4SAndroid Build Coastguard Worker Makes it the equivalent of --socks5 280*6236dae4SAndroid Build Coastguard Worker 281*6236dae4SAndroid Build Coastguard Worker socks5h:// 282*6236dae4SAndroid Build Coastguard Worker 283*6236dae4SAndroid Build Coastguard Worker Makes it the equivalent of --socks5-hostname 284*6236dae4SAndroid Build Coastguard Worker 285*6236dae4SAndroid Build Coastguard Worker</stdout> 286*6236dae4SAndroid Build Coastguard Worker</verify> 287*6236dae4SAndroid Build Coastguard Worker 288*6236dae4SAndroid Build Coastguard Worker</testcase> 289