curl.1 127 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at https://curl.haxx.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" **************************************************************************
  22. .\"
  23. .\" DO NOT EDIT. Generated by the curl project gen.pl man page generator.
  24. .\"
  25. .TH curl 1 "16 Dec 2016" "Curl 7.52.0" "Curl Manual"
  26. .SH NAME
  27. curl \- transfer a URL
  28. .SH SYNOPSIS
  29. .B curl [options / URLs]
  30. .SH DESCRIPTION
  31. .B curl
  32. is a tool to transfer data from or to a server, using one of the supported
  33. protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP,
  34. LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET
  35. and TFTP). The command is designed to work without user interaction.
  36. curl offers a busload of useful tricks like proxy support, user
  37. authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer
  38. resume, Metalink, and more. As you will see below, the number of features will
  39. make your head spin!
  40. curl is powered by libcurl for all transfer-related features. See
  41. \fIlibcurl(3)\fP for details.
  42. .SH URL
  43. The URL syntax is protocol-dependent. You'll find a detailed description in
  44. RFC 3986.
  45. You can specify multiple URLs or parts of URLs by writing part sets within
  46. braces as in:
  47. http://site.{one,two,three}.com
  48. or you can get sequences of alphanumeric series by using [] as in:
  49. ftp://ftp.example.com/file[1-100].txt
  50. ftp://ftp.example.com/file[001-100].txt (with leading zeros)
  51. ftp://ftp.example.com/file[a-z].txt
  52. Nested sequences are not supported, but you can use several ones next to each
  53. other:
  54. http://example.com/archive[1996-1999]/vol[1-4]/part{a,b,c}.html
  55. You can specify any amount of URLs on the command line. They will be fetched
  56. in a sequential manner in the specified order. You can specify command line
  57. options and URLs mixed and in any order on the command line.
  58. You can specify a step counter for the ranges to get every Nth number or
  59. letter:
  60. http://example.com/file[1-100:10].txt
  61. http://example.com/file[a-z:2].txt
  62. When using [] or {} sequences when invoked from a command line prompt, you
  63. probably have to put the full URL within double quotes to avoid the shell from
  64. interfering with it. This also goes for other characters treated special, like
  65. for example '&', '?' and '*'.
  66. Provide the IPv6 zone index in the URL with an escaped percentage sign and the
  67. interface name. Like in
  68. http://[fe80::3%25eth0]/
  69. If you specify URL without protocol:// prefix, curl will attempt to guess what
  70. protocol you might want. It will then default to HTTP but try other protocols
  71. based on often-used host name prefixes. For example, for host names starting
  72. with "ftp." curl will assume you want to speak FTP.
  73. curl will do its best to use what you pass to it as a URL. It is not trying to
  74. validate it as a syntactically correct URL by any means but is instead
  75. \fBvery\fP liberal with what it accepts.
  76. curl will attempt to re-use connections for multiple file transfers, so that
  77. getting many files from the same server will not do multiple connects /
  78. handshakes. This improves speed. Of course this is only done on files
  79. specified on a single command line and cannot be used between separate curl
  80. invokes.
  81. .SH "PROGRESS METER"
  82. curl normally displays a progress meter during operations, indicating the
  83. amount of transferred data, transfer speeds and estimated time left, etc. The
  84. progress meter displays number of bytes and the speeds are in bytes per
  85. second. The suffixes (k, M, G, T, P) are 1024 based. For example 1k is 1024
  86. bytes. 1M is 1048576 bytes.
  87. curl displays this data to the terminal by default, so if you invoke curl to
  88. do an operation and it is about to write data to the terminal, it
  89. \fIdisables\fP the progress meter as otherwise it would mess up the output
  90. mixing progress meter and response data.
  91. If you want a progress meter for HTTP POST or PUT requests, you need to
  92. redirect the response output to a file, using shell redirect (>), \fI-o, --output\fP or
  93. similar.
  94. It is not the same case for FTP upload as that operation does not spit out
  95. any response data to the terminal.
  96. If you prefer a progress "bar" instead of the regular meter, \fI-#, --progress-bar\fP is
  97. your friend. You can also disable the progress meter completely with the
  98. \fI-s, --silent\fP option.
  99. .SH OPTIONS
  100. Options start with one or two dashes. Many of the options require an
  101. additional value next to them.
  102. The short "single-dash" form of the options, -d for example, may be used with
  103. or without a space between it and its value, although a space is a recommended
  104. separator. The long "double-dash" form, \fI-d, --data\fP for example, requires a space
  105. between it and its value.
  106. Short version options that don't need any additional values can be used
  107. immediately next to each other, like for example you can specify all the
  108. options -O, -L and -v at once as -OLv.
  109. In general, all boolean options are enabled with --\fBoption\fP and yet again
  110. disabled with --\fBno-\fPoption. That is, you use the exact same option name
  111. but prefix it with "no-". However, in this list we mostly only list and show
  112. the --option version of them. (This concept with --no options was added in
  113. 7.19.0. Previously most options were toggled on/off on repeated use of the
  114. same command line option.)
  115. .IP "--abstract-unix-socket <path>"
  116. (HTTP) Connect through an abstract Unix domain socket, instead of using the network.
  117. Note: netstat shows the path of an abstract socket prefixed with '@', however
  118. the <path> argument should not have this leading character.
  119. Added in 7.53.0.
  120. .IP "--anyauth"
  121. (HTTP) Tells curl to figure out authentication method by itself, and use the most
  122. secure one the remote site claims to support. This is done by first doing a
  123. request and checking the response-headers, thus possibly inducing an extra
  124. network round-trip. This is used instead of setting a specific authentication
  125. method, which you can do with \fI--basic\fP, \fI--digest\fP, \fI--ntlm\fP, and \fI--negotiate\fP.
  126. Using \fI--anyauth\fP is not recommended if you do uploads from stdin, since it may
  127. require data to be sent twice and then the client must be able to rewind. If
  128. the need should arise when uploading from stdin, the upload operation will
  129. fail.
  130. Used together with \fI-u, --user\fP.
  131. See also \fI--proxy-anyauth\fP and \fI--basic\fP and \fI--digest\fP.
  132. .IP "-a, --append"
  133. (FTP SFTP) When used in an upload, this makes curl append to the target file instead of
  134. overwriting it. If the remote file doesn't exist, it will be created. Note
  135. that this flag is ignored by some SFTP servers (including OpenSSH).
  136. .IP "--basic"
  137. (HTTP) Tells curl to use HTTP Basic authentication with the remote host. This is the
  138. default and this option is usually pointless, unless you use it to override a
  139. previously set option that sets a different authentication method (such as
  140. \fI--ntlm\fP, \fI--digest\fP, or \fI--negotiate\fP).
  141. Used together with \fI-u, --user\fP.
  142. See also \fI--proxy-basic\fP.
  143. .IP "--cacert <file>"
  144. (TLS) Tells curl to use the specified certificate file to verify the peer. The file
  145. may contain multiple CA certificates. The certificate(s) must be in PEM
  146. format. Normally curl is built to use a default file for this, so this option
  147. is typically used to alter that default file.
  148. curl recognizes the environment variable named 'CURL_CA_BUNDLE' if it is
  149. set, and uses the given path as a path to a CA cert bundle. This option
  150. overrides that variable.
  151. The windows version of curl will automatically look for a CA certs file named
  152. \'curl-ca-bundle.crt\', either in the same directory as curl.exe, or in the
  153. Current Working Directory, or in any folder along your PATH.
  154. If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
  155. (libnsspem.so) needs to be available for this option to work properly.
  156. (iOS and macOS only) If curl is built against Secure Transport, then this
  157. option is supported for backward compatibility with other SSL engines, but it
  158. should not be set. If the option is not set, then curl will use the
  159. certificates in the system and user Keychain to verify the peer, which is the
  160. preferred method of verifying the peer's certificate chain.
  161. (Schannel/WinSSL only) This option is supported for WinSSL in Windows 7 or
  162. later with libcurl 7.60 or later. This option is supported for backward
  163. compatibility with other SSL engines; instead it is recommended to use Windows'
  164. store of root certificates (the default for WinSSL).
  165. If this option is used several times, the last one will be used.
  166. .IP "--capath <dir>"
  167. (TLS) Tells curl to use the specified certificate directory to verify the
  168. peer. Multiple paths can be provided by separating them with ":" (e.g.
  169. \&"path1:path2:path3"). The certificates must be in PEM format, and if curl is
  170. built against OpenSSL, the directory must have been processed using the
  171. c_rehash utility supplied with OpenSSL. Using \fI--capath\fP can allow
  172. OpenSSL-powered curl to make SSL-connections much more efficiently than using
  173. \fI--cacert\fP if the --cacert file contains many CA certificates.
  174. If this option is set, the default capath value will be ignored, and if it is
  175. used several times, the last one will be used.
  176. .IP "--cert-status"
  177. (TLS) Tells curl to verify the status of the server certificate by using the
  178. Certificate Status Request (aka. OCSP stapling) TLS extension.
  179. If this option is enabled and the server sends an invalid (e.g. expired)
  180. response, if the response suggests that the server certificate has been revoked,
  181. or no response at all is received, the verification fails.
  182. This is currently only implemented in the OpenSSL, GnuTLS and NSS backends.
  183. Added in 7.41.0.
  184. .IP "--cert-type <type>"
  185. (TLS) Tells curl what type the provided client certificate is using. PEM, DER, ENG
  186. and P12 are recognized types. If not specified, PEM is assumed.
  187. If this option is used several times, the last one will be used.
  188. See also \fI-E, --cert\fP and \fI--key\fP and \fI--key-type\fP.
  189. .IP "-E, --cert <certificate[:password]>"
  190. (TLS) Tells curl to use the specified client certificate file when getting a file
  191. with HTTPS, FTPS or another SSL-based protocol. The certificate must be in
  192. PKCS#12 format if using Secure Transport, or PEM format if using any other
  193. engine. If the optional password isn't specified, it will be queried for on
  194. the terminal. Note that this option assumes a \&"certificate" file that is the
  195. private key and the client certificate concatenated! See \fI-E, --cert\fP and \fI--key\fP to
  196. specify them independently.
  197. If curl is built against the NSS SSL library then this option can tell
  198. curl the nickname of the certificate to use within the NSS database defined
  199. by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the
  200. NSS PEM PKCS#11 module (libnsspem.so) is available then PEM files may be
  201. loaded. If you want to use a file from the current directory, please precede
  202. it with "./" prefix, in order to avoid confusion with a nickname. If the
  203. nickname contains ":", it needs to be preceded by "\\" so that it is not
  204. recognized as password delimiter. If the nickname contains "\\", it needs to
  205. be escaped as "\\\\" so that it is not recognized as an escape character.
  206. If curl is built against OpenSSL library, and the engine pkcs11 is available,
  207. then a PKCS#11 URI (RFC 7512) can be used to specify a certificate located in
  208. a PKCS#11 device. A string beginning with "pkcs11:" will be interpreted as a
  209. PKCS#11 URI. If a PKCS#11 URI is provided, then the \fI--engine\fP option will be set
  210. as "pkcs11" if none was provided and the \fI--cert-type\fP option will be set as
  211. "ENG" if none was provided.
  212. (iOS and macOS only) If curl is built against Secure Transport, then the
  213. certificate string can either be the name of a certificate/private key in the
  214. system or user keychain, or the path to a PKCS#12-encoded certificate and
  215. private key. If you want to use a file from the current directory, please
  216. precede it with "./" prefix, in order to avoid confusion with a nickname.
  217. (Schannel/WinSSL only) Client certificates must be specified by a path
  218. expression to a certificate store. (Loading PFX is not supported; you can
  219. import it to a store first). You can use
  220. "<store location>\\<store name>\\<thumbprint>" to refer to a certificate
  221. in the system certificates store, for example,
  222. "CurrentUser\\MY\\934a7ac6f8a5d579285a74fa61e19f23ddfe8d7a". Thumbprint is
  223. usually a SHA-1 hex string which you can see in certificate details. Following
  224. store locations are supported: CurrentUser, LocalMachine, CurrentService,
  225. Services, CurrentUserGroupPolicy, LocalMachineGroupPolicy,
  226. LocalMachineEnterprise.
  227. If this option is used several times, the last one will be used.
  228. See also \fI--cert-type\fP and \fI--key\fP and \fI--key-type\fP.
  229. .IP "--ciphers <list of ciphers>"
  230. (TLS) Specifies which ciphers to use in the connection. The list of ciphers must
  231. specify valid ciphers. Read up on SSL cipher list details on this URL:
  232. https://curl.haxx.se/docs/ssl-ciphers.html
  233. If this option is used several times, the last one will be used.
  234. .IP "--compressed-ssh"
  235. (SCP SFTP) Enables built-in SSH compression.
  236. This is a request, not an order; the server may or may not do it.
  237. Added in 7.56.0.
  238. .IP "--compressed"
  239. (HTTP) Request a compressed response using one of the algorithms curl supports, and
  240. save the uncompressed document. If this option is used and the server sends
  241. an unsupported encoding, curl will report an error.
  242. .IP "-K, --config <file>"
  243. Specify a text file to read curl arguments from. The command line arguments
  244. found in the text file will be used as if they were provided on the command
  245. line.
  246. Options and their parameters must be specified on the same line in the file,
  247. separated by whitespace, colon, or the equals sign. Long option names can
  248. optionally be given in the config file without the initial double dashes and
  249. if so, the colon or equals characters can be used as separators. If the option
  250. is specified with one or two dashes, there can be no colon or equals character
  251. between the option and its parameter.
  252. If the parameter is to contain whitespace, the parameter must be enclosed
  253. within quotes. Within double quotes, the following escape sequences are
  254. available: \\\\, \\", \\t, \\n, \\r and \\v. A backslash preceding any other
  255. letter is ignored. If the first column of a config line is a '#' character,
  256. the rest of the line will be treated as a comment. Only write one option per
  257. physical line in the config file.
  258. Specify the filename to \fI-K, --config\fP as '-' to make curl read the file from stdin.
  259. Note that to be able to specify a URL in the config file, you need to specify
  260. it using the \fI--url\fP option, and not by simply writing the URL on its own
  261. line. So, it could look similar to this:
  262. url = "https://curl.haxx.se/docs/"
  263. When curl is invoked, it (unless \fI-q, --disable\fP is used) checks for a default
  264. config file and uses it if found. The default config file is checked for in
  265. the following places in this order:
  266. 1) curl tries to find the "home dir": It first checks for the CURL_HOME and
  267. then the HOME environment variables. Failing that, it uses getpwuid() on
  268. Unix-like systems (which returns the home dir given the current user in your
  269. system). On Windows, it then checks for the APPDATA variable, or as a last
  270. resort the '%USERPROFILE%\\Application Data'.
  271. 2) On windows, if there is no _curlrc file in the home dir, it checks for one
  272. in the same dir the curl executable is placed. On Unix-like systems, it will
  273. simply try to load .curlrc from the determined home dir.
  274. .nf
  275. # --- Example file ---
  276. # this is a comment
  277. url = "example.com"
  278. output = "curlhere.html"
  279. user-agent = "superagent/1.0"
  280. # and fetch another URL too
  281. url = "example.com/docs/manpage.html"
  282. -O
  283. referer = "http://nowhereatall.example.com/"
  284. # --- End of example file ---
  285. .fi
  286. This option can be used multiple times to load multiple config files.
  287. .IP "--connect-timeout <seconds>"
  288. Maximum time in seconds that you allow curl's connection to take. This only
  289. limits the connection phase, so if curl connects within the given period it
  290. will continue - if not it will exit. Since version 7.32.0, this option
  291. accepts decimal values.
  292. If this option is used several times, the last one will be used.
  293. See also \fI-m, --max-time\fP.
  294. .IP "--connect-to <HOST1:PORT1:HOST2:PORT2>"
  295. For a request to the given HOST1:PORT1 pair, connect to HOST2:PORT2 instead.
  296. This option is suitable to direct requests at a specific server, e.g. at a
  297. specific cluster node in a cluster of servers. This option is only used to
  298. establish the network connection. It does NOT affect the hostname/port that is
  299. used for TLS/SSL (e.g. SNI, certificate verification) or for the application
  300. protocols. "HOST1" and "PORT1" may be the empty string, meaning "any
  301. host/port". "HOST2" and "PORT2" may also be the empty string, meaning "use the
  302. request's original host/port".
  303. A "host" specified to this option is compared as a string, so it needs to
  304. match the name used in request URL. It can be either numerical such as
  305. "127.0.0.1" or the full host name such as "example.org".
  306. This option can be used many times to add many connect rules.
  307. See also \fI--resolve\fP and \fI-H, --header\fP. Added in 7.49.0.
  308. .IP "-C, --continue-at <offset>"
  309. Continue/Resume a previous file transfer at the given offset. The given offset
  310. is the exact number of bytes that will be skipped, counting from the beginning
  311. of the source file before it is transferred to the destination. If used with
  312. uploads, the FTP server command SIZE will not be used by curl.
  313. Use "-C -" to tell curl to automatically find out where/how to resume the
  314. transfer. It then uses the given output/input files to figure that out.
  315. If this option is used several times, the last one will be used.
  316. See also \fI-r, --range\fP.
  317. .IP "-c, --cookie-jar <filename>"
  318. (HTTP) Specify to which file you want curl to write all cookies after a completed
  319. operation. Curl writes all cookies from its in-memory cookie storage to the
  320. given file at the end of operations. If no cookies are known, no data will be
  321. written. The file will be written using the Netscape cookie file format. If
  322. you set the file name to a single dash, "-", the cookies will be written to
  323. stdout.
  324. This command line option will activate the cookie engine that makes curl
  325. record and use cookies. Another way to activate it is to use the \fI-b, --cookie\fP
  326. option.
  327. If the cookie jar can't be created or written to, the whole curl operation
  328. won't fail or even report an error clearly. Using \fI-v, --verbose\fP will get a warning
  329. displayed, but that is the only visible feedback you get about this possibly
  330. lethal situation.
  331. If this option is used several times, the last specified file name will be
  332. used.
  333. .IP "-b, --cookie <data>"
  334. (HTTP) Pass the data to the HTTP server in the Cookie header. It is supposedly
  335. the data previously received from the server in a "Set-Cookie:" line. The
  336. data should be in the format "NAME1=VALUE1; NAME2=VALUE2".
  337. If no '=' symbol is used in the argument, it is instead treated as a filename
  338. to read previously stored cookie from. This option also activates the cookie
  339. engine which will make curl record incoming cookies, which may be handy if
  340. you're using this in combination with the \fI-L, --location\fP option or do multiple URL
  341. transfers on the same invoke. If the file name is exactly a minus ("-"), curl
  342. will instead the contents from stdin.
  343. The file format of the file to read cookies from should be plain HTTP headers
  344. (Set-Cookie style) or the Netscape/Mozilla cookie file format.
  345. The file specified with \fI-b, --cookie\fP is only used as input. No cookies will be
  346. written to the file. To store cookies, use the \fI-c, --cookie-jar\fP option.
  347. Exercise caution if you are using this option and multiple transfers may
  348. occur. If you use the NAME1=VALUE1; format, or in a file use the Set-Cookie
  349. format and don't specify a domain, then the cookie is sent for any domain
  350. (even after redirects are followed) and cannot be modified by a server-set
  351. cookie. If the cookie engine is enabled and a server sets a cookie of the same
  352. name then both will be sent on a future transfer to that server, likely not
  353. what you intended. To address these issues set a domain in Set-Cookie (doing
  354. that will include sub domains) or use the Netscape format.
  355. If this option is used several times, the last one will be used.
  356. Users very often want to both read cookies from a file and write updated
  357. cookies back to a file, so using both \fI-b, --cookie\fP and \fI-c, --cookie-jar\fP in the same
  358. command line is common.
  359. .IP "--create-dirs"
  360. When used in conjunction with the \fI-o, --output\fP option, curl will create the
  361. necessary local directory hierarchy as needed. This option creates the dirs
  362. mentioned with the \fI-o, --output\fP option, nothing else. If the --output file name
  363. uses no dir or if the dirs it mentions already exist, no dir will be created.
  364. To create remote directories when using FTP or SFTP, try \fI--ftp-create-dirs\fP.
  365. .IP "--crlf"
  366. (FTP SMTP) Convert LF to CRLF in upload. Useful for MVS (OS/390).
  367. (SMTP added in 7.40.0)
  368. .IP "--crlfile <file>"
  369. (TLS) Provide a file using PEM format with a Certificate Revocation List that may
  370. specify peer certificates that are to be considered revoked.
  371. If this option is used several times, the last one will be used.
  372. Added in 7.19.7.
  373. .IP "--data-ascii <data>"
  374. (HTTP) This is just an alias for \fI-d, --data\fP.
  375. .IP "--data-binary <data>"
  376. (HTTP) This posts data exactly as specified with no extra processing whatsoever.
  377. If you start the data with the letter @, the rest should be a filename. Data
  378. is posted in a similar manner as \fI-d, --data\fP does, except that newlines and
  379. carriage returns are preserved and conversions are never done.
  380. If this option is used several times, the ones following the first will append
  381. data as described in \fI-d, --data\fP.
  382. .IP "--data-raw <data>"
  383. (HTTP) This posts data similarly to \fI-d, --data\fP but without the special
  384. interpretation of the @ character.
  385. See also \fI-d, --data\fP. Added in 7.43.0.
  386. .IP "--data-urlencode <data>"
  387. (HTTP) This posts data, similar to the other \fI-d, --data\fP options with the exception
  388. that this performs URL-encoding.
  389. To be CGI-compliant, the <data> part should begin with a \fIname\fP followed
  390. by a separator and a content specification. The <data> part can be passed to
  391. curl using one of the following syntaxes:
  392. .RS
  393. .IP "content"
  394. This will make curl URL-encode the content and pass that on. Just be careful
  395. so that the content doesn't contain any = or @ symbols, as that will then make
  396. the syntax match one of the other cases below!
  397. .IP "=content"
  398. This will make curl URL-encode the content and pass that on. The preceding =
  399. symbol is not included in the data.
  400. .IP "name=content"
  401. This will make curl URL-encode the content part and pass that on. Note that
  402. the name part is expected to be URL-encoded already.
  403. .IP "@filename"
  404. This will make curl load data from the given file (including any newlines),
  405. URL-encode that data and pass it on in the POST.
  406. .IP "name@filename"
  407. This will make curl load data from the given file (including any newlines),
  408. URL-encode that data and pass it on in the POST. The name part gets an equal
  409. sign appended, resulting in \fIname=urlencoded-file-content\fP. Note that the
  410. name is expected to be URL-encoded already.
  411. .RE
  412. See also \fI-d, --data\fP and \fI--data-raw\fP. Added in 7.18.0.
  413. .IP "-d, --data <data>"
  414. (HTTP) Sends the specified data in a POST request to the HTTP server, in the same way
  415. that a browser does when a user has filled in an HTML form and presses the
  416. submit button. This will cause curl to pass the data to the server using the
  417. content-type application/x-www-form-urlencoded. Compare to \fI-F, --form\fP.
  418. \fI--data-raw\fP is almost the same but does not have a special interpretation of
  419. the @ character. To post data purely binary, you should instead use the
  420. \fI--data-binary\fP option. To URL-encode the value of a form field you may use
  421. \fI--data-urlencode\fP.
  422. If any of these options is used more than once on the same command line, the
  423. data pieces specified will be merged together with a separating
  424. &-symbol. Thus, using '-d name=daniel -d skill=lousy' would generate a post
  425. chunk that looks like \&'name=daniel&skill=lousy'.
  426. If you start the data with the letter @, the rest should be a file name to
  427. read the data from, or - if you want curl to read the data from
  428. stdin. Multiple files can also be specified. Posting data from a file named
  429. 'foobar' would thus be done with \fI-d, --data\fP @foobar. When --data is told to read
  430. from a file like that, carriage returns and newlines will be stripped out. If
  431. you don't want the @ character to have a special interpretation use \fI--data-raw\fP
  432. instead.
  433. See also \fI--data-binary\fP and \fI--data-urlencode\fP and \fI--data-raw\fP. This option overrides \fI-F, --form\fP and \fI-I, --head\fP and \fI-T, --upload-file\fP.
  434. .IP "--delegation <LEVEL>"
  435. (GSS/kerberos) Set LEVEL to tell the server what it is allowed to delegate when it
  436. comes to user credentials.
  437. .RS
  438. .IP "none"
  439. Don't allow any delegation.
  440. .IP "policy"
  441. Delegates if and only if the OK-AS-DELEGATE flag is set in the Kerberos
  442. service ticket, which is a matter of realm policy.
  443. .IP "always"
  444. Unconditionally allow the server to delegate.
  445. .RE
  446. .IP "--digest"
  447. (HTTP) Enables HTTP Digest authentication. This is an authentication scheme that
  448. prevents the password from being sent over the wire in clear text. Use this in
  449. combination with the normal \fI-u, --user\fP option to set user name and password.
  450. If this option is used several times, only the first one is used.
  451. See also \fI-u, --user\fP and \fI--proxy-digest\fP and \fI--anyauth\fP. This option overrides \fI--basic\fP and \fI--ntlm\fP and \fI--negotiate\fP.
  452. .IP "--disable-eprt"
  453. (FTP) Tell curl to disable the use of the EPRT and LPRT commands when doing active
  454. FTP transfers. Curl will normally always first attempt to use EPRT, then LPRT
  455. before using PORT, but with this option, it will use PORT right away. EPRT and
  456. LPRT are extensions to the original FTP protocol, and may not work on all
  457. servers, but they enable more functionality in a better way than the
  458. traditional PORT command.
  459. --eprt can be used to explicitly enable EPRT again and --no-eprt is an alias
  460. for \fI--disable-eprt\fP.
  461. If the server is accessed using IPv6, this option will have no effect as EPRT
  462. is necessary then.
  463. Disabling EPRT only changes the active behavior. If you want to switch to
  464. passive mode you need to not use \fI-P, --ftp-port\fP or force it with \fI--ftp-pasv\fP.
  465. .IP "--disable-epsv"
  466. (FTP) (FTP) Tell curl to disable the use of the EPSV command when doing passive FTP
  467. transfers. Curl will normally always first attempt to use EPSV before PASV,
  468. but with this option, it will not try using EPSV.
  469. --epsv can be used to explicitly enable EPSV again and --no-epsv is an alias
  470. for \fI--disable-epsv\fP.
  471. If the server is an IPv6 host, this option will have no effect as EPSV is
  472. necessary then.
  473. Disabling EPSV only changes the passive behavior. If you want to switch to
  474. active mode you need to use \fI-P, --ftp-port\fP.
  475. .IP "-q, --disable"
  476. If used as the first parameter on the command line, the \fIcurlrc\fP config
  477. file will not be read and used. See the \fI-K, --config\fP for details on the default
  478. config file search path.
  479. .IP "--disallow-username-in-url"
  480. (HTTP) This tells curl to exit if passed a url containing a username.
  481. See also \fI--proto\fP. Added in 7.61.0.
  482. .IP "--dns-interface <interface>"
  483. (DNS) Tell curl to send outgoing DNS requests through <interface>. This option is a
  484. counterpart to \fI--interface\fP (which does not affect DNS). The supplied string
  485. must be an interface name (not an address).
  486. See also \fI--dns-ipv4-addr\fP and \fI--dns-ipv6-addr\fP. \fI--dns-interface\fP requires that the underlying libcurl was built to support c-ares. Added in 7.33.0.
  487. .IP "--dns-ipv4-addr <address>"
  488. (DNS) Tell curl to bind to <ip-address> when making IPv4 DNS requests, so that
  489. the DNS requests originate from this address. The argument should be a
  490. single IPv4 address.
  491. See also \fI--dns-interface\fP and \fI--dns-ipv6-addr\fP. \fI--dns-ipv4-addr\fP requires that the underlying libcurl was built to support c-ares. Added in 7.33.0.
  492. .IP "--dns-ipv6-addr <address>"
  493. (DNS) Tell curl to bind to <ip-address> when making IPv6 DNS requests, so that
  494. the DNS requests originate from this address. The argument should be a
  495. single IPv6 address.
  496. See also \fI--dns-interface\fP and \fI--dns-ipv4-addr\fP. \fI--dns-ipv6-addr\fP requires that the underlying libcurl was built to support c-ares. Added in 7.33.0.
  497. .IP "--dns-servers <addresses>"
  498. Set the list of DNS servers to be used instead of the system default.
  499. The list of IP addresses should be separated with commas. Port numbers
  500. may also optionally be given as \fI:<port-number>\fP after each IP
  501. address.
  502. \fI--dns-servers\fP requires that the underlying libcurl was built to support c-ares. Added in 7.33.0.
  503. .IP "-D, --dump-header <filename>"
  504. (HTTP FTP) Write the received protocol headers to the specified file.
  505. This option is handy to use when you want to store the headers that an HTTP
  506. site sends to you. Cookies from the headers could then be read in a second
  507. curl invocation by using the \fI-b, --cookie\fP option! The \fI-c, --cookie-jar\fP option is a
  508. better way to store cookies.
  509. When used in FTP, the FTP server response lines are considered being "headers"
  510. and thus are saved there.
  511. If this option is used several times, the last one will be used.
  512. See also \fI-o, --output\fP.
  513. .IP "--egd-file <file>"
  514. (TLS) Specify the path name to the Entropy Gathering Daemon socket. The socket is
  515. used to seed the random engine for SSL connections.
  516. See also \fI--random-file\fP.
  517. .IP "--engine <name>"
  518. (TLS) Select the OpenSSL crypto engine to use for cipher operations. Use \fI--engine\fP
  519. list to print a list of build-time supported engines. Note that not all (or
  520. none) of the engines may be available at run-time.
  521. .IP "--expect100-timeout <seconds>"
  522. (HTTP) Maximum time in seconds that you allow curl to wait for a 100-continue
  523. response when curl emits an Expects: 100-continue header in its request. By
  524. default curl will wait one second. This option accepts decimal values! When
  525. curl stops waiting, it will continue as if the response has been received.
  526. See also \fI--connect-timeout\fP. Added in 7.47.0.
  527. .IP "--fail-early"
  528. Fail and exit on the first detected transfer error.
  529. When curl is used to do multiple transfers on the command line, it will
  530. attempt to operate on each given URL, one by one. By default, it will ignore
  531. errors if there are more URLs given and the last URL's success will determine
  532. the error code curl returns. So early failures will be "hidden" by subsequent
  533. successful transfers.
  534. Using this option, curl will instead return an error on the first transfer
  535. that fails, independent of the amount of URLs that are given on the command
  536. line. This way, no transfer failures go undetected by scripts and similar.
  537. This option is global and does not need to be specified for each use of \fI-:, --next\fP.
  538. This option does not imply \fI-f, --fail\fP, which causes transfers to fail due to the
  539. server's HTTP status code. You can combine the two options, however note \fI-f, --fail\fP
  540. is not global and is therefore contained by \fI-:, --next\fP.
  541. Added in 7.52.0.
  542. .IP "-f, --fail"
  543. (HTTP) Fail silently (no output at all) on server errors. This is mostly done to
  544. better enable scripts etc to better deal with failed attempts. In normal cases
  545. when an HTTP server fails to deliver a document, it returns an HTML document
  546. stating so (which often also describes why and more). This flag will prevent
  547. curl from outputting that and return error 22.
  548. This method is not fail-safe and there are occasions where non-successful
  549. response codes will slip through, especially when authentication is involved
  550. (response codes 401 and 407).
  551. .IP "--false-start"
  552. (TLS) Tells curl to use false start during the TLS handshake. False start is a mode
  553. where a TLS client will start sending application data before verifying the
  554. server's Finished message, thus saving a round trip when performing a full
  555. handshake.
  556. This is currently only implemented in the NSS and Secure Transport (on iOS 7.0
  557. or later, or OS X 10.9 or later) backends.
  558. Added in 7.42.0.
  559. .IP "--form-string <name=string>"
  560. (HTTP SMTP IMAP) Similar to \fI-F, --form\fP except that the value string for the named parameter is used
  561. literally. Leading \&'@' and \&'<' characters, and the \&';type=' string in
  562. the value have no special meaning. Use this in preference to \fI-F, --form\fP if
  563. there's any possibility that the string value may accidentally trigger the
  564. \&'@' or \&'<' features of \fI-F, --form\fP.
  565. See also \fI-F, --form\fP.
  566. .IP "-F, --form <name=content>"
  567. (HTTP SMTP IMAP) For HTTP protocol family, this lets curl emulate a filled-in form in which a
  568. user has pressed the submit button. This causes curl to POST data using the
  569. Content-Type multipart/form-data according to RFC 2388.
  570. For SMTP and IMAP protocols, this is the mean to compose a multipart mail
  571. message to transmit.
  572. This enables uploading of binary files etc. To force the 'content' part to be
  573. a file, prefix the file name with an @ sign. To just get the content part from
  574. a file, prefix the file name with the symbol <. The difference between @ and <
  575. is then that @ makes a file get attached in the post as a file upload, while
  576. the < makes a text field and just get the contents for that text field from a
  577. file.
  578. Tell curl to read content from stdin instead of a file by using - as
  579. filename. This goes for both @ and < constructs. When stdin is used, the
  580. contents is buffered in memory first by curl to determine its size and allow a
  581. possible resend. Defining a part's data from a named non-regular file (such
  582. as a named pipe or similar) is unfortunately not subject to buffering and will
  583. be effectively read at transmission time; since the full size is unknown
  584. before the transfer starts, such data is sent as chunks by HTTP and rejected
  585. by IMAP.
  586. Example: send an image to an HTTP server, where \&'profile' is the name of the
  587. form-field to which the file portrait.jpg will be the input:
  588. curl -F profile=@portrait.jpg https://example.com/upload.cgi
  589. Example: send a your name and shoe size in two text fields to the server:
  590. curl -F name=John -F shoesize=11 https://example.com/
  591. Example: send a your essay in a text field to the server. Send it as a plain
  592. text field, but get the contents for it from a local file:
  593. curl -F "story=<hugefile.txt" https://example.com/
  594. You can also tell curl what Content-Type to use by using 'type=', in a manner
  595. similar to:
  596. curl -F "web=@index.html;type=text/html" example.com
  597. or
  598. curl -F "name=daniel;type=text/foo" example.com
  599. You can also explicitly change the name field of a file upload part by setting
  600. filename=, like this:
  601. curl -F "file=@localfile;filename=nameinpost" example.com
  602. If filename/path contains ',' or ';', it must be quoted by double-quotes like:
  603. curl -F "file=@\\"localfile\\";filename=\\"nameinpost\\"" example.com
  604. or
  605. curl -F 'file=@"localfile";filename="nameinpost"' example.com
  606. Note that if a filename/path is quoted by double-quotes, any double-quote
  607. or backslash within the filename must be escaped by backslash.
  608. Quoting must also be applied to non-file data if it contains semicolons,
  609. leading/trailing spaces or leading double quotes:
  610. curl -F 'colors="red; green; blue";type=text/x-myapp' example.com
  611. You can add custom headers to the field by setting headers=, like
  612. curl -F "submit=OK;headers=\\"X-submit-type: OK\\"" example.com
  613. or
  614. curl -F "submit=OK;headers=@headerfile" example.com
  615. The headers= keyword may appear more that once and above notes about quoting
  616. apply. When headers are read from a file, Empty lines and lines starting
  617. with '#' are comments and ignored; each header can be folded by splitting
  618. between two words and starting the continuation line with a space; embedded
  619. carriage-returns and trailing spaces are stripped.
  620. Here is an example of a header file contents:
  621. # This file contain two headers.
  622. .br
  623. X-header-1: this is a header
  624. # The following header is folded.
  625. .br
  626. X-header-2: this is
  627. .br
  628. another header
  629. To support sending multipart mail messages, the syntax is extended as follows:
  630. .br
  631. - name can be omitted: the equal sign is the first character of the argument,
  632. .br
  633. - if data starts with '(', this signals to start a new multipart: it can be
  634. followed by a content type specification.
  635. .br
  636. - a multipart can be terminated with a '=)' argument.
  637. Example: the following command sends an SMTP mime e-mail consisting in an
  638. inline part in two alternative formats: plain text and HTML. It attaches a
  639. text file:
  640. curl -F '=(;type=multipart/alternative' \\
  641. .br
  642. -F '=plain text message' \\
  643. .br
  644. -F '= <body>HTML message</body>;type=text/html' \\
  645. .br
  646. -F '=)' -F '=@textfile.txt' ... smtp://example.com
  647. Data can be encoded for transfer using encoder=. Available encodings are
  648. \fIbinary\fP and \fI8bit\fP that do nothing else than adding the corresponding
  649. Content-Transfer-Encoding header, \fI7bit\fP that only rejects 8-bit characters
  650. with a transfer error, \fIquoted-printable\fP and \fIbase64\fP that encodes
  651. data according to the corresponding schemes, limiting lines length to
  652. 76 characters.
  653. Example: send multipart mail with a quoted-printable text message and a
  654. base64 attached file:
  655. curl -F '=text message;encoder=quoted-printable' \\
  656. .br
  657. -F '=@localfile;encoder=base64' ... smtp://example.com
  658. See further examples and details in the MANUAL.
  659. This option can be used multiple times.
  660. This option overrides \fI-d, --data\fP and \fI-I, --head\fP and \fI-T, --upload-file\fP.
  661. .IP "--ftp-account <data>"
  662. (FTP) When an FTP server asks for "account data" after user name and password has
  663. been provided, this data is sent off using the ACCT command.
  664. If this option is used several times, the last one will be used.
  665. Added in 7.13.0.
  666. .IP "--ftp-alternative-to-user <command>"
  667. (FTP) If authenticating with the USER and PASS commands fails, send this command.
  668. When connecting to Tumbleweed's Secure Transport server over FTPS using a
  669. client certificate, using "SITE AUTH" will tell the server to retrieve the
  670. username from the certificate.
  671. Added in 7.15.5.
  672. .IP "--ftp-create-dirs"
  673. (FTP SFTP) When an FTP or SFTP URL/operation uses a path that doesn't currently exist on
  674. the server, the standard behavior of curl is to fail. Using this option, curl
  675. will instead attempt to create missing directories.
  676. See also \fI--create-dirs\fP.
  677. .IP "--ftp-method <method>"
  678. (FTP) Control what method curl should use to reach a file on an FTP(S)
  679. server. The method argument should be one of the following alternatives:
  680. .RS
  681. .IP multicwd
  682. curl does a single CWD operation for each path part in the given URL. For deep
  683. hierarchies this means very many commands. This is how RFC 1738 says it should
  684. be done. This is the default but the slowest behavior.
  685. .IP nocwd
  686. curl does no CWD at all. curl will do SIZE, RETR, STOR etc and give a full
  687. path to the server for all these commands. This is the fastest behavior.
  688. .IP singlecwd
  689. curl does one CWD with the full target directory and then operates on the file
  690. \&"normally" (like in the multicwd case). This is somewhat more standards
  691. compliant than 'nocwd' but without the full penalty of 'multicwd'.
  692. .RE
  693. Added in 7.15.1.
  694. .IP "--ftp-pasv"
  695. (FTP) Use passive mode for the data connection. Passive is the internal default
  696. behavior, but using this option can be used to override a previous \fI-P, --ftp-port\fP
  697. option.
  698. If this option is used several times, only the first one is used. Undoing an
  699. enforced passive really isn't doable but you must then instead enforce the
  700. correct \fI-P, --ftp-port\fP again.
  701. Passive mode means that curl will try the EPSV command first and then PASV,
  702. unless \fI--disable-epsv\fP is used.
  703. See also \fI--disable-epsv\fP. Added in 7.11.0.
  704. .IP "-P, --ftp-port <address>"
  705. (FTP) Reverses the default initiator/listener roles when connecting with FTP. This
  706. option makes curl use active mode. curl then tells the server to connect back
  707. to the client's specified address and port, while passive mode asks the server
  708. to setup an IP address and port for it to connect to. <address> should be one
  709. of:
  710. .RS
  711. .IP interface
  712. e.g. "eth0" to specify which interface's IP address you want to use (Unix only)
  713. .IP "IP address"
  714. e.g. "192.168.10.1" to specify the exact IP address
  715. .IP "host name"
  716. e.g. "my.host.domain" to specify the machine
  717. .IP "-"
  718. make curl pick the same IP address that is already used for the control
  719. connection
  720. .RE
  721. If this option is used several times, the last one will be used. Disable the
  722. use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command
  723. instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++.
  724. Since 7.19.5, you can append \&":[start]-[end]\&" to the right of the address,
  725. to tell curl what TCP port range to use. That means you specify a port range,
  726. from a lower to a higher number. A single number works as well, but do note
  727. that it increases the risk of failure since the port may not be available.
  728. See also \fI--ftp-pasv\fP and \fI--disable-eprt\fP.
  729. .IP "--ftp-pret"
  730. (FTP) Tell curl to send a PRET command before PASV (and EPSV). Certain FTP servers,
  731. mainly drftpd, require this non-standard command for directory listings as
  732. well as up and downloads in PASV mode.
  733. Added in 7.20.0.
  734. .IP "--ftp-skip-pasv-ip"
  735. (FTP) Tell curl to not use the IP address the server suggests in its response
  736. to curl's PASV command when curl connects the data connection. Instead curl
  737. will re-use the same IP address it already uses for the control
  738. connection.
  739. This option has no effect if PORT, EPRT or EPSV is used instead of PASV.
  740. See also \fI--ftp-pasv\fP. Added in 7.14.2.
  741. .IP "--ftp-ssl-ccc-mode <active/passive>"
  742. (FTP) Sets the CCC mode. The passive mode will not initiate the shutdown, but
  743. instead wait for the server to do it, and will not reply to the shutdown from
  744. the server. The active mode initiates the shutdown and waits for a reply from
  745. the server.
  746. See also \fI--ftp-ssl-ccc\fP. Added in 7.16.2.
  747. .IP "--ftp-ssl-ccc"
  748. (FTP) Use CCC (Clear Command Channel) Shuts down the SSL/TLS layer after
  749. authenticating. The rest of the control channel communication will be
  750. unencrypted. This allows NAT routers to follow the FTP transaction. The
  751. default mode is passive.
  752. See also \fI--ssl\fP and \fI--ftp-ssl-ccc-mode\fP. Added in 7.16.1.
  753. .IP "--ftp-ssl-control"
  754. (FTP) Require SSL/TLS for the FTP login, clear for transfer. Allows secure
  755. authentication, but non-encrypted data transfers for efficiency. Fails the
  756. transfer if the server doesn't support SSL/TLS.
  757. Added in 7.16.0.
  758. .IP "-G, --get"
  759. When used, this option will make all data specified with \fI-d, --data\fP, \fI--data-binary\fP
  760. or \fI--data-urlencode\fP to be used in an HTTP GET request instead of the POST
  761. request that otherwise would be used. The data will be appended to the URL
  762. with a '?' separator.
  763. If used in combination with \fI-I, --head\fP, the POST data will instead be appended to
  764. the URL with a HEAD request.
  765. If this option is used several times, only the first one is used. This is
  766. because undoing a GET doesn't make sense, but you should then instead enforce
  767. the alternative method you prefer.
  768. .IP "-g, --globoff"
  769. This option switches off the "URL globbing parser". When you set this option,
  770. you can specify URLs that contain the letters {}[] without having them being
  771. interpreted by curl itself. Note that these letters are not normal legal URL
  772. contents but they should be encoded according to the URI standard.
  773. .IP "--happy-eyeballs-timeout-ms <milliseconds>"
  774. Happy eyeballs is an algorithm that attempts to connect to both IPv4 and IPv6
  775. addresses for dual-stack hosts, preferring IPv6 first for the number of
  776. milliseconds. If the IPv6 address cannot be connected to within that time then
  777. a connection attempt is made to the IPv4 address in parallel. The first
  778. connection to be established is the one that is used.
  779. The range of suggested useful values is limited. Happy Eyeballs RFC 6555 says
  780. "It is RECOMMENDED that connection attempts be paced 150-250 ms apart to
  781. balance human factors against network load." libcurl currently defaults to
  782. 200 ms. Firefox and Chrome currently default to 300 ms.
  783. If this option is used several times, the last one will be used.
  784. Added in 7.59.0.
  785. .IP "--haproxy-protocol"
  786. (HTTP) Send a HAProxy PROXY protocol v1 header at the beginning of the connection. This
  787. is used by some load balancers and reverse proxies to indicate the client's
  788. true IP address and port.
  789. This option is primarily useful when sending test requests to a service that
  790. expects this header.
  791. Added in 7.60.0.
  792. .IP "-I, --head"
  793. (HTTP FTP FILE) Fetch the headers only! HTTP-servers feature the command HEAD which this uses
  794. to get nothing but the header of a document. When used on an FTP or FILE file,
  795. curl displays the file size and last modification time only.
  796. .IP "-H, --header <header/@file>"
  797. (HTTP) Extra header to include in the request when sending HTTP to a server. You may
  798. specify any number of extra headers. Note that if you should add a custom
  799. header that has the same name as one of the internal ones curl would use, your
  800. externally set header will be used instead of the internal one. This allows
  801. you to make even trickier stuff than curl would normally do. You should not
  802. replace internally set headers without knowing perfectly well what you're
  803. doing. Remove an internal header by giving a replacement without content on
  804. the right side of the colon, as in: -H \&"Host:". If you send the custom
  805. header with no-value then its header must be terminated with a semicolon, such
  806. as \-H \&"X-Custom-Header;" to send "X-Custom-Header:".
  807. curl will make sure that each header you add/replace is sent with the proper
  808. end-of-line marker, you should thus \fBnot\fP add that as a part of the header
  809. content: do not add newlines or carriage returns, they will only mess things up
  810. for you.
  811. Starting in 7.55.0, this option can take an argument in @filename style, which
  812. then adds a header for each line in the input file. Using @- will make curl
  813. read the header file from stdin.
  814. See also the \fI-A, --user-agent\fP and \fI-e, --referer\fP options.
  815. Starting in 7.37.0, you need \fI--proxy-header\fP to send custom headers intended
  816. for a proxy.
  817. Example:
  818. curl -H "X-First-Name: Joe" http://example.com/
  819. \fBWARNING\fP: headers set with this option will be set in all requests - even
  820. after redirects are followed, like when told with \fI-L, --location\fP. This can lead to
  821. the header being sent to other hosts than the original host, so sensitive
  822. headers should be used with caution combined with following redirects.
  823. This option can be used multiple times to add/replace/remove multiple headers.
  824. .IP "-h, --help"
  825. Usage help. This lists all current command line options with a short
  826. description.
  827. .IP "--hostpubmd5 <md5>"
  828. (SFTP SCP) Pass a string containing 32 hexadecimal digits. The string should
  829. be the 128 bit MD5 checksum of the remote host's public key, curl will refuse
  830. the connection with the host unless the md5sums match.
  831. Added in 7.17.1.
  832. .IP "-0, --http1.0"
  833. (HTTP) Tells curl to use HTTP version 1.0 instead of using its internally preferred
  834. HTTP version.
  835. This option overrides \fI--http1.1\fP and \fI--http2\fP.
  836. .IP "--http1.1"
  837. (HTTP) Tells curl to use HTTP version 1.1.
  838. This option overrides \fI-0, --http1.0\fP and \fI--http2\fP. Added in 7.33.0.
  839. .IP "--http2-prior-knowledge"
  840. (HTTP) Tells curl to issue its non-TLS HTTP requests using HTTP/2 without HTTP/1.1
  841. Upgrade. It requires prior knowledge that the server supports HTTP/2 straight
  842. away. HTTPS requests will still do HTTP/2 the standard way with negotiated
  843. protocol version in the TLS handshake.
  844. \fI--http2-prior-knowledge\fP requires that the underlying libcurl was built to support HTTP/2. This option overrides \fI--http1.1\fP and \fI-0, --http1.0\fP and \fI--http2\fP. Added in 7.49.0.
  845. .IP "--http2"
  846. (HTTP) Tells curl to use HTTP version 2.
  847. See also \fI--no-alpn\fP. \fI--http2\fP requires that the underlying libcurl was built to support HTTP/2. This option overrides \fI--http1.1\fP and \fI-0, --http1.0\fP and \fI--http2-prior-knowledge\fP. Added in 7.33.0.
  848. .IP "--ignore-content-length"
  849. (FTP HTTP) For HTTP, Ignore the Content-Length header. This is particularly useful for
  850. servers running Apache 1.x, which will report incorrect Content-Length for
  851. files larger than 2 gigabytes.
  852. For FTP (since 7.46.0), skip the RETR command to figure out the size before
  853. downloading a file.
  854. .IP "-i, --include"
  855. Include the HTTP response headers in the output. The HTTP response headers can
  856. include things like server name, cookies, date of the document, HTTP version
  857. and more...
  858. To view the request headers, consider the \fI-v, --verbose\fP option.
  859. See also \fI-v, --verbose\fP.
  860. .IP "-k, --insecure"
  861. (TLS)
  862. By default, every SSL connection curl makes is verified to be secure. This
  863. option allows curl to proceed and operate even for server connections
  864. otherwise considered insecure.
  865. The server connection is verified by making sure the server's certificate
  866. contains the right name and verifies successfully using the cert store.
  867. See this online resource for further details:
  868. https://curl.haxx.se/docs/sslcerts.html
  869. See also \fI--proxy-insecure\fP and \fI--cacert\fP.
  870. .IP "--interface <name>"
  871. Perform an operation using a specified interface. You can enter interface
  872. name, IP address or host name. An example could look like:
  873. curl --interface eth0:1 https://www.example.com/
  874. If this option is used several times, the last one will be used.
  875. On Linux it can be used to specify a VRF, but the binary needs to either
  876. have CAP_NET_RAW or to be run as root. More information about Linux VRF:
  877. https://www.kernel.org/doc/Documentation/networking/vrf.txt
  878. See also \fI--dns-interface\fP.
  879. .IP "-4, --ipv4"
  880. This option tells curl to resolve names to IPv4 addresses only, and not for
  881. example try IPv6.
  882. See also \fI--http1.1\fP and \fI--http2\fP. This option overrides \fI-6, --ipv6\fP.
  883. .IP "-6, --ipv6"
  884. This option tells curl to resolve names to IPv6 addresses only, and not for
  885. example try IPv4.
  886. See also \fI--http1.1\fP and \fI--http2\fP. This option overrides \fI-6, --ipv6\fP.
  887. .IP "-j, --junk-session-cookies"
  888. (HTTP) When curl is told to read cookies from a given file, this option will make it
  889. discard all "session cookies". This will basically have the same effect as if
  890. a new session is started. Typical browsers always discard session cookies when
  891. they're closed down.
  892. See also \fI-b, --cookie\fP and \fI-c, --cookie-jar\fP.
  893. .IP "--keepalive-time <seconds>"
  894. This option sets the time a connection needs to remain idle before sending
  895. keepalive probes and the time between individual keepalive probes. It is
  896. currently effective on operating systems offering the TCP_KEEPIDLE and
  897. TCP_KEEPINTVL socket options (meaning Linux, recent AIX, HP-UX and more). This
  898. option has no effect if \fI--no-keepalive\fP is used.
  899. If this option is used several times, the last one will be used. If
  900. unspecified, the option defaults to 60 seconds.
  901. Added in 7.18.0.
  902. .IP "--key-type <type>"
  903. (TLS) Private key file type. Specify which type your \fI--key\fP provided private key
  904. is. DER, PEM, and ENG are supported. If not specified, PEM is assumed.
  905. If this option is used several times, the last one will be used.
  906. .IP "--key <key>"
  907. (TLS SSH) Private key file name. Allows you to provide your private key in this separate
  908. file. For SSH, if not specified, curl tries the following candidates in order:
  909. '~/.ssh/id_rsa', '~/.ssh/id_dsa', './id_rsa', './id_dsa'.
  910. If curl is built against OpenSSL library, and the engine pkcs11 is available,
  911. then a PKCS#11 URI (RFC 7512) can be used to specify a private key located in a
  912. PKCS#11 device. A string beginning with "pkcs11:" will be interpreted as a
  913. PKCS#11 URI. If a PKCS#11 URI is provided, then the \fI--engine\fP option will be set
  914. as "pkcs11" if none was provided and the \fI--key-type\fP option will be set as
  915. "ENG" if none was provided.
  916. If this option is used several times, the last one will be used.
  917. .IP "--krb <level>"
  918. (FTP) Enable Kerberos authentication and use. The level must be entered and should
  919. be one of 'clear', 'safe', 'confidential', or 'private'. Should you use a
  920. level that is not one of these, 'private' will instead be used.
  921. If this option is used several times, the last one will be used.
  922. \fI--krb\fP requires that the underlying libcurl was built to support Kerberos.
  923. .IP "--libcurl <file>"
  924. Append this option to any ordinary curl command line, and you will get a
  925. libcurl-using C source code written to the file that does the equivalent
  926. of what your command-line operation does!
  927. If this option is used several times, the last given file name will be
  928. used.
  929. Added in 7.16.1.
  930. .IP "--limit-rate <speed>"
  931. Specify the maximum transfer rate you want curl to use - for both downloads
  932. and uploads. This feature is useful if you have a limited pipe and you'd like
  933. your transfer not to use your entire bandwidth. To make it slower than it
  934. otherwise would be.
  935. The given speed is measured in bytes/second, unless a suffix is appended.
  936. Appending 'k' or 'K' will count the number as kilobytes, 'm' or 'M' makes it
  937. megabytes, while 'g' or 'G' makes it gigabytes. Examples: 200K, 3m and 1G.
  938. If you also use the \fI-Y, --speed-limit\fP option, that option will take precedence and
  939. might cripple the rate-limiting slightly, to help keeping the speed-limit
  940. logic working.
  941. If this option is used several times, the last one will be used.
  942. .IP "-l, --list-only"
  943. (FTP POP3) (FTP)
  944. When listing an FTP directory, this switch forces a name-only view. This is
  945. especially useful if the user wants to machine-parse the contents of an FTP
  946. directory since the normal directory view doesn't use a standard look or
  947. format. When used like this, the option causes a NLST command to be sent to
  948. the server instead of LIST.
  949. Note: Some FTP servers list only files in their response to NLST; they do not
  950. include sub-directories and symbolic links.
  951. (POP3)
  952. When retrieving a specific email from POP3, this switch forces a LIST command
  953. to be performed instead of RETR. This is particularly useful if the user wants
  954. to see if a specific message id exists on the server and what size it is.
  955. Note: When combined with \fI-X, --request\fP, this option can be used to send an UIDL
  956. command instead, so the user may use the email's unique identifier rather than
  957. it's message id to make the request.
  958. Added in 7.21.5.
  959. .IP "--local-port <num/range>"
  960. Set a preferred single number or range (FROM-TO) of local port numbers to use
  961. for the connection(s). Note that port numbers by nature are a scarce resource
  962. that will be busy at times so setting this range to something too narrow might
  963. cause unnecessary connection setup failures.
  964. Added in 7.15.2.
  965. .IP "--location-trusted"
  966. (HTTP) Like \fI-L, --location\fP, but will allow sending the name + password to all hosts that
  967. the site may redirect to. This may or may not introduce a security breach if
  968. the site redirects you to a site to which you'll send your authentication info
  969. (which is plaintext in the case of HTTP Basic authentication).
  970. See also \fI-u, --user\fP.
  971. .IP "-L, --location"
  972. (HTTP) If the server reports that the requested page has moved to a different
  973. location (indicated with a Location: header and a 3XX response code), this
  974. option will make curl redo the request on the new place. If used together with
  975. \fI-i, --include\fP or \fI-I, --head\fP, headers from all requested pages will be shown. When
  976. authentication is used, curl only sends its credentials to the initial
  977. host. If a redirect takes curl to a different host, it won't be able to
  978. intercept the user+password. See also \fI--location-trusted\fP on how to change
  979. this. You can limit the amount of redirects to follow by using the
  980. \fI--max-redirs\fP option.
  981. When curl follows a redirect and the request is not a plain GET (for example
  982. POST or PUT), it will do the following request with a GET if the HTTP response
  983. was 301, 302, or 303. If the response code was any other 3xx code, curl will
  984. re-send the following request using the same unmodified method.
  985. You can tell curl to not change the non-GET request method to GET after a 30x
  986. response by using the dedicated options for that: \fI--post301\fP, \fI--post302\fP and
  987. \fI--post303\fP.
  988. .IP "--login-options <options>"
  989. (IMAP POP3 SMTP) Specify the login options to use during server authentication.
  990. You can use the login options to specify protocol specific options that may
  991. be used during authentication. At present only IMAP, POP3 and SMTP support
  992. login options. For more information about the login options please see
  993. RFC 2384, RFC 5092 and IETF draft draft-earhart-url-smtp-00.txt
  994. If this option is used several times, the last one will be used.
  995. Added in 7.34.0.
  996. .IP "--mail-auth <address>"
  997. (SMTP) Specify a single address. This will be used to specify the authentication
  998. address (identity) of a submitted message that is being relayed to another
  999. server.
  1000. See also \fI--mail-rcpt\fP and \fI--mail-from\fP. Added in 7.25.0.
  1001. .IP "--mail-from <address>"
  1002. (SMTP) Specify a single address that the given mail should get sent from.
  1003. See also \fI--mail-rcpt\fP and \fI--mail-auth\fP. Added in 7.20.0.
  1004. .IP "--mail-rcpt <address>"
  1005. (SMTP) Specify a single address, user name or mailing list name. Repeat this
  1006. option several times to send to multiple recipients.
  1007. When performing a mail transfer, the recipient should specify a valid email
  1008. address to send the mail to.
  1009. When performing an address verification (VRFY command), the recipient should be
  1010. specified as the user name or user name and domain (as per Section 3.5 of
  1011. RFC5321). (Added in 7.34.0)
  1012. When performing a mailing list expand (EXPN command), the recipient should be
  1013. specified using the mailing list name, such as "Friends" or "London-Office".
  1014. (Added in 7.34.0)
  1015. Added in 7.20.0.
  1016. .IP "-M, --manual"
  1017. Manual. Display the huge help text.
  1018. .IP "--max-filesize <bytes>"
  1019. Specify the maximum size (in bytes) of a file to download. If the file
  1020. requested is larger than this value, the transfer will not start and curl will
  1021. return with exit code 63.
  1022. A size modifier may be used. For example, Appending 'k' or 'K' will count the
  1023. number as kilobytes, 'm' or 'M' makes it megabytes, while 'g' or 'G' makes it
  1024. gigabytes. Examples: 200K, 3m and 1G. (Added in 7.58.0)
  1025. \fBNOTE:\fP The file size is not always known prior to download, and for such
  1026. files this option has no effect even if the file transfer ends up being larger
  1027. than this given limit. This concerns both FTP and HTTP transfers.
  1028. See also \fI--limit-rate\fP.
  1029. .IP "--max-redirs <num>"
  1030. (HTTP) Set maximum number of redirection-followings allowed. When \fI-L, --location\fP is used,
  1031. is used to prevent curl from following redirections \&"in absurdum". By
  1032. default, the limit is set to 50 redirections. Set this option to -1 to make it
  1033. unlimited.
  1034. If this option is used several times, the last one will be used.
  1035. .IP "-m, --max-time <seconds>"
  1036. Maximum time in seconds that you allow the whole operation to take. This is
  1037. useful for preventing your batch jobs from hanging for hours due to slow
  1038. networks or links going down. Since 7.32.0, this option accepts decimal
  1039. values, but the actual timeout will decrease in accuracy as the specified
  1040. timeout increases in decimal precision.
  1041. If this option is used several times, the last one will be used.
  1042. See also \fI--connect-timeout\fP.
  1043. .IP "--metalink"
  1044. This option can tell curl to parse and process a given URI as Metalink file
  1045. (both version 3 and 4 (RFC 5854) are supported) and make use of the mirrors
  1046. listed within for failover if there are errors (such as the file or server not
  1047. being available). It will also verify the hash of the file after the download
  1048. completes. The Metalink file itself is downloaded and processed in memory and
  1049. not stored in the local file system.
  1050. Example to use a remote Metalink file:
  1051. curl --metalink http://www.example.com/example.metalink
  1052. To use a Metalink file in the local file system, use FILE protocol (file://):
  1053. curl --metalink file://example.metalink
  1054. Please note that if FILE protocol is disabled, there is no way to use a local
  1055. Metalink file at the time of this writing. Also note that if \fI--metalink\fP and
  1056. \fI-i, --include\fP are used together, --include will be ignored. This is because
  1057. including headers in the response will break Metalink parser and if the
  1058. headers are included in the file described in Metalink file, hash check will
  1059. fail.
  1060. \fI--metalink\fP requires that the underlying libcurl was built to support metalink. Added in 7.27.0.
  1061. .IP "--negotiate"
  1062. (HTTP) Enables Negotiate (SPNEGO) authentication.
  1063. This option requires a library built with GSS-API or SSPI support. Use
  1064. \fI-V, --version\fP to see if your curl supports GSS-API/SSPI or SPNEGO.
  1065. When using this option, you must also provide a fake \fI-u, --user\fP option to activate
  1066. the authentication code properly. Sending a '-u :' is enough as the user name
  1067. and password from the \fI-u, --user\fP option aren't actually used.
  1068. If this option is used several times, only the first one is used.
  1069. See also \fI--basic\fP and \fI--ntlm\fP and \fI--anyauth\fP and \fI--proxy-negotiate\fP.
  1070. .IP "--netrc-file <filename>"
  1071. This option is similar to \fI-n, --netrc\fP, except that you provide the path (absolute
  1072. or relative) to the netrc file that Curl should use. You can only specify one
  1073. netrc file per invocation. If several \fI--netrc-file\fP options are provided,
  1074. the last one will be used.
  1075. It will abide by \fI--netrc-optional\fP if specified.
  1076. This option overrides \fI-n, --netrc\fP. Added in 7.21.5.
  1077. .IP "--netrc-optional"
  1078. Very similar to \fI-n, --netrc\fP, but this option makes the .netrc usage \fBoptional\fP
  1079. and not mandatory as the \fI-n, --netrc\fP option does.
  1080. See also \fI--netrc-file\fP. This option overrides \fI-n, --netrc\fP.
  1081. .IP "-n, --netrc"
  1082. Makes curl scan the \fI.netrc\fP (\fI_netrc\fP on Windows) file in the user's
  1083. home directory for login name and password. This is typically used for FTP on
  1084. Unix. If used with HTTP, curl will enable user authentication. See
  1085. \fInetrc(5)\fP \fIftp(1)\fP for details on the file format. Curl will not
  1086. complain if that file doesn't have the right permissions (it should not be
  1087. either world- or group-readable). The environment variable "HOME" is used to
  1088. find the home directory.
  1089. A quick and very simple example of how to setup a \fI.netrc\fP to allow curl
  1090. to FTP to the machine host.domain.com with user name \&'myself' and password
  1091. \&'secret' should look similar to:
  1092. .B "machine host.domain.com login myself password secret"
  1093. .IP "-:, --next"
  1094. Tells curl to use a separate operation for the following URL and associated
  1095. options. This allows you to send several URL requests, each with their own
  1096. specific options, for example, such as different user names or custom requests
  1097. for each.
  1098. \fI-:, --next\fP will reset all local options and only global ones will have their
  1099. values survive over to the operation following the \fI-:, --next\fP instruction. Global
  1100. options include \fI-v, --verbose\fP, \fI--trace\fP, \fI--trace-ascii\fP and \fI--fail-early\fP.
  1101. For example, you can do both a GET and a POST in a single command line:
  1102. curl www1.example.com --next -d postthis www2.example.com
  1103. Added in 7.36.0.
  1104. .IP "--no-alpn"
  1105. (HTTPS) Disable the ALPN TLS extension. ALPN is enabled by default if libcurl was built
  1106. with an SSL library that supports ALPN. ALPN is used by a libcurl that supports
  1107. HTTP/2 to negotiate HTTP/2 support with the server during https sessions.
  1108. See also \fI--no-npn\fP and \fI--http2\fP. \fI--no-alpn\fP requires that the underlying libcurl was built to support TLS. Added in 7.36.0.
  1109. .IP "-N, --no-buffer"
  1110. Disables the buffering of the output stream. In normal work situations, curl
  1111. will use a standard buffered output stream that will have the effect that it
  1112. will output the data in chunks, not necessarily exactly when the data arrives.
  1113. Using this option will disable that buffering.
  1114. Note that this is the negated option name documented. You can thus use
  1115. --buffer to enforce the buffering.
  1116. .IP "--no-keepalive"
  1117. Disables the use of keepalive messages on the TCP connection. curl otherwise
  1118. enables them by default.
  1119. Note that this is the negated option name documented. You can thus use
  1120. --keepalive to enforce keepalive.
  1121. .IP "--no-npn"
  1122. (HTTPS) Disable the NPN TLS extension. NPN is enabled by default if libcurl was built
  1123. with an SSL library that supports NPN. NPN is used by a libcurl that supports
  1124. HTTP/2 to negotiate HTTP/2 support with the server during https sessions.
  1125. See also \fI--no-alpn\fP and \fI--http2\fP. \fI--no-npn\fP requires that the underlying libcurl was built to support TLS. Added in 7.36.0.
  1126. .IP "--no-sessionid"
  1127. (TLS) Disable curl's use of SSL session-ID caching. By default all transfers are
  1128. done using the cache. Note that while nothing should ever get hurt by
  1129. attempting to reuse SSL session-IDs, there seem to be broken SSL
  1130. implementations in the wild that may require you to disable this in order for
  1131. you to succeed.
  1132. Note that this is the negated option name documented. You can thus use
  1133. --sessionid to enforce session-ID caching.
  1134. Added in 7.16.0.
  1135. .IP "--noproxy <no-proxy-list>"
  1136. Comma-separated list of hosts which do not use a proxy, if one is specified.
  1137. The only wildcard is a single * character, which matches all hosts, and
  1138. effectively disables the proxy. Each name in this list is matched as either
  1139. a domain which contains the hostname, or the hostname itself. For example,
  1140. local.com would match local.com, local.com:80, and www.local.com, but not
  1141. www.notlocal.com.
  1142. Since 7.53.0, This option overrides the environment variables that disable the
  1143. proxy. If there's an environment variable disabling a proxy, you can set
  1144. noproxy list to \&"" to override it.
  1145. Added in 7.19.4.
  1146. .IP "--ntlm-wb"
  1147. (HTTP) Enables NTLM much in the style \fI--ntlm\fP does, but hand over the authentication
  1148. to the separate binary ntlmauth application that is executed when needed.
  1149. See also \fI--ntlm\fP and \fI--proxy-ntlm\fP.
  1150. .IP "--ntlm"
  1151. (HTTP) Enables NTLM authentication. The NTLM authentication method was designed by
  1152. Microsoft and is used by IIS web servers. It is a proprietary protocol,
  1153. reverse-engineered by clever people and implemented in curl based on their
  1154. efforts. This kind of behavior should not be endorsed, you should encourage
  1155. everyone who uses NTLM to switch to a public and documented authentication
  1156. method instead, such as Digest.
  1157. If you want to enable NTLM for your proxy authentication, then use
  1158. \fI--proxy-ntlm\fP.
  1159. If this option is used several times, only the first one is used.
  1160. See also \fI--proxy-ntlm\fP. \fI--ntlm\fP requires that the underlying libcurl was built to support TLS. This option overrides \fI--basic\fP and \fI--negotiate\fP and \fI--digest\fP and \fI--anyauth\fP.
  1161. .IP "--oauth2-bearer <token>"
  1162. (IMAP POP3 SMTP) Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
  1163. is used in conjunction with the user name which can be specified as part of
  1164. the \fI--url\fP or \fI-u, --user\fP options.
  1165. The Bearer Token and user name are formatted according to RFC 6750.
  1166. If this option is used several times, the last one will be used.
  1167. .IP "-o, --output <file>"
  1168. Write output to <file> instead of stdout. If you are using {} or [] to fetch
  1169. multiple documents, you can use '#' followed by a number in the <file>
  1170. specifier. That variable will be replaced with the current string for the URL
  1171. being fetched. Like in:
  1172. curl http://{one,two}.example.com -o "file_#1.txt"
  1173. or use several variables like:
  1174. curl http://{site,host}.host[1-5].com -o "#1_#2"
  1175. You may use this option as many times as the number of URLs you have. For
  1176. example, if you specify two URLs on the same command line, you can use it like
  1177. this:
  1178. curl -o aa example.com -o bb example.net
  1179. and the order of the -o options and the URLs doesn't matter, just that the
  1180. first -o is for the first URL and so on, so the above command line can also be
  1181. written as
  1182. curl example.com example.net -o aa -o bb
  1183. See also the \fI--create-dirs\fP option to create the local directories
  1184. dynamically. Specifying the output as '-' (a single dash) will force the
  1185. output to be done to stdout.
  1186. See also \fI-O, --remote-name\fP and \fI--remote-name-all\fP and \fI-J, --remote-header-name\fP.
  1187. .IP "--pass <phrase>"
  1188. (SSH TLS) Passphrase for the private key
  1189. If this option is used several times, the last one will be used.
  1190. .IP "--path-as-is"
  1191. Tell curl to not handle sequences of /../ or /./ in the given URL
  1192. path. Normally curl will squash or merge them according to standards but with
  1193. this option set you tell it not to do that.
  1194. Added in 7.42.0.
  1195. .IP "--pinnedpubkey <hashes>"
  1196. (TLS) Tells curl to use the specified public key file (or hashes) to verify the
  1197. peer. This can be a path to a file which contains a single public key in PEM
  1198. or DER format, or any number of base64 encoded sha256 hashes preceded by
  1199. \'sha256//\' and separated by \';\'
  1200. When negotiating a TLS or SSL connection, the server sends a certificate
  1201. indicating its identity. A public key is extracted from this certificate and
  1202. if it does not exactly match the public key provided to this option, curl will
  1203. abort the connection before sending or receiving any data.
  1204. PEM/DER support:
  1205. 7.39.0: OpenSSL, GnuTLS and GSKit
  1206. 7.43.0: NSS and wolfSSL/CyaSSL
  1207. 7.47.0: mbedtls
  1208. 7.49.0: PolarSSL
  1209. sha256 support:
  1210. 7.44.0: OpenSSL, GnuTLS, NSS and wolfSSL/CyaSSL.
  1211. 7.47.0: mbedtls
  1212. 7.49.0: PolarSSL
  1213. Other SSL backends not supported.
  1214. If this option is used several times, the last one will be used.
  1215. .IP "--post301"
  1216. (HTTP) Tells curl to respect RFC 7231/6.4.2 and not convert POST requests into GET
  1217. requests when following a 301 redirection. The non-RFC behaviour is ubiquitous
  1218. in web browsers, so curl does the conversion by default to maintain
  1219. consistency. However, a server may require a POST to remain a POST after such
  1220. a redirection. This option is meaningful only when using \fI-L, --location\fP.
  1221. See also \fI--post302\fP and \fI--post303\fP and \fI-L, --location\fP. Added in 7.17.1.
  1222. .IP "--post302"
  1223. (HTTP) Tells curl to respect RFC 7231/6.4.3 and not convert POST requests into GET
  1224. requests when following a 302 redirection. The non-RFC behaviour is ubiquitous
  1225. in web browsers, so curl does the conversion by default to maintain
  1226. consistency. However, a server may require a POST to remain a POST after such
  1227. a redirection. This option is meaningful only when using \fI-L, --location\fP.
  1228. See also \fI--post301\fP and \fI--post303\fP and \fI-L, --location\fP. Added in 7.19.1.
  1229. .IP "--post303"
  1230. (HTTP) Tells curl to violate RFC 7231/6.4.4 and not convert POST requests into GET
  1231. requests when following 303 redirections. A server may require a POST to
  1232. remain a POST after a 303 redirection. This option is meaningful only when
  1233. using \fI-L, --location\fP.
  1234. See also \fI--post302\fP and \fI--post301\fP and \fI-L, --location\fP. Added in 7.26.0.
  1235. .IP "--preproxy [protocol://]host[:port]"
  1236. Use the specified SOCKS proxy before connecting to an HTTP or HTTPS \fI-x, --proxy\fP. In
  1237. such a case curl first connects to the SOCKS proxy and then connects (through
  1238. SOCKS) to the HTTP or HTTPS proxy. Hence pre proxy.
  1239. The pre proxy string should be specified with a protocol:// prefix to specify
  1240. alternative proxy protocols. Use socks4://, socks4a://, socks5:// or
  1241. socks5h:// to request the specific SOCKS version to be used. No protocol
  1242. specified will make curl default to SOCKS4.
  1243. If the port number is not specified in the proxy string, it is assumed to be
  1244. 1080.
  1245. User and password that might be provided in the proxy string are URL decoded
  1246. by curl. This allows you to pass in special characters such as @ by using %40
  1247. or pass in a colon with %3a.
  1248. If this option is used several times, the last one will be used.
  1249. Added in 7.52.0.
  1250. .IP "-#, --progress-bar"
  1251. Make curl display transfer progress as a simple progress bar instead of the
  1252. standard, more informational, meter.
  1253. This progress bar draws a single line of '#' characters across the screen and
  1254. shows a percentage if the transfer size is known. For transfers without a
  1255. known size, there will be space ship (-=o=-) that moves back and forth but
  1256. only while data is being transferred, with a set of flying hash sign symbols on
  1257. top.
  1258. .IP "--proto-default <protocol>"
  1259. Tells curl to use \fIprotocol\fP for any URL missing a scheme name.
  1260. Example:
  1261. curl --proto-default https ftp.mozilla.org
  1262. An unknown or unsupported protocol causes error
  1263. \fICURLE_UNSUPPORTED_PROTOCOL\fP (1).
  1264. This option does not change the default proxy protocol (http).
  1265. Without this option curl would make a guess based on the host, see \fI--url\fP for
  1266. details.
  1267. Added in 7.45.0.
  1268. .IP "--proto-redir <protocols>"
  1269. Tells curl to limit what protocols it may use on redirect. Protocols denied by
  1270. \fI--proto\fP are not overridden by this option. See --proto for how protocols are
  1271. represented.
  1272. Example, allow only HTTP and HTTPS on redirect:
  1273. curl --proto-redir -all,http,https http://example.com
  1274. By default curl will allow all protocols on redirect except several disabled
  1275. for security reasons: Since 7.19.4 FILE and SCP are disabled, and since 7.40.0
  1276. SMB and SMBS are also disabled. Specifying \fIall\fP or \fI+all\fP enables all
  1277. protocols on redirect, including those disabled for security.
  1278. Added in 7.20.2.
  1279. .IP "--proto <protocols>"
  1280. Tells curl to limit what protocols it may use in the transfer. Protocols are
  1281. evaluated left to right, are comma separated, and are each a protocol name or
  1282. 'all', optionally prefixed by zero or more modifiers. Available modifiers are:
  1283. .RS
  1284. .TP 3
  1285. .B +
  1286. Permit this protocol in addition to protocols already permitted (this is
  1287. the default if no modifier is used).
  1288. .TP
  1289. .B -
  1290. Deny this protocol, removing it from the list of protocols already permitted.
  1291. .TP
  1292. .B =
  1293. Permit only this protocol (ignoring the list already permitted), though
  1294. subject to later modification by subsequent entries in the comma separated
  1295. list.
  1296. .RE
  1297. .IP
  1298. For example:
  1299. .RS
  1300. .TP 15
  1301. .B \fI--proto\fP -ftps
  1302. uses the default protocols, but disables ftps
  1303. .TP
  1304. .B \fI--proto\fP -all,https,+http
  1305. only enables http and https
  1306. .TP
  1307. .B \fI--proto\fP =http,https
  1308. also only enables http and https
  1309. .RE
  1310. Unknown protocols produce a warning. This allows scripts to safely rely on
  1311. being able to disable potentially dangerous protocols, without relying upon
  1312. support for that protocol being built into curl to avoid an error.
  1313. This option can be used multiple times, in which case the effect is the same
  1314. as concatenating the protocols into one instance of the option.
  1315. See also \fI--proto-redir\fP and \fI--proto-default\fP. Added in 7.20.2.
  1316. .IP "--proxy-anyauth"
  1317. Tells curl to pick a suitable authentication method when communicating with
  1318. the given HTTP proxy. This might cause an extra request/response round-trip.
  1319. See also \fI-x, --proxy\fP and \fI--proxy-basic\fP and \fI--proxy-digest\fP. Added in 7.13.2.
  1320. .IP "--proxy-basic"
  1321. Tells curl to use HTTP Basic authentication when communicating with the given
  1322. proxy. Use \fI--basic\fP for enabling HTTP Basic with a remote host. Basic is the
  1323. default authentication method curl uses with proxies.
  1324. See also \fI-x, --proxy\fP and \fI--proxy-anyauth\fP and \fI--proxy-digest\fP.
  1325. .IP "--proxy-cacert <file>"
  1326. Same as \fI--cacert\fP but used in HTTPS proxy context.
  1327. See also \fI--proxy-capath\fP and \fI--cacert\fP and \fI--capath\fP and \fI-x, --proxy\fP. Added in 7.52.0.
  1328. .IP "--proxy-capath <dir>"
  1329. Same as \fI--capath\fP but used in HTTPS proxy context.
  1330. See also \fI--proxy-cacert\fP and \fI-x, --proxy\fP and \fI--capath\fP. Added in 7.52.0.
  1331. .IP "--proxy-cert-type <type>"
  1332. Same as \fI--cert-type\fP but used in HTTPS proxy context.
  1333. Added in 7.52.0.
  1334. .IP "--proxy-cert <cert[:passwd]>"
  1335. Same as \fI-E, --cert\fP but used in HTTPS proxy context.
  1336. Added in 7.52.0.
  1337. .IP "--proxy-ciphers <list>"
  1338. Same as \fI--ciphers\fP but used in HTTPS proxy context.
  1339. Added in 7.52.0.
  1340. .IP "--proxy-crlfile <file>"
  1341. Same as \fI--crlfile\fP but used in HTTPS proxy context.
  1342. Added in 7.52.0.
  1343. .IP "--proxy-digest"
  1344. Tells curl to use HTTP Digest authentication when communicating with the given
  1345. proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host.
  1346. See also \fI-x, --proxy\fP and \fI--proxy-anyauth\fP and \fI--proxy-basic\fP.
  1347. .IP "--proxy-header <header/@file>"
  1348. (HTTP) Extra header to include in the request when sending HTTP to a proxy. You may
  1349. specify any number of extra headers. This is the equivalent option to \fI-H, --header\fP
  1350. but is for proxy communication only like in CONNECT requests when you want a
  1351. separate header sent to the proxy to what is sent to the actual remote host.
  1352. curl will make sure that each header you add/replace is sent with the proper
  1353. end-of-line marker, you should thus \fBnot\fP add that as a part of the header
  1354. content: do not add newlines or carriage returns, they will only mess things
  1355. up for you.
  1356. Headers specified with this option will not be included in requests that curl
  1357. knows will not be sent to a proxy.
  1358. Starting in 7.55.0, this option can take an argument in @filename style, which
  1359. then adds a header for each line in the input file. Using @- will make curl
  1360. read the header file from stdin.
  1361. This option can be used multiple times to add/replace/remove multiple headers.
  1362. Added in 7.37.0.
  1363. .IP "--proxy-insecure"
  1364. Same as \fI-k, --insecure\fP but used in HTTPS proxy context.
  1365. Added in 7.52.0.
  1366. .IP "--proxy-key-type <type>"
  1367. Same as \fI--key-type\fP but used in HTTPS proxy context.
  1368. Added in 7.52.0.
  1369. .IP "--proxy-key <key>"
  1370. Same as \fI--key\fP but used in HTTPS proxy context.
  1371. .IP "--proxy-negotiate"
  1372. Tells curl to use HTTP Negotiate (SPNEGO) authentication when communicating
  1373. with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate (SPNEGO)
  1374. with a remote host.
  1375. See also \fI--proxy-anyauth\fP and \fI--proxy-basic\fP. Added in 7.17.1.
  1376. .IP "--proxy-ntlm"
  1377. Tells curl to use HTTP NTLM authentication when communicating with the given
  1378. proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host.
  1379. See also \fI--proxy-negotiate\fP and \fI--proxy-anyauth\fP.
  1380. .IP "--proxy-pass <phrase>"
  1381. Same as \fI--pass\fP but used in HTTPS proxy context.
  1382. Added in 7.52.0.
  1383. .IP "--proxy-pinnedpubkey <hashes>"
  1384. (TLS) Tells curl to use the specified public key file (or hashes) to verify the
  1385. proxy. This can be a path to a file which contains a single public key in PEM
  1386. or DER format, or any number of base64 encoded sha256 hashes preceded by
  1387. \'sha256//\' and separated by \';\'
  1388. When negotiating a TLS or SSL connection, the server sends a certificate
  1389. indicating its identity. A public key is extracted from this certificate and
  1390. if it does not exactly match the public key provided to this option, curl will
  1391. abort the connection before sending or receiving any data.
  1392. If this option is used several times, the last one will be used.
  1393. .IP "--proxy-service-name <name>"
  1394. This option allows you to change the service name for proxy negotiation.
  1395. Added in 7.43.0.
  1396. .IP "--proxy-ssl-allow-beast"
  1397. Same as \fI--ssl-allow-beast\fP but used in HTTPS proxy context.
  1398. Added in 7.52.0.
  1399. .IP "--proxy-tls13-ciphers <ciphersuite list>"
  1400. (TLS) Specifies which cipher suites to use in the connection to your HTTPS proxy
  1401. when it negotiates TLS 1.3. The list of ciphers suites must specify valid
  1402. ciphers. Read up on TLS 1.3 cipher suite details on this URL:
  1403. https://curl.haxx.se/docs/ssl-ciphers.html
  1404. If this option is used several times, the last one will be used.
  1405. .IP "--proxy-tlsauthtype <type>"
  1406. Same as \fI--tlsauthtype\fP but used in HTTPS proxy context.
  1407. Added in 7.52.0.
  1408. .IP "--proxy-tlspassword <string>"
  1409. Same as \fI--tlspassword\fP but used in HTTPS proxy context.
  1410. Added in 7.52.0.
  1411. .IP "--proxy-tlsuser <name>"
  1412. Same as \fI--tlsuser\fP but used in HTTPS proxy context.
  1413. Added in 7.52.0.
  1414. .IP "--proxy-tlsv1"
  1415. Same as \fI-1, --tlsv1\fP but used in HTTPS proxy context.
  1416. Added in 7.52.0.
  1417. .IP "-U, --proxy-user <user:password>"
  1418. Specify the user name and password to use for proxy authentication.
  1419. If you use a Windows SSPI-enabled curl binary and do either Negotiate or NTLM
  1420. authentication then you can tell curl to select the user name and password
  1421. from your environment by specifying a single colon with this option: "-U :".
  1422. If this option is used several times, the last one will be used.
  1423. .IP "-x, --proxy [protocol://]host[:port]"
  1424. Use the specified proxy.
  1425. The proxy string can be specified with a protocol:// prefix. No protocol
  1426. specified or http:// will be treated as HTTP proxy. Use socks4://, socks4a://,
  1427. socks5:// or socks5h:// to request a specific SOCKS version to be used.
  1428. (The protocol support was added in curl 7.21.7)
  1429. HTTPS proxy support via https:// protocol prefix was added in 7.52.0 for
  1430. OpenSSL, GnuTLS and NSS.
  1431. Unrecognized and unsupported proxy protocols cause an error since 7.52.0.
  1432. Prior versions may ignore the protocol and use http:// instead.
  1433. If the port number is not specified in the proxy string, it is assumed to be
  1434. 1080.
  1435. This option overrides existing environment variables that set the proxy to
  1436. use. If there's an environment variable setting a proxy, you can set proxy to
  1437. \&"" to override it.
  1438. All operations that are performed over an HTTP proxy will transparently be
  1439. converted to HTTP. It means that certain protocol specific operations might
  1440. not be available. This is not the case if you can tunnel through the proxy, as
  1441. one with the \fI-p, --proxytunnel\fP option.
  1442. User and password that might be provided in the proxy string are URL decoded
  1443. by curl. This allows you to pass in special characters such as @ by using %40
  1444. or pass in a colon with %3a.
  1445. The proxy host can be specified the exact same way as the proxy environment
  1446. variables, including the protocol prefix (http://) and the embedded user +
  1447. password.
  1448. If this option is used several times, the last one will be used.
  1449. .IP "--proxy1.0 <host[:port]>"
  1450. Use the specified HTTP 1.0 proxy. If the port number is not specified, it is
  1451. assumed at port 1080.
  1452. The only difference between this and the HTTP proxy option \fI-x, --proxy\fP, is that
  1453. attempts to use CONNECT through the proxy will specify an HTTP 1.0 protocol
  1454. instead of the default HTTP 1.1.
  1455. .IP "-p, --proxytunnel"
  1456. When an HTTP proxy is used \fI-x, --proxy\fP, this option will cause non-HTTP protocols
  1457. to attempt to tunnel through the proxy instead of merely using it to do
  1458. HTTP-like operations. The tunnel approach is made with the HTTP proxy CONNECT
  1459. request and requires that the proxy allows direct connect to the remote port
  1460. number curl wants to tunnel through to.
  1461. To suppress proxy CONNECT response headers when curl is set to output headers
  1462. use \fI--suppress-connect-headers\fP.
  1463. See also \fI-x, --proxy\fP.
  1464. .IP "--pubkey <key>"
  1465. (SFTP SCP) Public key file name. Allows you to provide your public key in this separate
  1466. file.
  1467. If this option is used several times, the last one will be used.
  1468. (As of 7.39.0, curl attempts to automatically extract the public key from the
  1469. private key file, so passing this option is generally not required. Note that
  1470. this public key extraction requires libcurl to be linked against a copy of
  1471. libssh2 1.2.8 or higher that is itself linked against OpenSSL.)
  1472. .IP "-Q, --quote"
  1473. (FTP SFTP)
  1474. Send an arbitrary command to the remote FTP or SFTP server. Quote commands are
  1475. sent BEFORE the transfer takes place (just after the initial PWD command in an
  1476. FTP transfer, to be exact). To make commands take place after a successful
  1477. transfer, prefix them with a dash '-'. To make commands be sent after curl
  1478. has changed the working directory, just before the transfer command(s), prefix
  1479. the command with a '+' (this is only supported for FTP). You may specify any
  1480. number of commands.
  1481. If the server returns failure for one of the commands, the entire operation
  1482. will be aborted. You must send syntactically correct FTP commands as RFC 959
  1483. defines to FTP servers, or one of the commands listed below to SFTP servers.
  1484. This option can be used multiple times. When speaking to an FTP server, prefix
  1485. the command with an asterisk (*) to make curl continue even if the command
  1486. fails as by default curl will stop at first failure.
  1487. SFTP is a binary protocol. Unlike for FTP, curl interprets SFTP quote commands
  1488. itself before sending them to the server. File names may be quoted
  1489. shell-style to embed spaces or special characters. Following is the list of
  1490. all supported SFTP quote commands:
  1491. .RS
  1492. .IP "chgrp group file"
  1493. The chgrp command sets the group ID of the file named by the file operand to
  1494. the group ID specified by the group operand. The group operand is a decimal
  1495. integer group ID.
  1496. .IP "chmod mode file"
  1497. The chmod command modifies the file mode bits of the specified file. The
  1498. mode operand is an octal integer mode number.
  1499. .IP "chown user file"
  1500. The chown command sets the owner of the file named by the file operand to the
  1501. user ID specified by the user operand. The user operand is a decimal
  1502. integer user ID.
  1503. .IP "ln source_file target_file"
  1504. The ln and symlink commands create a symbolic link at the target_file location
  1505. pointing to the source_file location.
  1506. .IP "mkdir directory_name"
  1507. The mkdir command creates the directory named by the directory_name operand.
  1508. .IP "pwd"
  1509. The pwd command returns the absolute pathname of the current working directory.
  1510. .IP "rename source target"
  1511. The rename command renames the file or directory named by the source
  1512. operand to the destination path named by the target operand.
  1513. .IP "rm file"
  1514. The rm command removes the file specified by the file operand.
  1515. .IP "rmdir directory"
  1516. The rmdir command removes the directory entry specified by the directory
  1517. operand, provided it is empty.
  1518. .IP "symlink source_file target_file"
  1519. See ln.
  1520. .RE
  1521. .IP "--random-file <file>"
  1522. Specify the path name to file containing what will be considered as random
  1523. data. The data may be used to seed the random engine for SSL connections. See
  1524. also the \fI--egd-file\fP option.
  1525. .IP "-r, --range <range>"
  1526. (HTTP FTP SFTP FILE) Retrieve a byte range (i.e. a partial document) from an HTTP/1.1, FTP or SFTP
  1527. server or a local FILE. Ranges can be specified in a number of ways.
  1528. .RS
  1529. .TP 10
  1530. .B 0-499
  1531. specifies the first 500 bytes
  1532. .TP
  1533. .B 500-999
  1534. specifies the second 500 bytes
  1535. .TP
  1536. .B -500
  1537. specifies the last 500 bytes
  1538. .TP
  1539. .B 9500-
  1540. specifies the bytes from offset 9500 and forward
  1541. .TP
  1542. .B 0-0,-1
  1543. specifies the first and last byte only(*)(HTTP)
  1544. .TP
  1545. .B 100-199,500-599
  1546. specifies two separate 100-byte ranges(*) (HTTP)
  1547. .RE
  1548. .IP
  1549. (*) = NOTE that this will cause the server to reply with a multipart
  1550. response!
  1551. Only digit characters (0-9) are valid in the 'start' and 'stop' fields of the
  1552. \&'start-stop' range syntax. If a non-digit character is given in the range,
  1553. the server's response will be unspecified, depending on the server's
  1554. configuration.
  1555. You should also be aware that many HTTP/1.1 servers do not have this feature
  1556. enabled, so that when you attempt to get a range, you'll instead get the whole
  1557. document.
  1558. FTP and SFTP range downloads only support the simple 'start-stop' syntax
  1559. (optionally with one of the numbers omitted). FTP use depends on the extended
  1560. FTP command SIZE.
  1561. If this option is used several times, the last one will be used.
  1562. .IP "--raw"
  1563. (HTTP) When used, it disables all internal HTTP decoding of content or transfer
  1564. encodings and instead makes them passed on unaltered, raw.
  1565. Added in 7.16.2.
  1566. .IP "-e, --referer <URL>"
  1567. (HTTP) Sends the "Referrer Page" information to the HTTP server. This can also be set
  1568. with the \fI-H, --header\fP flag of course. When used with \fI-L, --location\fP you can append
  1569. ";auto" to the \fI-e, --referer\fP URL to make curl automatically set the previous URL
  1570. when it follows a Location: header. The \&";auto" string can be used alone,
  1571. even if you don't set an initial \fI-e, --referer\fP.
  1572. If this option is used several times, the last one will be used.
  1573. See also \fI-A, --user-agent\fP and \fI-H, --header\fP.
  1574. .IP "-J, --remote-header-name"
  1575. (HTTP) This option tells the \fI-O, --remote-name\fP option to use the server-specified
  1576. Content-Disposition filename instead of extracting a filename from the URL.
  1577. If the server specifies a file name and a file with that name already exists
  1578. in the current working directory it will not be overwritten and an error will
  1579. occur. If the server doesn't specify a file name then this option has no
  1580. effect.
  1581. There's no attempt to decode %-sequences (yet) in the provided file name, so
  1582. this option may provide you with rather unexpected file names.
  1583. \fBWARNING\fP: Exercise judicious use of this option, especially on Windows. A
  1584. rogue server could send you the name of a DLL or other file that could possibly
  1585. be loaded automatically by Windows or some third party software.
  1586. .IP "--remote-name-all"
  1587. This option changes the default action for all given URLs to be dealt with as
  1588. if \fI-O, --remote-name\fP were used for each one. So if you want to disable that for a
  1589. specific URL after \fI--remote-name-all\fP has been used, you must use "-o -" or
  1590. --no-remote-name.
  1591. Added in 7.19.0.
  1592. .IP "-O, --remote-name"
  1593. Write output to a local file named like the remote file we get. (Only the file
  1594. part of the remote file is used, the path is cut off.)
  1595. The file will be saved in the current working directory. If you want the file
  1596. saved in a different directory, make sure you change the current working
  1597. directory before invoking curl with this option.
  1598. The remote file name to use for saving is extracted from the given URL,
  1599. nothing else, and if it already exists it will be overwritten. If you want the
  1600. server to be able to choose the file name refer to \fI-J, --remote-header-name\fP which
  1601. can be used in addition to this option. If the server chooses a file name and
  1602. that name already exists it will not be overwritten.
  1603. There is no URL decoding done on the file name. If it has %20 or other URL
  1604. encoded parts of the name, they will end up as-is as file name.
  1605. You may use this option as many times as the number of URLs you have.
  1606. .IP "-R, --remote-time"
  1607. When used, this will make curl attempt to figure out the timestamp of the
  1608. remote file, and if that is available make the local file get that same
  1609. timestamp.
  1610. .IP "--request-target"
  1611. (HTTP) Tells curl to use an alternative "target" (path) instead of using the path as
  1612. provided in the URL. Particularly useful when wanting to issue HTTP requests
  1613. without leading slash or other data that doesn't follow the regular URL
  1614. pattern, like "OPTIONS *".
  1615. Added in 7.55.0.
  1616. .IP "-X, --request <command>"
  1617. (HTTP) Specifies a custom request method to use when communicating with the
  1618. HTTP server. The specified request method will be used instead of the method
  1619. otherwise used (which defaults to GET). Read the HTTP 1.1 specification for
  1620. details and explanations. Common additional HTTP requests include PUT and
  1621. DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and
  1622. more.
  1623. Normally you don't need this option. All sorts of GET, HEAD, POST and PUT
  1624. requests are rather invoked by using dedicated command line options.
  1625. This option only changes the actual word used in the HTTP request, it does not
  1626. alter the way curl behaves. So for example if you want to make a proper HEAD
  1627. request, using -X HEAD will not suffice. You need to use the \fI-I, --head\fP option.
  1628. The method string you set with \fI-X, --request\fP will be used for all requests, which
  1629. if you for example use \fI-L, --location\fP may cause unintended side-effects when curl
  1630. doesn't change request method according to the HTTP 30x response codes - and
  1631. similar.
  1632. (FTP)
  1633. Specifies a custom FTP command to use instead of LIST when doing file lists
  1634. with FTP.
  1635. (POP3)
  1636. Specifies a custom POP3 command to use instead of LIST or RETR. (Added in
  1637. 7.26.0)
  1638. (IMAP)
  1639. Specifies a custom IMAP command to use instead of LIST. (Added in 7.30.0)
  1640. (SMTP)
  1641. Specifies a custom SMTP command to use instead of HELP or VRFY. (Added in 7.34.0)
  1642. If this option is used several times, the last one will be used.
  1643. .IP "--resolve <host:port:address[,address]...>"
  1644. Provide a custom address for a specific host and port pair. Using this, you
  1645. can make the curl requests(s) use a specified address and prevent the
  1646. otherwise normally resolved address to be used. Consider it a sort of
  1647. /etc/hosts alternative provided on the command line. The port number should be
  1648. the number used for the specific protocol the host will be used for. It means
  1649. you need several entries if you want to provide address for the same host but
  1650. different ports.
  1651. The provided address set by this option will be used even if \fI-4, --ipv4\fP or \fI-6, --ipv6\fP
  1652. is set to make curl use another IP version.
  1653. Support for providing the IP address within [brackets] was added in 7.57.0.
  1654. Support for providing multiple IP addresses per entry was added in 7.59.0.
  1655. This option can be used many times to add many host names to resolve.
  1656. Added in 7.21.3.
  1657. .IP "--retry-connrefused"
  1658. In addition to the other conditions, consider ECONNREFUSED as a transient
  1659. error too for \fI--retry\fP. This option is used together with --retry.
  1660. Added in 7.52.0.
  1661. .IP "--retry-delay <seconds>"
  1662. Make curl sleep this amount of time before each retry when a transfer has
  1663. failed with a transient error (it changes the default backoff time algorithm
  1664. between retries). This option is only interesting if \fI--retry\fP is also
  1665. used. Setting this delay to zero will make curl use the default backoff time.
  1666. If this option is used several times, the last one will be used.
  1667. Added in 7.12.3.
  1668. .IP "--retry-max-time <seconds>"
  1669. The retry timer is reset before the first transfer attempt. Retries will be
  1670. done as usual (see \fI--retry\fP) as long as the timer hasn't reached this given
  1671. limit. Notice that if the timer hasn't reached the limit, the request will be
  1672. made and while performing, it may take longer than this given time period. To
  1673. limit a single request\'s maximum time, use \fI-m, --max-time\fP. Set this option to
  1674. zero to not timeout retries.
  1675. If this option is used several times, the last one will be used.
  1676. Added in 7.12.3.
  1677. .IP "--retry <num>"
  1678. If a transient error is returned when curl tries to perform a transfer, it
  1679. will retry this number of times before giving up. Setting the number to 0
  1680. makes curl do no retries (which is the default). Transient error means either:
  1681. a timeout, an FTP 4xx response code or an HTTP 408 or 5xx response code.
  1682. When curl is about to retry a transfer, it will first wait one second and then
  1683. for all forthcoming retries it will double the waiting time until it reaches
  1684. 10 minutes which then will be the delay between the rest of the retries. By
  1685. using \fI--retry-delay\fP you disable this exponential backoff algorithm. See also
  1686. \fI--retry-max-time\fP to limit the total time allowed for retries.
  1687. If this option is used several times, the last one will be used.
  1688. Added in 7.12.3.
  1689. .IP "--sasl-ir"
  1690. Enable initial response in SASL authentication.
  1691. Added in 7.31.0.
  1692. .IP "--service-name <name>"
  1693. This option allows you to change the service name for SPNEGO.
  1694. Examples: \fI--negotiate\fP \fI--service-name\fP sockd would use sockd/server-name.
  1695. Added in 7.43.0.
  1696. .IP "-S, --show-error"
  1697. When used with \fI-s, --silent\fP, it makes curl show an error message if it fails.
  1698. .IP "-s, --silent"
  1699. Silent or quiet mode. Don't show progress meter or error messages. Makes Curl
  1700. mute. It will still output the data you ask for, potentially even to the
  1701. terminal/stdout unless you redirect it.
  1702. Use \fI-S, --show-error\fP in addition to this option to disable progress meter but
  1703. still show error messages.
  1704. See also \fI-v, --verbose\fP and \fI--stderr\fP.
  1705. .IP "--socks4 <host[:port]>"
  1706. Use the specified SOCKS4 proxy. If the port number is not specified, it is
  1707. assumed at port 1080.
  1708. This option overrides any previous use of \fI-x, --proxy\fP, as they are mutually
  1709. exclusive.
  1710. Since 7.21.7, this option is superfluous since you can specify a socks4 proxy
  1711. with \fI-x, --proxy\fP using a socks4:// protocol prefix.
  1712. Since 7.52.0, \fI--preproxy\fP can be used to specify a SOCKS proxy at the same time
  1713. \fI-x, --proxy\fP is used with an HTTP/HTTPS proxy. In such a case curl first connects to
  1714. the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS proxy.
  1715. If this option is used several times, the last one will be used.
  1716. Added in 7.15.2.
  1717. .IP "--socks4a <host[:port]>"
  1718. Use the specified SOCKS4a proxy. If the port number is not specified, it is
  1719. assumed at port 1080.
  1720. This option overrides any previous use of \fI-x, --proxy\fP, as they are mutually
  1721. exclusive.
  1722. Since 7.21.7, this option is superfluous since you can specify a socks4a proxy
  1723. with \fI-x, --proxy\fP using a socks4a:// protocol prefix.
  1724. Since 7.52.0, \fI--preproxy\fP can be used to specify a SOCKS proxy at the same time
  1725. \fI-x, --proxy\fP is used with an HTTP/HTTPS proxy. In such a case curl first connects to
  1726. the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS proxy.
  1727. If this option is used several times, the last one will be used.
  1728. Added in 7.18.0.
  1729. .IP "--socks5-basic"
  1730. Tells curl to use username/password authentication when connecting to a SOCKS5
  1731. proxy. The username/password authentication is enabled by default. Use
  1732. \fI--socks5-gssapi\fP to force GSS-API authentication to SOCKS5 proxies.
  1733. Added in 7.55.0.
  1734. .IP "--socks5-gssapi-nec"
  1735. As part of the GSS-API negotiation a protection mode is negotiated. RFC 1961
  1736. says in section 4.3/4.4 it should be protected, but the NEC reference
  1737. implementation does not. The option \fI--socks5-gssapi-nec\fP allows the
  1738. unprotected exchange of the protection mode negotiation.
  1739. Added in 7.19.4.
  1740. .IP "--socks5-gssapi-service <name>"
  1741. The default service name for a socks server is rcmd/server-fqdn. This option
  1742. allows you to change it.
  1743. Examples: \fI--socks5\fP proxy-name \fI--socks5-gssapi-service\fP sockd would use
  1744. sockd/proxy-name \fI--socks5\fP proxy-name \fI--socks5-gssapi-service\fP sockd/real-name
  1745. would use sockd/real-name for cases where the proxy-name does not match the
  1746. principal name.
  1747. Added in 7.19.4.
  1748. .IP "--socks5-gssapi"
  1749. Tells curl to use GSS-API authentication when connecting to a SOCKS5 proxy.
  1750. The GSS-API authentication is enabled by default (if curl is compiled with
  1751. GSS-API support). Use \fI--socks5-basic\fP to force username/password authentication
  1752. to SOCKS5 proxies.
  1753. Added in 7.55.0.
  1754. .IP "--socks5-hostname <host[:port]>"
  1755. Use the specified SOCKS5 proxy (and let the proxy resolve the host name). If
  1756. the port number is not specified, it is assumed at port 1080.
  1757. This option overrides any previous use of \fI-x, --proxy\fP, as they are mutually
  1758. exclusive.
  1759. Since 7.21.7, this option is superfluous since you can specify a socks5
  1760. hostname proxy with \fI-x, --proxy\fP using a socks5h:// protocol prefix.
  1761. Since 7.52.0, \fI--preproxy\fP can be used to specify a SOCKS proxy at the same time
  1762. \fI-x, --proxy\fP is used with an HTTP/HTTPS proxy. In such a case curl first connects to
  1763. the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS proxy.
  1764. If this option is used several times, the last one will be used.
  1765. Added in 7.18.0.
  1766. .IP "--socks5 <host[:port]>"
  1767. Use the specified SOCKS5 proxy - but resolve the host name locally. If the
  1768. port number is not specified, it is assumed at port 1080.
  1769. This option overrides any previous use of \fI-x, --proxy\fP, as they are mutually
  1770. exclusive.
  1771. Since 7.21.7, this option is superfluous since you can specify a socks5 proxy
  1772. with \fI-x, --proxy\fP using a socks5:// protocol prefix.
  1773. Since 7.52.0, \fI--preproxy\fP can be used to specify a SOCKS proxy at the same time
  1774. \fI-x, --proxy\fP is used with an HTTP/HTTPS proxy. In such a case curl first connects to
  1775. the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS proxy.
  1776. If this option is used several times, the last one will be used.
  1777. This option (as well as \fI--socks4\fP) does not work with IPV6, FTPS or LDAP.
  1778. Added in 7.18.0.
  1779. .IP "-Y, --speed-limit <speed>"
  1780. If a download is slower than this given speed (in bytes per second) for
  1781. speed-time seconds it gets aborted. speed-time is set with \fI-y, --speed-time\fP and is
  1782. 30 if not set.
  1783. If this option is used several times, the last one will be used.
  1784. .IP "-y, --speed-time <seconds>"
  1785. If a download is slower than speed-limit bytes per second during a speed-time
  1786. period, the download gets aborted. If speed-time is used, the default
  1787. speed-limit will be 1 unless set with \fI-Y, --speed-limit\fP.
  1788. This option controls transfers and thus will not affect slow connects etc. If
  1789. this is a concern for you, try the \fI--connect-timeout\fP option.
  1790. If this option is used several times, the last one will be used.
  1791. .IP "--ssl-allow-beast"
  1792. This option tells curl to not work around a security flaw in the SSL3 and
  1793. TLS1.0 protocols known as BEAST. If this option isn't used, the SSL layer may
  1794. use workarounds known to cause interoperability problems with some older SSL
  1795. implementations. WARNING: this option loosens the SSL security, and by using
  1796. this flag you ask for exactly that.
  1797. Added in 7.25.0.
  1798. .IP "--ssl-no-revoke"
  1799. (WinSSL) This option tells curl to disable certificate revocation checks.
  1800. WARNING: this option loosens the SSL security, and by using this flag you ask
  1801. for exactly that.
  1802. Added in 7.44.0.
  1803. .IP "--ssl-reqd"
  1804. (FTP IMAP POP3 SMTP) Require SSL/TLS for the connection. Terminates the connection if the server
  1805. doesn't support SSL/TLS.
  1806. This option was formerly known as --ftp-ssl-reqd.
  1807. Added in 7.20.0.
  1808. .IP "--ssl"
  1809. (FTP IMAP POP3 SMTP)
  1810. Try to use SSL/TLS for the connection. Reverts to a non-secure connection if
  1811. the server doesn't support SSL/TLS. See also \fI--ftp-ssl-control\fP and \fI--ssl-reqd\fP
  1812. for different levels of encryption required.
  1813. This option was formerly known as --ftp-ssl (Added in 7.11.0). That option
  1814. name can still be used but will be removed in a future version.
  1815. Added in 7.20.0.
  1816. .IP "-2, --sslv2"
  1817. (SSL) Forces curl to use SSL version 2 when negotiating with a remote SSL
  1818. server. Sometimes curl is built without SSLv2 support. SSLv2 is widely
  1819. considered insecure (see RFC 6176).
  1820. See also \fI--http1.1\fP and \fI--http2\fP. \fI-2, --sslv2\fP requires that the underlying libcurl was built to support TLS. This option overrides \fI-3, --sslv3\fP and \fI-1, --tlsv1\fP and \fI--tlsv1.1\fP and \fI--tlsv1.2\fP.
  1821. .IP "-3, --sslv3"
  1822. (SSL) Forces curl to use SSL version 3 when negotiating with a remote SSL
  1823. server. Sometimes curl is built without SSLv3 support. SSLv3 is widely
  1824. considered insecure (see RFC 7568).
  1825. See also \fI--http1.1\fP and \fI--http2\fP. \fI-3, --sslv3\fP requires that the underlying libcurl was built to support TLS. This option overrides \fI-2, --sslv2\fP and \fI-1, --tlsv1\fP and \fI--tlsv1.1\fP and \fI--tlsv1.2\fP.
  1826. .IP "--stderr"
  1827. Redirect all writes to stderr to the specified file instead. If the file name
  1828. is a plain '-', it is instead written to stdout.
  1829. If this option is used several times, the last one will be used.
  1830. See also \fI-v, --verbose\fP and \fI-s, --silent\fP.
  1831. .IP "--styled-output"
  1832. Enables the automatic use of bold font styles when writing HTTP headers to the
  1833. terminal. Use --no-styled-output to switch them off.
  1834. Added in 7.61.0.
  1835. .IP "--suppress-connect-headers"
  1836. When \fI-p, --proxytunnel\fP is used and a CONNECT request is made don't output proxy
  1837. CONNECT response headers. This option is meant to be used with \fI-D, --dump-header\fP or
  1838. \fI-i, --include\fP which are used to show protocol headers in the output. It has no
  1839. effect on debug options such as \fI-v, --verbose\fP or \fI--trace\fP, or any statistics.
  1840. See also \fI-D, --dump-header\fP and \fI-i, --include\fP and \fI-p, --proxytunnel\fP.
  1841. .IP "--tcp-fastopen"
  1842. Enable use of TCP Fast Open (RFC7413).
  1843. Added in 7.49.0.
  1844. .IP "--tcp-nodelay"
  1845. Turn on the TCP_NODELAY option. See the \fIcurl_easy_setopt(3)\fP man page for
  1846. details about this option.
  1847. Since 7.50.2, curl sets this option by default and you need to explicitly
  1848. switch it off if you don't want it on.
  1849. Added in 7.11.2.
  1850. .IP "-t, --telnet-option <opt=val>"
  1851. Pass options to the telnet protocol. Supported options are:
  1852. TTYPE=<term> Sets the terminal type.
  1853. XDISPLOC=<X display> Sets the X display location.
  1854. NEW_ENV=<var,val> Sets an environment variable.
  1855. .IP "--tftp-blksize <value>"
  1856. (TFTP) Set TFTP BLKSIZE option (must be >512). This is the block size that curl will
  1857. try to use when transferring data to or from a TFTP server. By default 512
  1858. bytes will be used.
  1859. If this option is used several times, the last one will be used.
  1860. Added in 7.20.0.
  1861. .IP "--tftp-no-options"
  1862. (TFTP) Tells curl not to send TFTP options requests.
  1863. This option improves interop with some legacy servers that do not acknowledge
  1864. or properly implement TFTP options. When this option is used \fI--tftp-blksize\fP is
  1865. ignored.
  1866. Added in 7.48.0.
  1867. .IP "-z, --time-cond <time>"
  1868. (HTTP FTP) Request a file that has been modified later than the given time and date, or
  1869. one that has been modified before that time. The <date expression> can be all
  1870. sorts of date strings or if it doesn't match any internal ones, it is taken as
  1871. a filename and tries to get the modification date (mtime) from <file>
  1872. instead. See the \fIcurl_getdate(3)\fP man pages for date expression details.
  1873. Start the date expression with a dash (-) to make it request for a document
  1874. that is older than the given date/time, default is a document that is newer
  1875. than the specified date/time.
  1876. If this option is used several times, the last one will be used.
  1877. .IP "--tls-max <VERSION>"
  1878. (SSL) VERSION defines maximum supported TLS version. A minimum is defined
  1879. by arguments tlsv1.0 or tlsv1.1 or tlsv1.2.
  1880. .RS
  1881. .IP "default"
  1882. Use up to recommended TLS version.
  1883. .IP "1.0"
  1884. Use up to TLSv1.0.
  1885. .IP "1.1"
  1886. Use up to TLSv1.1.
  1887. .IP "1.2"
  1888. Use up to TLSv1.2.
  1889. .IP "1.3"
  1890. Use up to TLSv1.3.
  1891. .RE
  1892. See also \fI--tlsv1.0\fP and \fI--tlsv1.1\fP and \fI--tlsv1.2\fP. \fI--tls-max\fP requires that the underlying libcurl was built to support TLS. Added in 7.54.0.
  1893. .IP "--tls13-ciphers <list of TLS 1.3 ciphersuites>"
  1894. (TLS) Specifies which cipher suites to use in the connection if it negotiates TLS
  1895. 1.3. The list of ciphers suites must specify valid ciphers. Read up on TLS 1.3
  1896. cipher suite details on this URL:
  1897. https://curl.haxx.se/docs/ssl-ciphers.html
  1898. If this option is used several times, the last one will be used.
  1899. .IP "--tlsauthtype <type>"
  1900. Set TLS authentication type. Currently, the only supported option is "SRP",
  1901. for TLS-SRP (RFC 5054). If \fI--tlsuser\fP and \fI--tlspassword\fP are specified but
  1902. \fI--tlsauthtype\fP is not, then this option defaults to "SRP". This option works
  1903. only if the underlying libcurl is built with TLS-SRP support, which requires
  1904. OpenSSL or GnuTLS with TLS-SRP support.
  1905. Added in 7.21.4.
  1906. .IP "--tlspassword"
  1907. Set password for use with the TLS authentication method specified with
  1908. \fI--tlsauthtype\fP. Requires that \fI--tlsuser\fP also be set.
  1909. Added in 7.21.4.
  1910. .IP "--tlsuser <name>"
  1911. Set username for use with the TLS authentication method specified with
  1912. \fI--tlsauthtype\fP. Requires that \fI--tlspassword\fP also is set.
  1913. Added in 7.21.4.
  1914. .IP "--tlsv1.0"
  1915. (TLS) Forces curl to use TLS version 1.0 when connecting to a remote TLS server.
  1916. Added in 7.34.0.
  1917. .IP "--tlsv1.1"
  1918. (TLS) Forces curl to use TLS version 1.1 or later when connecting to a remote TLS server.
  1919. Added in 7.34.0.
  1920. .IP "--tlsv1.2"
  1921. (TLS) Forces curl to use TLS version 1.2 or later when connecting to a remote TLS server.
  1922. Added in 7.34.0.
  1923. .IP "--tlsv1.3"
  1924. (TLS) Forces curl to use TLS version 1.3 or later when connecting to a remote TLS server.
  1925. Note that TLS 1.3 is only supported by a subset of TLS backends. At the time
  1926. of this writing, they are BoringSSL, NSS, and Secure Transport (on iOS 11 or
  1927. later, and macOS 10.13 or later).
  1928. Added in 7.52.0.
  1929. .IP "-1, --tlsv1"
  1930. (SSL) Tells curl to use at least TLS version 1.x when negotiating with a remote TLS
  1931. server. That means TLS version 1.0 or higher
  1932. See also \fI--http1.1\fP and \fI--http2\fP. \fI-1, --tlsv1\fP requires that the underlying libcurl was built to support TLS. This option overrides \fI--tlsv1.1\fP and \fI--tlsv1.2\fP and \fI--tlsv1.3\fP.
  1933. .IP "--tr-encoding"
  1934. (HTTP) Request a compressed Transfer-Encoding response using one of the algorithms
  1935. curl supports, and uncompress the data while receiving it.
  1936. Added in 7.21.6.
  1937. .IP "--trace-ascii <file>"
  1938. Enables a full trace dump of all incoming and outgoing data, including
  1939. descriptive information, to the given output file. Use "-" as filename to have
  1940. the output sent to stdout.
  1941. This is very similar to \fI--trace\fP, but leaves out the hex part and only shows
  1942. the ASCII part of the dump. It makes smaller output that might be easier to
  1943. read for untrained humans.
  1944. If this option is used several times, the last one will be used.
  1945. This option overrides \fI--trace\fP and \fI-v, --verbose\fP.
  1946. .IP "--trace-time"
  1947. Prepends a time stamp to each trace or verbose line that curl displays.
  1948. Added in 7.14.0.
  1949. .IP "--trace <file>"
  1950. Enables a full trace dump of all incoming and outgoing data, including
  1951. descriptive information, to the given output file. Use "-" as filename to have
  1952. the output sent to stdout. Use "%" as filename to have the output sent to
  1953. stderr.
  1954. If this option is used several times, the last one will be used.
  1955. This option overrides \fI-v, --verbose\fP and \fI--trace-ascii\fP.
  1956. .IP "--unix-socket <path>"
  1957. (HTTP) Connect through this Unix domain socket, instead of using the network.
  1958. Added in 7.40.0.
  1959. .IP "-T, --upload-file <file>"
  1960. This transfers the specified local file to the remote URL. If there is no file
  1961. part in the specified URL, curl will append the local file name. NOTE that you
  1962. must use a trailing / on the last directory to really prove to Curl that there
  1963. is no file name or curl will think that your last directory name is the remote
  1964. file name to use. That will most likely cause the upload operation to fail. If
  1965. this is used on an HTTP(S) server, the PUT command will be used.
  1966. Use the file name "-" (a single dash) to use stdin instead of a given file.
  1967. Alternately, the file name "." (a single period) may be specified instead
  1968. of "-" to use stdin in non-blocking mode to allow reading server output
  1969. while stdin is being uploaded.
  1970. You can specify one \fI-T, --upload-file\fP for each URL on the command line. Each
  1971. \fI-T, --upload-file\fP + URL pair specifies what to upload and to where. curl also
  1972. supports "globbing" of the \fI-T, --upload-file\fP argument, meaning that you can upload
  1973. multiple files to a single URL by using the same URL globbing style supported
  1974. in the URL, like this:
  1975. curl --upload-file "{file1,file2}" http://www.example.com
  1976. or even
  1977. curl -T "img[1-1000].png" ftp://ftp.example.com/upload/
  1978. When uploading to an SMTP server: the uploaded data is assumed to be RFC 5322
  1979. formatted. It has to feature the necessary set of headers and mail body
  1980. formatted correctly by the user as curl will not transcode nor encode it
  1981. further in any way.
  1982. .IP "--url <url>"
  1983. Specify a URL to fetch. This option is mostly handy when you want to specify
  1984. URL(s) in a config file.
  1985. If the given URL is missing a scheme name (such as "http://" or "ftp://" etc)
  1986. then curl will make a guess based on the host. If the outermost sub-domain
  1987. name matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that protocol will be
  1988. used, otherwise HTTP will be used. Since 7.45.0 guessing can be disabled by
  1989. setting a default protocol, see \fI--proto-default\fP for details.
  1990. This option may be used any number of times. To control where this URL is
  1991. written, use the \fI-o, --output\fP or the \fI-O, --remote-name\fP options.
  1992. .IP "-B, --use-ascii"
  1993. (FTP LDAP) Enable ASCII transfer. For FTP, this can also be enforced by using a URL that
  1994. ends with ";type=A". This option causes data sent to stdout to be in text mode
  1995. for win32 systems.
  1996. .IP "-A, --user-agent <name>"
  1997. (HTTP)
  1998. Specify the User-Agent string to send to the HTTP server. To encode blanks in
  1999. the string, surround the string with single quote marks. This header can also
  2000. be set with the \fI-H, --header\fP or the \fI--proxy-header\fP options.
  2001. If this option is used several times, the last one will be used.
  2002. .IP "-u, --user <user:password>"
  2003. Specify the user name and password to use for server authentication. Overrides
  2004. \fI-n, --netrc\fP and \fI--netrc-optional\fP.
  2005. If you simply specify the user name, curl will prompt for a password.
  2006. The user name and passwords are split up on the first colon, which makes it
  2007. impossible to use a colon in the user name with this option. The password can,
  2008. still.
  2009. When using Kerberos V5 with a Windows based server you should include the
  2010. Windows domain name in the user name, in order for the server to successfully
  2011. obtain a Kerberos Ticket. If you don't then the initial authentication
  2012. handshake may fail.
  2013. When using NTLM, the user name can be specified simply as the user name,
  2014. without the domain, if there is a single domain and forest in your setup
  2015. for example.
  2016. To specify the domain name use either Down-Level Logon Name or UPN (User
  2017. Principal Name) formats. For example, EXAMPLE\\user and user@example.com
  2018. respectively.
  2019. If you use a Windows SSPI-enabled curl binary and perform Kerberos V5,
  2020. Negotiate, NTLM or Digest authentication then you can tell curl to select
  2021. the user name and password from your environment by specifying a single colon
  2022. with this option: "-u :".
  2023. If this option is used several times, the last one will be used.
  2024. .IP "-v, --verbose"
  2025. Makes curl verbose during the operation. Useful for debugging and seeing
  2026. what's going on "under the hood". A line starting with '>' means "header data"
  2027. sent by curl, '<' means "header data" received by curl that is hidden in
  2028. normal cases, and a line starting with '*' means additional info provided by
  2029. curl.
  2030. If you only want HTTP headers in the output, \fI-i, --include\fP might be the option
  2031. you're looking for.
  2032. If you think this option still doesn't give you enough details, consider using
  2033. \fI--trace\fP or \fI--trace-ascii\fP instead.
  2034. Use \fI-s, --silent\fP to make curl really quiet.
  2035. See also \fI-i, --include\fP. This option overrides \fI--trace\fP and \fI--trace-ascii\fP.
  2036. .IP "-V, --version"
  2037. Displays information about curl and the libcurl version it uses.
  2038. The first line includes the full version of curl, libcurl and other 3rd party
  2039. libraries linked with the executable.
  2040. The second line (starts with "Protocols:") shows all protocols that libcurl
  2041. reports to support.
  2042. The third line (starts with "Features:") shows specific features libcurl
  2043. reports to offer. Available features include:
  2044. .RS
  2045. .IP "IPv6"
  2046. You can use IPv6 with this.
  2047. .IP "krb4"
  2048. Krb4 for FTP is supported.
  2049. .IP "SSL"
  2050. SSL versions of various protocols are supported, such as HTTPS, FTPS, POP3S
  2051. and so on.
  2052. .IP "libz"
  2053. Automatic decompression of compressed files over HTTP is supported.
  2054. .IP "NTLM"
  2055. NTLM authentication is supported.
  2056. .IP "Debug"
  2057. This curl uses a libcurl built with Debug. This enables more error-tracking
  2058. and memory debugging etc. For curl-developers only!
  2059. .IP "AsynchDNS"
  2060. This curl uses asynchronous name resolves. Asynchronous name resolves can be
  2061. done using either the c-ares or the threaded resolver backends.
  2062. .IP "SPNEGO"
  2063. SPNEGO authentication is supported.
  2064. .IP "Largefile"
  2065. This curl supports transfers of large files, files larger than 2GB.
  2066. .IP "IDN"
  2067. This curl supports IDN - international domain names.
  2068. .IP "GSS-API"
  2069. GSS-API is supported.
  2070. .IP "SSPI"
  2071. SSPI is supported.
  2072. .IP "TLS-SRP"
  2073. SRP (Secure Remote Password) authentication is supported for TLS.
  2074. .IP "HTTP2"
  2075. HTTP/2 support has been built-in.
  2076. .IP "UnixSockets"
  2077. Unix sockets support is provided.
  2078. .IP "HTTPS-proxy"
  2079. This curl is built to support HTTPS proxy.
  2080. .IP "Metalink"
  2081. This curl supports Metalink (both version 3 and 4 (RFC 5854)), which
  2082. describes mirrors and hashes. curl will use mirrors for failover if
  2083. there are errors (such as the file or server not being available).
  2084. .IP "PSL"
  2085. PSL is short for Public Suffix List and means that this curl has been built
  2086. with knowledge about "public suffixes".
  2087. .RE
  2088. .IP "-w, --write-out <format>"
  2089. Make curl display information on stdout after a completed transfer. The format
  2090. is a string that may contain plain text mixed with any number of
  2091. variables. The format can be specified as a literal "string", or you can have
  2092. curl read the format from a file with "@filename" and to tell curl to read the
  2093. format from stdin you write "@-".
  2094. The variables present in the output format will be substituted by the value or
  2095. text that curl thinks fit, as described below. All variables are specified as
  2096. %{variable_name} and to output a normal % you just write them as %%. You can
  2097. output a newline by using \\n, a carriage return with \\r and a tab space with
  2098. \\t.
  2099. .B NOTE:
  2100. The %-symbol is a special symbol in the win32-environment, where all
  2101. occurrences of % must be doubled when using this option.
  2102. The variables available are:
  2103. .RS
  2104. .TP 15
  2105. .B content_type
  2106. The Content-Type of the requested document, if there was any.
  2107. .TP
  2108. .B filename_effective
  2109. The ultimate filename that curl writes out to. This is only meaningful if curl
  2110. is told to write to a file with the \fI-O, --remote-name\fP or \fI-o, --output\fP
  2111. option. It's most useful in combination with the \fI-J, --remote-header-name\fP
  2112. option. (Added in 7.26.0)
  2113. .TP
  2114. .B ftp_entry_path
  2115. The initial path curl ended up in when logging on to the remote FTP
  2116. server. (Added in 7.15.4)
  2117. .TP
  2118. .B http_code
  2119. The numerical response code that was found in the last retrieved HTTP(S) or
  2120. FTP(s) transfer. In 7.18.2 the alias \fBresponse_code\fP was added to show the
  2121. same info.
  2122. .TP
  2123. .B http_connect
  2124. The numerical code that was found in the last response (from a proxy) to a
  2125. curl CONNECT request. (Added in 7.12.4)
  2126. .TP
  2127. .B http_version
  2128. The http version that was effectively used. (Added in 7.50.0)
  2129. .TP
  2130. .B local_ip
  2131. The IP address of the local end of the most recently done connection - can be
  2132. either IPv4 or IPv6 (Added in 7.29.0)
  2133. .TP
  2134. .B local_port
  2135. The local port number of the most recently done connection (Added in 7.29.0)
  2136. .TP
  2137. .B num_connects
  2138. Number of new connects made in the recent transfer. (Added in 7.12.3)
  2139. .TP
  2140. .B num_redirects
  2141. Number of redirects that were followed in the request. (Added in 7.12.3)
  2142. .TP
  2143. .B proxy_ssl_verify_result
  2144. The result of the HTTPS proxy's SSL peer certificate verification that was
  2145. requested. 0 means the verification was successful. (Added in 7.52.0)
  2146. .TP
  2147. .B redirect_url
  2148. When an HTTP request was made without \fI-L, --location\fP to follow redirects (or when
  2149. --max-redir is met), this variable will show the actual URL a redirect
  2150. \fIwould\fP have gone to. (Added in 7.18.2)
  2151. .TP
  2152. .B remote_ip
  2153. The remote IP address of the most recently done connection - can be either
  2154. IPv4 or IPv6 (Added in 7.29.0)
  2155. .TP
  2156. .B remote_port
  2157. The remote port number of the most recently done connection (Added in 7.29.0)
  2158. .TP
  2159. .B scheme
  2160. The URL scheme (sometimes called protocol) that was effectively used (Added in 7.52.0)
  2161. .TP
  2162. .B size_download
  2163. The total amount of bytes that were downloaded.
  2164. .TP
  2165. .B size_header
  2166. The total amount of bytes of the downloaded headers.
  2167. .TP
  2168. .B size_request
  2169. The total amount of bytes that were sent in the HTTP request.
  2170. .TP
  2171. .B size_upload
  2172. The total amount of bytes that were uploaded.
  2173. .TP
  2174. .B speed_download
  2175. The average download speed that curl measured for the complete download. Bytes
  2176. per second.
  2177. .TP
  2178. .B speed_upload
  2179. The average upload speed that curl measured for the complete upload. Bytes per
  2180. second.
  2181. .TP
  2182. .B ssl_verify_result
  2183. The result of the SSL peer certificate verification that was requested. 0
  2184. means the verification was successful. (Added in 7.19.0)
  2185. .TP
  2186. .B time_appconnect
  2187. The time, in seconds, it took from the start until the SSL/SSH/etc
  2188. connect/handshake to the remote host was completed. (Added in 7.19.0)
  2189. .TP
  2190. .B time_connect
  2191. The time, in seconds, it took from the start until the TCP connect to the
  2192. remote host (or proxy) was completed.
  2193. .TP
  2194. .B time_namelookup
  2195. The time, in seconds, it took from the start until the name resolving was
  2196. completed.
  2197. .TP
  2198. .B time_pretransfer
  2199. The time, in seconds, it took from the start until the file transfer was just
  2200. about to begin. This includes all pre-transfer commands and negotiations that
  2201. are specific to the particular protocol(s) involved.
  2202. .TP
  2203. .B time_redirect
  2204. The time, in seconds, it took for all redirection steps including name lookup,
  2205. connect, pretransfer and transfer before the final transaction was
  2206. started. time_redirect shows the complete execution time for multiple
  2207. redirections. (Added in 7.12.3)
  2208. .TP
  2209. .B time_starttransfer
  2210. The time, in seconds, it took from the start until the first byte was just
  2211. about to be transferred. This includes time_pretransfer and also the time the
  2212. server needed to calculate the result.
  2213. .TP
  2214. .B time_total
  2215. The total time, in seconds, that the full operation lasted.
  2216. .TP
  2217. .B url_effective
  2218. The URL that was fetched last. This is most meaningful if you've told curl
  2219. to follow location: headers.
  2220. .RE
  2221. .IP
  2222. If this option is used several times, the last one will be used.
  2223. .IP "--xattr"
  2224. When saving output to a file, this option tells curl to store certain file
  2225. metadata in extended file attributes. Currently, the URL is stored in the
  2226. xdg.origin.url attribute and, for HTTP, the content type is stored in
  2227. the mime_type attribute. If the file system does not support extended
  2228. attributes, a warning is issued.
  2229. .SH FILES
  2230. .I ~/.curlrc
  2231. .RS
  2232. Default config file, see \fI-K, --config\fP for details.
  2233. .SH ENVIRONMENT
  2234. The environment variables can be specified in lower case or upper case. The
  2235. lower case version has precedence. http_proxy is an exception as it is only
  2236. available in lower case.
  2237. Using an environment variable to set the proxy has the same effect as using
  2238. the \fI-x, --proxy\fP option.
  2239. .IP "http_proxy [protocol://]<host>[:port]"
  2240. Sets the proxy server to use for HTTP.
  2241. .IP "HTTPS_PROXY [protocol://]<host>[:port]"
  2242. Sets the proxy server to use for HTTPS.
  2243. .IP "[url-protocol]_PROXY [protocol://]<host>[:port]"
  2244. Sets the proxy server to use for [url-protocol], where the protocol is a
  2245. protocol that curl supports and as specified in a URL. FTP, FTPS, POP3, IMAP,
  2246. SMTP, LDAP etc.
  2247. .IP "ALL_PROXY [protocol://]<host>[:port]"
  2248. Sets the proxy server to use if no protocol-specific proxy is set.
  2249. .IP "NO_PROXY <comma-separated list of hosts/domains>"
  2250. list of host names that shouldn't go through any proxy. If set to an asterisk
  2251. \&'*' only, it matches all hosts. Each name in this list is matched as either
  2252. a domain name which contains the hostname, or the hostname itself.
  2253. This environment variable disables use of the proxy even when specified with
  2254. the \fI-x, --proxy\fP option. That is
  2255. .B NO_PROXY=direct.example.com curl -x http://proxy.example.com
  2256. .B http://direct.example.com
  2257. accesses the target URL directly, and
  2258. .B NO_PROXY=direct.example.com curl -x http://proxy.example.com
  2259. .B http://somewhere.example.com
  2260. accesses the target URL through the proxy.
  2261. The list of host names can also be include numerical IP addresses, and IPv6
  2262. versions should then be given without enclosing brackets.
  2263. .SH "PROXY PROTOCOL PREFIXES"
  2264. Since curl version 7.21.7, the proxy string may be specified with a
  2265. protocol:// prefix to specify alternative proxy protocols.
  2266. If no protocol is specified in the proxy string or if the string doesn't match
  2267. a supported one, the proxy will be treated as an HTTP proxy.
  2268. The supported proxy protocol prefixes are as follows:
  2269. .IP "http://"
  2270. Makes it use it as an HTTP proxy. The default if no scheme prefix is used.
  2271. .IP "https://"
  2272. Makes it treated as an \fBHTTPS\fP proxy.
  2273. .IP "socks4://"
  2274. Makes it the equivalent of \fI--socks4\fP
  2275. .IP "socks4a://"
  2276. Makes it the equivalent of \fI--socks4a\fP
  2277. .IP "socks5://"
  2278. Makes it the equivalent of \fI--socks5\fP
  2279. .IP "socks5h://"
  2280. Makes it the equivalent of \fI--socks5-hostname\fP
  2281. .SH EXIT CODES
  2282. There are a bunch of different error codes and their corresponding error
  2283. messages that may appear during bad conditions. At the time of this writing,
  2284. the exit codes are:
  2285. .IP 1
  2286. Unsupported protocol. This build of curl has no support for this protocol.
  2287. .IP 2
  2288. Failed to initialize.
  2289. .IP 3
  2290. URL malformed. The syntax was not correct.
  2291. .IP 4
  2292. A feature or option that was needed to perform the desired request was not
  2293. enabled or was explicitly disabled at build-time. To make curl able to do
  2294. this, you probably need another build of libcurl!
  2295. .IP 5
  2296. Couldn't resolve proxy. The given proxy host could not be resolved.
  2297. .IP 6
  2298. Couldn't resolve host. The given remote host was not resolved.
  2299. .IP 7
  2300. Failed to connect to host.
  2301. .IP 8
  2302. Weird server reply. The server sent data curl couldn't parse.
  2303. .IP 9
  2304. FTP access denied. The server denied login or denied access to the particular
  2305. resource or directory you wanted to reach. Most often you tried to change to a
  2306. directory that doesn't exist on the server.
  2307. .IP 10
  2308. FTP accept failed. While waiting for the server to connect back when an active
  2309. FTP session is used, an error code was sent over the control connection or
  2310. similar.
  2311. .IP 11
  2312. FTP weird PASS reply. Curl couldn't parse the reply sent to the PASS request.
  2313. .IP 12
  2314. During an active FTP session while waiting for the server to connect back to
  2315. curl, the timeout expired.
  2316. .IP 13
  2317. FTP weird PASV reply, Curl couldn't parse the reply sent to the PASV request.
  2318. .IP 14
  2319. FTP weird 227 format. Curl couldn't parse the 227-line the server sent.
  2320. .IP 15
  2321. FTP can't get host. Couldn't resolve the host IP we got in the 227-line.
  2322. .IP 16
  2323. HTTP/2 error. A problem was detected in the HTTP2 framing layer. This is
  2324. somewhat generic and can be one out of several problems, see the error message
  2325. for details.
  2326. .IP 17
  2327. FTP couldn't set binary. Couldn't change transfer method to binary.
  2328. .IP 18
  2329. Partial file. Only a part of the file was transferred.
  2330. .IP 19
  2331. FTP couldn't download/access the given file, the RETR (or similar) command
  2332. failed.
  2333. .IP 21
  2334. FTP quote error. A quote command returned error from the server.
  2335. .IP 22
  2336. HTTP page not retrieved. The requested url was not found or returned another
  2337. error with the HTTP error code being 400 or above. This return code only
  2338. appears if \fI-f, --fail\fP is used.
  2339. .IP 23
  2340. Write error. Curl couldn't write data to a local filesystem or similar.
  2341. .IP 25
  2342. FTP couldn't STOR file. The server denied the STOR operation, used for FTP
  2343. uploading.
  2344. .IP 26
  2345. Read error. Various reading problems.
  2346. .IP 27
  2347. Out of memory. A memory allocation request failed.
  2348. .IP 28
  2349. Operation timeout. The specified time-out period was reached according to the
  2350. conditions.
  2351. .IP 30
  2352. FTP PORT failed. The PORT command failed. Not all FTP servers support the PORT
  2353. command, try doing a transfer using PASV instead!
  2354. .IP 31
  2355. FTP couldn't use REST. The REST command failed. This command is used for
  2356. resumed FTP transfers.
  2357. .IP 33
  2358. HTTP range error. The range "command" didn't work.
  2359. .IP 34
  2360. HTTP post error. Internal post-request generation error.
  2361. .IP 35
  2362. SSL connect error. The SSL handshaking failed.
  2363. .IP 36
  2364. Bad download resume. Couldn't continue an earlier aborted download.
  2365. .IP 37
  2366. FILE couldn't read file. Failed to open the file. Permissions?
  2367. .IP 38
  2368. LDAP cannot bind. LDAP bind operation failed.
  2369. .IP 39
  2370. LDAP search failed.
  2371. .IP 41
  2372. Function not found. A required LDAP function was not found.
  2373. .IP 42
  2374. Aborted by callback. An application told curl to abort the operation.
  2375. .IP 43
  2376. Internal error. A function was called with a bad parameter.
  2377. .IP 45
  2378. Interface error. A specified outgoing interface could not be used.
  2379. .IP 47
  2380. Too many redirects. When following redirects, curl hit the maximum amount.
  2381. .IP 48
  2382. Unknown option specified to libcurl. This indicates that you passed a weird
  2383. option to curl that was passed on to libcurl and rejected. Read up in the
  2384. manual!
  2385. .IP 49
  2386. Malformed telnet option.
  2387. .IP 51
  2388. The peer's SSL certificate or SSH MD5 fingerprint was not OK.
  2389. .IP 52
  2390. The server didn't reply anything, which here is considered an error.
  2391. .IP 53
  2392. SSL crypto engine not found.
  2393. .IP 54
  2394. Cannot set SSL crypto engine as default.
  2395. .IP 55
  2396. Failed sending network data.
  2397. .IP 56
  2398. Failure in receiving network data.
  2399. .IP 58
  2400. Problem with the local certificate.
  2401. .IP 59
  2402. Couldn't use specified SSL cipher.
  2403. .IP 60
  2404. Peer certificate cannot be authenticated with known CA certificates.
  2405. .IP 61
  2406. Unrecognized transfer encoding.
  2407. .IP 62
  2408. Invalid LDAP URL.
  2409. .IP 63
  2410. Maximum file size exceeded.
  2411. .IP 64
  2412. Requested FTP SSL level failed.
  2413. .IP 65
  2414. Sending the data requires a rewind that failed.
  2415. .IP 66
  2416. Failed to initialise SSL Engine.
  2417. .IP 67
  2418. The user name, password, or similar was not accepted and curl failed to log in.
  2419. .IP 68
  2420. File not found on TFTP server.
  2421. .IP 69
  2422. Permission problem on TFTP server.
  2423. .IP 70
  2424. Out of disk space on TFTP server.
  2425. .IP 71
  2426. Illegal TFTP operation.
  2427. .IP 72
  2428. Unknown TFTP transfer ID.
  2429. .IP 73
  2430. File already exists (TFTP).
  2431. .IP 74
  2432. No such user (TFTP).
  2433. .IP 75
  2434. Character conversion failed.
  2435. .IP 76
  2436. Character conversion functions required.
  2437. .IP 77
  2438. Problem with reading the SSL CA cert (path? access rights?).
  2439. .IP 78
  2440. The resource referenced in the URL does not exist.
  2441. .IP 79
  2442. An unspecified error occurred during the SSH session.
  2443. .IP 80
  2444. Failed to shut down the SSL connection.
  2445. .IP 82
  2446. Could not load CRL file, missing or wrong format (added in 7.19.0).
  2447. .IP 83
  2448. Issuer check failed (added in 7.19.0).
  2449. .IP 84
  2450. The FTP PRET command failed
  2451. .IP 85
  2452. RTSP: mismatch of CSeq numbers
  2453. .IP 86
  2454. RTSP: mismatch of Session Identifiers
  2455. .IP 87
  2456. unable to parse FTP file list
  2457. .IP 88
  2458. FTP chunk callback reported error
  2459. .IP 89
  2460. No connection available, the session will be queued
  2461. .IP 90
  2462. SSL public key does not matched pinned public key
  2463. .IP 91
  2464. Invalid SSL certificate status.
  2465. .IP 92
  2466. Stream error in HTTP/2 framing layer.
  2467. .IP XX
  2468. More error codes will appear here in future releases. The existing ones
  2469. are meant to never change.
  2470. .SH AUTHORS / CONTRIBUTORS
  2471. Daniel Stenberg is the main author, but the whole list of contributors is
  2472. found in the separate THANKS file.
  2473. .SH WWW
  2474. https://curl.haxx.se
  2475. .SH "SEE ALSO"
  2476. .BR ftp (1),
  2477. .BR wget (1)