]> git.sven.stormbind.net Git - sven/tclcurl.git/blob - doc/tclcurl.html
Imported Upstream version 7.22.0+hg20151017
[sven/tclcurl.git] / doc / tclcurl.html
1 <HTML><HEAD><TITLE>Manpage of TclCurl</TITLE>
2 </HEAD><BODY>
3 <H1>TclCurl</H1>
4 Section: Easy inteface (3)<BR>Updated: 03 October 2011<BR>
5 <A NAME="lbAB">&nbsp;</A>
6 <hr>
7 <H2>NAME</H2>
8
9 TclCurl: - get  a  URL with FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE, LDAP,
10 LDAPS, IMAP, IMAPS, POP, POP3, SMTP, SMTPS and gopher syntax.
11 <A NAME="lbAC">&nbsp;</A>
12 <H2>SYNOPSIS</H2>
13
14 <B>curl::init</B>
15
16 <P>
17 <I>curlHandle</I><B> configure </B><I>?options?</I>
18
19 <P>
20 <I>curlHandle</I><B> perform</B>
21
22 <P>
23 <I>curlHandle</I><B> getinfo </B><I>curlinfo_option</I>
24
25 <P>
26 <I>curlhandle</I><B> cleanup</B>
27
28 <P>
29 <I>curlhandle</I><B> reset</B>
30
31 <P>
32 <I>curlHandle</I><B> duhandle</B>
33
34 <P>
35 <I>curlHandle</I><B> pause</B>
36
37 <P>
38 <I>curlHandle</I><B> resume</B>
39
40 <P>
41 <B>curl::transfer</B><I> ?options?</I>
42
43 <P>
44 <B>curl::version</B>
45
46 <P>
47 <B>curl::escape </B><I>url</I>
48
49 <P>
50 <B>curl::unescape </B><I>url</I>
51
52 <P>
53 <B>curl::curlConfig </B><I>option</I>
54
55 <P>
56 <B>curl::versioninfo </B><I>option</I>
57
58 <P>
59 <B>curl::easystrerror </B><I>errorCode</I>
60
61 <P>
62 <A NAME="lbAD">&nbsp;</A>
63 <H2>DESCRIPTION</H2>
64
65 The TclCurl extension gives Tcl programmers access to the <a href="http://curl.haxx.se/libcurl/">libcurl</a>
66 library written by <a href="http://daniel.haxx.se/">Daniel Stenberg</a>, with it you can download urls,
67 upload them and many other neat tricks.
68
69 <A NAME="lbAE">&nbsp;</A>
70 <H2>curl::init</H2>
71
72 This procedure must be the first one to call, it returns a
73 <I>curlHandle</I>
74
75 that you need to use to invoke TclCurl procedures. The init calls intializes
76 curl and this call MUST have a corresponding call to
77 <I>cleanup</I>
78
79 when the operation is completed.
80 You should perform all your sequential file transfers using the same
81 curlHandle. This enables TclCurl to use persistant connections when
82 possible.
83 <P>
84 <B>RETURN VALUE</B>
85
86 <P>
87 <I>curlHandle</I>
88
89 to use.
90 <A NAME="lbAF">&nbsp;</A>
91 <H2>curlHandle configure ?options?</H2>
92
93 <P>
94 <B>configure</B>
95
96 is called to set the options for the transfer. Most operations in TclCurl
97 have default actions, and by using the appropriate options you can
98 make them behave differently (as documented). All options are set with
99 the <I>option</I> followed by a parameter.
100 <P>
101 <B>Notes:</B>
102
103 the options set with this procedure are valid for the
104 forthcoming data transfers that are performed when you invoke
105 <I>perform</I>
106
107 <P>
108 The options are not reset between transfers (except where noted), so if
109 you want subsequent transfers with different options, you must change them
110 between the transfers. You can optionally reset all options back to the internal
111 default with <B>curlHandle reset</B>.
112 <P>
113 <I>curlHandle</I>
114
115 is the return code from the
116 <I>curl::init</I>
117
118 call.
119 <P>
120 <P>
121 <B>OPTIONS</B>
122
123 <P>
124 <A NAME="lbAG">&nbsp;</A>
125 <H2>Behaviour options</H2>
126
127 <P>
128 <DL COMPACT>
129 <DT><B>-verbose</B>
130
131 <DD>
132 Set the parameter to 1 to get the library to display a lot of verbose
133 information about its operations. Very useful for libcurl and/or protocol
134 debugging and understanding.
135 <P>
136 You hardly ever want this set in production use, you will almost always want
137 this when you debug/report problems. Another neat option for debugging is
138 <B>-debugproc</B>
139
140 <P>
141 <DT><B>-header</B>
142
143 <DD>
144 A 1 tells the extension to include the headers in the body output. This is
145 only relevant for protocols that actually have headers preceding the data (like HTTP).
146 <P>
147 <DT><B>-noprogress</B>
148
149 <DD>
150 A 1 tells the extension to turn on the progress meter
151 completely. It will also prevent the <I>progessproc</I> from getting called.
152 <P>
153 <DT><B>-nosignal</B>
154
155 <DD>
156 A 1 tells TclCurl not use any functions that install signal
157 handlers or any functions that cause signals to be sent to the process. This
158 option is mainly here to allow multi-threaded unix applications to still
159 set/use all timeout options etc, without risking getting signals.
160 <P>
161 If this option is set and libcurl has been built with the standard name resolver,
162 timeouts will not occur while the name resolve takes place. Consider building
163 libcurl with c-ares support to enable asynchronous DNS lookups, which enables
164 nice timeouts for name resolves without signals. 
165 <P>
166 Setting <I>nosignal</I> to 1 makes libcurl NOT ask the system to ignore
167 SIGPIPE signals, which otherwise are sent by the system when trying to send
168 data to a socket which is closed in the other end. libcurl makes an effort to
169 never cause such SIGPIPEs to trigger, but some operating systems have no way
170 to avoid them and even on those that have there are some corner cases when
171 they may still happen, contrary to our desire. In addition, using
172 <I>ntlm_Wb</I> authentication could cause a SIGCHLD signal to be raised.
173 <P>
174 <DT><B>-wildcard</B>
175
176 <DD>
177 Set this option to 1 if you want to transfer multiple files according to a
178 file name pattern. The pattern can be specified as part of the
179 <B>-url</B> option, using an fnmatch-like pattern (Shell Pattern
180 Matching) in the last part of URL (file name).
181 <P>
182 By default, TClCurl uses its internal wildcard matching implementation. You
183 can provide your own matching function by the <B>-fnmatchproc</B> option.
184 <P>
185 This feature is only supported by the FTP download for now.
186 <P>
187 A brief introduction of its syntax follows:
188 <DL COMPACT><DT><DD>
189 <DL COMPACT>
190 <DT>* - ASTERISK<DD>
191 ftp://example.com/some/path/*.txt (for all txt's from the root directory)
192 </DL>
193 </DL>
194
195 <DL COMPACT><DT><DD>
196 <DL COMPACT>
197 <DT>? - QUESTION MARK<DD>
198 Question mark matches any (exactly one) character.
199 <P>
200 ftp://example.com/some/path/photo?.jpeg
201 </DL>
202 </DL>
203
204 <DL COMPACT><DT><DD>
205 <DL COMPACT>
206 <DT>[ - BRACKET EXPRESSION<DD>
207 The left bracket opens a bracket expression. The question mark and asterisk have
208 no special meaning in a bracket expression. Each bracket expression ends by the
209 right bracket and matches exactly one character. Some examples follow:
210 <P>
211 <B>[a-zA-Z0-9]</B> or <B>[f-gF-G]</B> - character interval
212 <P>
213 <B>[abc]</B> - character enumeration
214 <P>
215 <B>[^abc]</B> or <B>[!abc]</B> - negation
216 <P>
217 <B>[[:</B><I>name</I><B>:]]</B> class expression. Supported classes are
218 <B>alnum</B>,<B>lower</B>, <B>space</B>, <B>alpha</B>, <B>digit</B>, <B>print</B>,
219 <B>upper</B>, <B>blank</B>, <B>graph</B>, <B>xdigit</B>.
220 <P>
221 <B>[][-!^]</B> - special case - matches only '-', ']', '[', '!' or '^'. These
222 characters have no special purpose.
223 <P>
224 <B>[\[\]\\]</B> - escape syntax. Matches '[', ']' or '\'.
225 <P>
226 Using the rules above, a file name pattern can be constructed:
227 <P>
228 ftp://example.com/some/path/[a-z[:upper:]\\].jpeg
229 </DL>
230 </DL>
231
232 </DL>
233 <P>
234
235 <P>
236 <A NAME="lbAH">&nbsp;</A>
237 <H2>Callback options</H2>
238
239 <P>
240 <DL COMPACT>
241 <DT><B>-writeproc</B>
242
243 <DD>
244 Use it to set a Tcl procedure that will be invoked by TclCurl as soon as
245 there is received data that needs to be saved. The procedure will receive
246 a single parameter with the data to be saved.
247 <P>
248 NOTE: you will be passed as much data as possible in all invokes, but you
249 cannot possibly make any assumptions. It may be nothing if the file is
250 empty or it may be thousands of bytes.
251 <P>
252 <DT><B>-file</B>
253
254 <DD>
255 File in which the transfered data will be saved.
256 <P>
257 <DT><B>-readproc</B>
258
259 <DD>
260 Sets a Tcl procedure to be called by TclCurl as soon as it needs to read
261 data in order to send it to the peer. The procedure has to take one
262 parameter, which will contain the maximun numbers of bytes to read. It
263 should return the actual number of bytes read, or '0' if you want to
264 stop the transfer.
265 <P>
266 If you stop the current transfer by returning 0 &quot;pre-maturely&quot; (i.e before
267 the server expected it, like when you've said you will upload N bytes and
268 you upload less than N bytes), you may experience that the server &quot;hangs&quot;
269 waiting for the rest of the data that won't come. 
270 <P>
271 Bugs: when doing TFTP uploads, you must return the exact amount of data
272 that the callback wants, or it will be considered the final packet by the
273 server end and the transfer will end there. 
274 <P>
275 <DT><B>-infile</B>
276
277 <DD>
278 File from which the data will be transfered.
279 <P>
280 <DT><B>-progressproc</B>
281
282 <DD>
283 Name of the Tcl procedure that will invoked by TclCurl  with a frequent
284 interval during operation (roughly once per second or sooner), no matter if data
285 is being transfered or not.  Unknown/unused
286 argument values passed to the callback will be set to zero (like if you
287 only download data, the upload size will remain 0), the prototype of the
288 procedure must be:
289 <P>
290 <B>proc ProgressCallback {dltotal dlnow ultotal ulnow}</B>
291
292 <P>
293 In order to this option to work you have to set the <B>noprogress</B>
294 option to '0'. Setting this option to the empty string will restore the
295 original progress function.
296 <P>
297 If you transfer data with the multi interface, this procedure will not be
298 called during periods of idleness unless you call the appropriate procedure
299 that performs transfers.
300 <P>
301 You can pause and resume a transfer from within this procedure using the
302 <B>pause</B> and <B>resume</B> commands.
303 <P>
304 <DT><B>-writeheader</B>
305
306 <DD>
307 Pass a the file name to be used to write the header part of the received data to.
308 The headers are guaranteed to be written one-by-one to this file and
309 only complete lines are written. Parsing headers should be easy enough using
310 this.
311 <P>
312 See also the headervar option to get the headers into an array.
313 <P>
314 <DT><B>-debugproc</B>
315
316 <DD>
317 Name of the procedure that will receive the debug data produced by the
318 <B>-verbose</B>
319
320 option, it should match the following prototype:
321 <P>
322 <B>debugProc {infoType data}</B>
323
324 <P>
325 where <B>infoType</B> specifies what kind of information it is (0 text,
326 1 incoming header, 2 outgoing header, 3 incoming data, 4 outgoing data,
327 5 incoming SSL data, 6 outgoing SSL data).
328 <P>
329 <DT><B>-chunkbgnproc</B>
330
331 <DD>
332 Name of the procedure that will be called before a file will be transfered by
333 ftp, it should match the following prototype:
334 <P>
335 <B>ChunkBgnProc {remains}</B>
336
337 <P>
338 <P>
339 Where remains is the number of files left to be transfered (or skipped)
340 <P>
341 This callback makes sense only when using the <B>-wildcard</B> option.
342 <P>
343 <DT><B>-chunkbgnvar</B>
344
345 <DD>
346 Name of the variable in the global scope that will contain the data of the file about
347 to be transfered. If you don't use this option '::fileData' will be used.
348 <P>
349 The available data is: filename, filetype (file, directory, symlink, device block, device char,
350 named pipe, socket, door or error if it couldn't be identified), time, perm, uid, gid, 
351 size, hardlinks and flags.
352 <P>
353 <DT><B>-chunkendproc</B>
354
355 <DD>
356 Name of the procedure that will be called after a file is transfered (or skipped) 
357 by ftp, it should match the following prototype:
358 <P>
359 <B>ChunkEndProc {}</B>
360
361 <P>
362 It should return '0' if everyhting is fine and '1' if some error occurred.
363 <P>
364 <DT><B>-fnmatchProc</B>
365
366 <DD>
367 Name of the procedure that will be called instead of the internal wildcard
368 matching function, it should match the following prototype:
369 <P>
370 <B>FnMatchProc {pattern string}</B>
371
372 <P>
373 Returns '0' if it matches, '1' if it doesn't.
374 <P>
375 </DL>
376 <A NAME="lbAI">&nbsp;</A>
377 <H2>Error Options</H2>
378
379 <P>
380 <DL COMPACT>
381 <DT><B>-errorbuffer</B>
382
383 <DD>
384 Pass a variable name where TclCurl may store human readable error
385 messages in. This may be more helpful than just the return code from the
386 command.
387 <P>
388 <DT><B>-stderr</B>
389
390 <DD>
391 Pass a file name as parameter. This is the stream to use internally instead
392 of stderr when reporting errors.
393 <DT><B>-failonerror</B>
394
395 <DD>
396 A 1 parameter tells the extension to fail silently if the HTTP code
397 returned is equal or larger than 400. The default action would be to return
398 the page normally, ignoring that code.
399 <P>
400 This method is not fail-safe and there are occasions where non-successful response
401 codes will slip through, especially when authentication is involved
402 (response codes 401 and 407). 
403 <P>
404 You might get some amounts of headers transferred before this situation is detected,
405 like for when a &quot;100-continue&quot; is received as a response to a POST/PUT and a 401
406 or 407 is received immediately afterwards.
407 <P>
408 </DL>
409 <A NAME="lbAJ">&nbsp;</A>
410 <H2>Network options</H2>
411
412 <P>
413 <DL COMPACT>
414 <DT><B>-url</B>
415
416 <DD>
417 The actual URL to deal with.
418 <P>
419 If the given URL lacks the protocol part (&quot;http://&quot; or &quot;ftp://&quot; etc), it will
420 attempt to guess which protocol to use based on the given host name. If the
421 given protocol of the set URL is not supported, TclCurl will return the
422 <B>unsupported protocol</B> error when you call <B>perform</B>. Use
423 <B>curl::versioninfo</B> for detailed info on which protocols are supported.
424 <P>
425 Starting with version 7.22.0, the fragment part of the URI will not be send as
426 part of the path, which was the case previously.
427 <P>
428 <B>NOTE</B>: this is the one option required to be set before <B>perform</B> is called.
429 <P>
430 <DT><B>-protocols</B>
431
432 <DD>
433 Pass a list in lowecase of protocols to limit what protocols TclCurl may use in the transfer. This
434 allows you to have a TclCurl built to support a wide range of protocols but still limit
435 specific transfers to only be allowed to use a subset of them. 
436 <P>
437 Accepted protocols are 'http', 'https', 'ftp', 'ftps', 'scp', 'sftp', 'telnet', 'ldap',
438
439 and 'all'.
440 <P>
441 <DT><B>-redirprotocols</B>
442
443 <DD>
444 Pass a list in lowercase of accepted protocols to limit what protocols TclCurl may use in a transfer
445 that it follows to in a redirect when <B>-followlocation</B> is enabled. This allows you
446 to limit specific transfers to only be allowed to use a subset of protocols in redirections.
447 <P>
448 By default TclCurl will allow all protocols except for FILE and SCP. This is a difference
449 compared to pre-7.19.4 versions which unconditionally would follow to all protocols supported.
450 <P>
451 <DT><B>-proxy</B>
452
453 <DD>
454 If you need to use a http proxy to access the outside world, set the
455 proxy string with this option. To specify port number in this string,
456 append :[port] to the end of the host name. The proxy string may be
457 prefixed with [protocol]:// since any such prefix will be ignored.
458 <P>
459 When you tell the extension to use a HTTP proxy, TclCurl will
460 transparently convert operations to HTTP even if you specify a FTP
461 URL etc. This may have an impact on what other features of the library
462 you can use, such as
463 <B>quote</B>
464
465 and similar FTP specifics that will not work unless you tunnel through
466 the HTTP proxy. Such tunneling  is activated with
467 <B>proxytunnel</B>
468
469 <P>
470 TclCurl respects the environment variables http_proxy, ftp_proxy,
471 all_proxy etc, if any of those are set. The use of this option does
472 however override any possibly set environment variables.
473 <P>
474 Setting the proxy string to &quot;&quot; (an empty string) will explicitly disable
475 the use of a proxy, even if there is an environment variable set for it.
476 <P>
477 The proxy host string can be specified the exact same way as the proxy
478 environment variables, include protocol prefix (<A HREF="http://)">http://)</A> and embedded
479 user + password.
480 <P>
481 Since 7.22.0, the proxy string may be specified with a protocol:// prefix to
482 specify alternative proxy protocols. Use socks4://, socks4a://, socks5:// or
483 socks5h:// (the last one to enable socks5 and asking the proxy to do the resolving)
484 to request the specific SOCKS version
485 to be used. No protocol specified, http:// and all others will be treated as
486 HTTP proxies.
487 <P>
488 <DT><B>-proxyport</B>
489
490 <DD>
491 Use this option to set the proxy port to use unless it is specified in
492 the proxy string by <B>-proxy</B>. If not specified, TclCurl will default
493 -to using port 1080 for proxies.
494 <P>
495 <DT><B>-proxytype</B>
496
497 <DD>
498 Pass the type of  the  proxy. Available options are 'http', 'http1.0', 'socks4', 'socks4a',
499 <BLOCKQUOTE>man2html: unable to open or read file
500
501 </BLOCKQUOTE>
502
503 <P>
504 If you set it to <I>http1.0</I>, it will only affect how libcurl speaks to a proxy
505 when CONNECT is used. The HTTP version used for &quot;regular&quot; HTTP requests is instead
506 controled with <I>httpversion</I>.
507 <P>
508 <DT><B>-noproxy</B>
509
510 <DD>
511 Pass a string, a comma-separated list of hosts which do not use a proxy, if one
512 is specified. The only wildcard is a single * character, which matches all hosts,
513 and effectively disables the proxy. Each name in this list is matched as either
514 a domain which contains the hostname, or the hostname itself. For example, local.com
515 would match local.com, local.com:80, and www.local.com, but not http://www.notlocal.com.
516 <P>
517 <DT><B>-httpproxytunnel</B>
518
519 <DD>
520 Set the parameter to 1 to get the extension to tunnel all non-HTTP
521 operations through the given HTTP proxy. Do note that there is a big
522 difference between using a proxy and tunneling through it. If you don't know what
523 this means, you probably don't want this tunnel option.
524 <P>
525 <DT><B>-socks5gssapiservice</B>
526
527 <DD>
528 Pass thee name of the service. The default service name for a SOCKS5 server is
529 rcmd/server-fqdn. This option allows you to change it.
530 <P>
531 <DT><B>-socks5gssapinec</B>
532
533 <DD>
534 Pass a 1 to enable or 0 to disable. As part of the gssapi negotiation a protection
535 mode is negotiated. The rfc1961 says in section 4.3/4.4 it should be protected, but
536 the NEC reference implementation does not. If enabled, this option allows the
537 unprotected exchange of the protection mode negotiation.
538 <P>
539 <DT><B>-interface</B>
540
541 <DD>
542 Pass the interface name to use as outgoing
543 network interface. The name can be an interface name, an IP address or a host
544 name.
545 <P>
546 <DT><B>-localport</B>
547
548 <DD>
549 This sets the local port number of the socket used for connection. This can
550 be used in combination with <B>-interface</B> and you are recommended to use
551 <B>localportrange</B> as well when this is set. Valid port numbers
552 are 1 - 65535.
553 <P>
554 <DT><B>-localportrange</B>
555
556 <DD>
557 This is the number of attempts TclCurl should do to find a working local port
558 number. It starts with the given <B>-localport</B> and adds
559 one to the number for each retry. Setting this value to 1 or below will make
560 TclCurl do only one try for each port number. Port numbers by nature
561 are a scarce resource that will be busy at times so setting this value to something
562 too low might cause unnecessary connection setup failures.
563 <P>
564 <DT><B>-dnscachetimeout</B>
565
566 <DD>
567 Pass the timeout in seconds. Name resolves will be kept in memory for this number
568 of seconds. Set to '0' to completely disable caching, or '-1' to make the
569 cached entries remain forever. By default, TclCurl caches this info for 60 seconds.
570 <P>
571 The name resolve functions of various libc implementations don't re-read name
572 server information unless explicitly told so (for example, by calling
573 <BR>&nbsp;<I>res_init(3)</I>).&nbsp;This&nbsp;may&nbsp;cause&nbsp;TclCurl&nbsp;to&nbsp;keep&nbsp;using&nbsp;the&nbsp;older&nbsp;server&nbsp;even
574 if DHCP has updated the server info, and this may look like a DNS cache issue.
575 <P>
576 <DT><B>-dnsuseglobalcache</B>
577
578 <DD>
579 If the value passed is 1, it tells TclCurl to use a global DNS cache that
580 will survive between curl handles creations and deletions. This is not thread-safe
581 as it uses a global varible.
582 <P>
583 <B>WARNING:</B> this option is considered obsolete. Stop using it. Switch over
584 to using the share interface instead! See <I>tclcurl_share</I>.
585 <P>
586 <DT><B>-buffersize</B>
587
588 <DD>
589 Pass your prefered size for the receive buffer in TclCurl. The main point of this
590 would be that the write callback gets called more often and with smaller chunks.
591 This is just treated as a request, not an order. You cannot be guaranteed to
592 actually get the given size.
593 <P>
594 <DT><B>-port</B>
595
596 <DD>
597 <P>
598 Pass the number specifying what remote port to connect to, instead of the one specified
599 in the URL or the default port for the used protocol.
600 <P>
601 <DT><B>-tcpnodelay</B>
602
603 <DD>
604 <P>
605 Pass a number to specify whether the TCP_NODELAY option should be set or cleared (1 = set, 0 = clear).
606 The option is cleared by default. This will have no effect after the connection has been established.
607 <P>
608 Setting this option will disable TCP's Nagle algorithm. The purpose of this algorithm is to try to
609 minimize the number of small packets on the network (where &quot;small packets&quot; means TCP segments less
610 than the Maximum Segment Size (MSS) for the network).
611 <P>
612 Maximizing the amount of data sent per TCP segment is good because it amortizes the overhead of the
613 send. However, in some cases (most notably telnet or rlogin) small segments may need to be sent without
614 delay. This is less efficient than sending larger amounts of data at a time, and can contribute to
615 congestion on the network if overdone.
616 <P>
617 <DT><B>-addressscope</B>
618
619 <DD>
620 Pass a number specifying the scope_id value to use when connecting to IPv6 link-local or site-local
621 addresses.
622 <P>
623 </DL>
624 <A NAME="lbAK">&nbsp;</A>
625 <H2>Names and Passwords options</H2>
626
627 <P>
628 <DL COMPACT>
629 <DT><B>-netrc</B>
630
631 <DD>
632 A 1 parameter tells the extension to scan your
633 <B>~/.netrc</B>
634
635 file to find user name and password for the remote site you are about to
636 access. Do note that TclCurl does not verify that the file has the correct
637 properties set (as the standard unix ftp client does), and that only machine
638 name, user name and password is taken into account (init macros and similar
639 things are not supported).
640 <P>
641 You can set it to the following values:
642 <DL COMPACT><DT><DD>
643 <DL COMPACT>
644 <DT><B>optional</B>
645
646 <DD>
647 The use of your ~/.netrc file is optional, and information in the URL is to
648 be preferred. The file will be scanned with the host and user name (to find
649 the password only) or with the host only, to find the first user name and
650 password after that machine, which ever information is not specified in
651 the URL.
652 <P>
653 Undefined  values  of  the  option  will  have this effect.
654 <DT><B>ignored</B>
655
656 <DD>
657 The extension will ignore the file and use only the information in the URL.
658 This is the default.
659 <DT><B>required</B>
660
661 <DD>
662 This value tells the library that use of the file is required, to ignore
663 the information in the URL, and to search the file with the host only.
664 </DL>
665 </DL>
666
667 <P>
668 <DT><B>-netrcfile</B>
669
670 <DD>
671 Pass a string containing the full path name to the file you want to use as .netrc
672 file. For the option to work, you have to set the <B>netrc</B> option to
673 <B>required</B>. If this option is omitted, and <B>netrc</B> is set, TclCurl
674 will attempt to find the a .netrc file in the current user's home directory.
675 <P>
676 <DT><B>-userpwd</B>
677
678 <DD>
679 Pass a string as parameter, which should be [username]:[password] to use for
680 the connection. Use <B>-httpauth</B> to decide authentication method.
681 <P>
682 When using NTLM, you can set domain by prepending it to the user name and
683 separating the domain and name with a forward (/) or backward slash (\). Like
684 this: &quot;domain/user:password&quot; or &quot;domain\user:password&quot;. Some HTTP servers (on
685 Windows) support this style even for Basic authentication.
686 <P>
687 When using HTTP and <B>-followlocation</B>, TclCurl might perform several
688 requests to possibly different hosts. TclCurl will only send this user and
689 password information to hosts using the initial host name (unless
690 <B>-unrestrictedauth</B> is set), so if TclCurl follows locations to other
691 hosts it will not send the user and password to those. This is enforced to
692 prevent accidental information leakage.
693 <P>
694 <DT><B>-proxyuserpwd</B>
695
696 <DD>
697 Pass a string as parameter, which should be [username]:[password] to use for
698 the connection to the HTTP proxy.
699 <P>
700 <DT><B>-username</B>
701
702 <DD>
703 Pass a string with the user name to use for the transfer. It sets the user name
704 to be used in protocol authentication. You should not use this option together
705 with the (older) <B>-userpwd</B> option.
706 <P>
707 In order to specify the password to be used in conjunction with the user name
708 use the <B>-password</B> option.
709 <P>
710 <DT><B>-password</B>
711
712 <DD>
713 Pass a string with the password to use for the transfer.
714 <P>
715 It should be used in conjunction with the <B>-username</B> option.
716 <P>
717 <DT><B>-proxyusername</B>
718
719 <DD>
720 Pass a string with the user name to use for the transfer while connecting to Proxy. 
721 <P>
722 It should be used in same way as the <B>-proxyuserpwd</B> is used, except that it
723 allows the username to contain a colon, like in the following example: 
724 &quot;sip:user@example.com&quot;. 
725 <P>
726 Note the <B>-proxyusername</B> option is an alternative way to set the user name
727 while connecting to Proxy. It doesn't make sense to use them together.
728 <P>
729 <DT><B>-proxypassword</B>
730
731 <DD>
732 Pass a string with the password to use for the transfer while connecting to Proxy. It
733 is meant to use together with <B>-proxyusername</B>.
734 <P>
735 <DT><B>-httpauth</B>
736
737 <DD>
738 Set to the authentication method you want, the available ones are:
739 <DL COMPACT><DT><DD>
740 <DL COMPACT>
741 <DT><B>basic</B>
742
743 <DD>
744 HTTP Basic authentication. This is the default choice, and the only
745 method that is in widespread use and supported virtually everywhere.
746 It sends the user name and password over the network in plain text,
747 easily captured by others.
748 <P>
749 <DT><B>digest</B>
750
751 <DD>
752 HTTP Digest authentication. Digest authentication is a more secure
753 way to do authentication over public networks than the regular
754 old-fashioned Basic method.
755 <P>
756 <DT><B>digestie</B>
757
758 <DD>
759 HTTP Digest authentication with an IE flavor. TclCurl will use a special
760 &quot;quirk&quot; that IE is known to have used before version 7 and that some
761 servers require the client to use.
762 <P>
763 <DT><B>gssnegotiate</B>
764
765 <DD>
766 HTTP GSS-Negotiate authentication. The GSS-Negotiate method, also known as
767 plain &quot;Negotiate&quot;,was designed by Microsoft and is used in their web
768 applications. It is primarily meant as a support for Kerberos5 authentication
769 but may be also used along with another authentication methods.
770 <P>
771 <DT><B>ntlm</B>
772
773 <DD>
774 HTTP NTLM authentication. A proprietary protocol invented and used by Microsoft.
775 It uses a challenge-response and hash concept similar to Digest, to prevent the
776 password from being eavesdropped.
777 <P>
778 <DT><B>ntlmwb</B>
779
780 <DD>
781 NTLM delegating to winbind helper. Authentication is performed by a separate
782 binary application that is executed when needed. The name of the application is
783 specified at libcurl's compile time but is typically /usr/bin/ntlm_auth.
784 <P>
785 Note that libcurl will fork when necessary to run the winbind application and kill
786 it when complete, calling waitpid() to await its exit when done. On POSIX operating
787 systems, killing the process will cause a SIGCHLD signal to be raised
788 (regardless of whether <B>-nosignal</B> is set). This behavior is subject to change
789 in future versions of libcurl. 
790 <P>
791 <DT><B>any</B>
792
793 <DD>
794 TclCurl will automatically select the one it finds most secure.
795 <P>
796 <DT><B>anysafe</B>
797
798 <DD>
799 It may use anything but basic, TclCurl will automaticly select the
800 one it finds most secure.
801 </DL>
802 </DL>
803
804 <P>
805 <DT>Use it to tell TclCurl which authentication method(s) you want it to use for TLS authentication.<DD>
806 <DL COMPACT><DT><DD>
807 <DL COMPACT>
808 <DT><DT><B>tlsauthsrp</B>
809
810 <DD>
811 <DD>
812 TLS-SRP authentication. Secure Remote Password authentication for TLS is
813 defined in RFC 5054 and provides mutual authentication if both sides have a
814 shared secret. To use TLS-SRP, you must also set the
815 <B>-tlsauthusername</B> and <B>-tlsauthpassword</B> options.
816 <P>
817 You need to build libcurl with GnuTLS or OpenSSL with TLS-SRP support for this
818 to work.
819 </DL>
820 </DL>
821
822 <P>
823 <DT><B>-tlsauthusername</B>
824
825 <DD>
826 Pass a string with the username to use for the TLS authentication method specified
827 with the <B>-tlsauthtype</B> option. Requires that the <B>-tlsauthpassword</B> option
828 also be set. 
829 <P>
830 <DT><B>-tlsauthpassword</B>
831
832 <DD>
833 Pass a string with the password to use for the TLS authentication method specified
834 with the <B>-tlsauthtype</B> option. Requires that the <B>-tlsauthusername</B> option
835 also be set. 
836 <P>
837 <DT><B>-proxyauth</B>
838
839 <DD>
840 Use it to tell TclCurl which authentication method(s) you want it to use for
841 your proxy authentication. Note that for some methods, this will induce an
842 extra network round-trip. Set the actual name and password with the 
843 <B>proxyuserpwd</B> option.
844 <P>
845 The methods are those listed above for the <B>httpauth</B> option. As of this
846 writing, only Basic and NTLM work.
847 <P>
848 </DL>
849 <A NAME="lbAL">&nbsp;</A>
850 <H2>HTTP options</H2>
851
852 <P>
853 <DL COMPACT>
854 <DT><B>-autoreferer</B>
855
856 <DD>
857 Pass an 1 parameter to enable this. When enabled, TclCurl will
858 automatically set the Referer: field in requests where it follows a Location:
859 redirect.
860 <P>
861 <DT><B>-encoding</B>
862
863 <DD>
864 Sets the contents of the Accept-Encoding: header sent in an HTTP
865 request, and enables decoding of a response when a Content-Encoding:
866 header is received.  Three encodings are supported: <I>identity</I>,
867 which does nothing, <I>deflate</I> which requests the server to
868 compress its response using the zlib algorithm, and <I>gzip</I> which
869 requests the gzip algorithm.  Use <I>all</I> to send an
870 Accept-Encoding: header containing all supported encodings.
871 <P>
872 This is a request, not an order; the server may or may not do it.  This
873 option must be set or else any unsolicited
874 encoding done by the server is ignored. See the special file
875 lib/README.encoding in libcurl docs for details.
876 <P>
877 <DT><B>-transferencoding</B>
878
879 <DD>
880 Adds a request for compressed Transfer Encoding in the outgoing HTTP
881 request. If the server supports this and so desires, it can respond with the
882 HTTP resonse sent using a compressed Transfer-Encoding that will be
883 automatically uncompressed by TclCurl on receival.
884 <P>
885 Transfer-Encoding differs slightly from the Content-Encoding you ask for with
886 <B>-encoding</B> in that a Transfer-Encoding is strictly meant to
887 be for the transfer and thus MUST be decoded before the data arrives in the
888 client. Traditionally, Transfer-Encoding has been much less used and supported
889 by both HTTP clients and HTTP servers.
890 <P>
891 <DT><B>-followlocation</B>
892
893 <DD>
894 An 1 tells the library to follow any
895 <B>Location: header</B>
896
897 that the server sends as part of a HTTP header.
898 <P>
899 This means that the extension will re-send the  same request on the new location
900 and follow new <B>Location: headers</B> all the way until no more such headers are
901 returned. <B>-maxredirs</B> can be used to limit the number of redirects
902 TclCurl will follow.
903 <P>
904 Since 7.19.4, TclCurl can limit what protocols it will automatically follow.
905 The accepted protocols are set with <B>-redirprotocols</B> and it excludes the FILE
906 protocol by default.
907 <P>
908 <DT><B>-unrestrictedauth</B>
909
910 <DD>
911 An 1 parameter tells the extension it can continue
912 to  send authentication (user+password) when following
913 locations, even when hostname changed. Note that  this
914 is  meaningful  only  when setting <B>-followlocation</B>.
915 <P>
916 <DT><B>-maxredirs</B>
917
918 <DD>
919 Sets the redirection limit. If that many redirections have been followed,
920 the next redirect will cause an error. This option only makes sense if the
921 <B>-followlocation</B> option is used at the same time. Setting the limit
922 to 0 will make libcurl refuse any redirect. Set it to -1 for an infinite
923 number of redirects (which is the default)
924 <P>
925 <DT><B>-post301</B>
926
927 <DD>
928 Controls how TclCurl acts on redirects after POSTs that get a 301 or 302 response back.
929 A &quot;301&quot; as parameter tells the TclCurl to respect RFC 2616/10.3.2 and not convert POST
930 requests into GET requests when following a 301 redirection. Passing a &quot;302&quot; makes
931 TclCurl maintain the request method after a 302 redirect. &quot;all&quot; is a convenience string
932 that activates both behaviours.
933 <P>
934 The non-RFC behaviour is ubiquitous in web browsers, so the extension does the conversion
935 by default to maintain consistency. However, a server may require a POST to remain a POST
936 after such a redirection.
937 <P>
938 This option is meaningful only when setting <B>-followlocation</B>
939 <P>
940 The option used to be known as <B>-post301</B>, which should still work but is know
941 deprecated.
942 <P>
943 <DT><B>-put</B>
944
945 <DD>
946 An 1 parameter tells the extension to use HTTP PUT a file. The file to put
947 must be set with <B>-infile</B> and <B>-infilesize</B>.
948 <P>
949 This option is deprecated starting with version 0.12.1, you should use <B>-upload</B>.
950 <P>
951 This option does not limit how much data TclCurl will actually send, as that is
952 controlled entirely by what the read callback returns. 
953 <P>
954 <DT><B>-post</B>
955
956 <DD>
957 An 1 parameter tells the library to do a regular HTTP post. This is a
958 normal application/x-www-form-urlencoded kind, which is the most commonly used
959 one by HTML forms. See the <B>-postfields</B> option for how to specify the
960 data to post and <B>-postfieldsize</B> about how to set the data size.
961 <P>
962 Use the <B>-postfields</B> option to specify what data to post and <B>-postfieldsize</B>
963 to set the data size. Optionally, you can provide data to POST using the <B>-readproc</B>
964 options.
965 <P>
966 You can override the default POST Content-Type: header by setting your own with
967 <B>-httpheader</B>.
968 <P>
969 Using POST with HTTP 1.1 implies the use of a &quot;Expect: 100-continue&quot; header.
970 You can disable this header with <B>-httpheader</B> as usual.
971 <P>
972 If you use POST to a HTTP 1.1 server, you can send data without knowing the
973 size before starting the POST if you use chunked encoding. You enable this
974 by adding a header like &quot;Transfer-Encoding: chunked&quot; with <B>-httpheader</B>.
975 With HTTP 1.0 or without chunked transfer, you must specify the size in the
976 request.
977 <P>
978 When setting <B>post</B> to an 1 value, it will automatically set
979 <B>nobody</B> to 0.
980 <P>
981 NOTE: if you have issued a POST request and want to make a HEAD or GET instead, you must
982 explicitly pick the new request type using <B>-nobody</B> or <B>-httpget</B> or similar.
983 <P>
984 <DT><B>-postfields</B>
985
986 <DD>
987 Pass a string as parameter, which should be the full data to post in a HTTP
988 POST operation. You must make sure that the data is formatted the way you
989 want the server to receive it. TclCurl will not convert or encode it for you.
990 Most web servers will assume this data to be url-encoded.
991 <P>
992 This is a normal application/x-www-form-urlencoded  kind,
993 which is the most commonly used one by HTML forms.
994 <P>
995 If you want to do a zero-byte POST, you need to set
996 <B>-postfieldsize</B> explicitly to zero, as simply setting
997 <B>-postfields</B> to NULL or &quot;&quot; just effectively disables the sending
998 of the specified string. TclCurl will instead assume that the POST
999 data will be send using the read callback!
1000 <P>
1001 Using POST with HTTP 1.1 implies the use of a &quot;Expect: 100-continue&quot; header.
1002 You can disable this header with <B>-httpheader</B> as usual.
1003 <P>
1004 <B>Note</B>: to make multipart/formdata posts (aka rfc1867-posts), check out
1005 <B>-httppost</B> option.
1006 <P>
1007 <DT><B>-postfieldsize</B>
1008
1009 <DD>
1010 If you want to post data to the server without letting TclCurl do a strlen()
1011 to measure the data size, this option must be used. Also, when this option is
1012 used, you can post fully binary data which otherwise is likely to fail. If
1013 this size is set to zero, the library will use strlen() to get the data
1014 size.
1015 <P>
1016 <DT><B>-httppost</B>
1017
1018 <DD>
1019 Tells TclCurl you want a multipart/formdata HTTP POST to be made and you
1020 instruct what data to pass on to the server through a
1021 <B>Tcl list.</B>
1022
1023 <P>
1024 <B>This is the only case where the data is reset after a transfer.</B>
1025 <P>
1026 First, there are some basics you need to understand about multipart/formdata
1027 posts. Each part consists of at least a <B>NAME</B> and a <B>CONTENTS</B> part. If the part
1028 is made for file upload, there are also a stored <B>CONTENT-TYPE</B> and a
1029 <B>FILENAME</B>. Below, we'll discuss on what options you use to set these
1030 properties in the parts you want to add to your post.
1031 <P>
1032 The list must contain a <B>'name'</B> tag with the name of the section followed
1033 by a string with the name, there are three tags to indicate the value of
1034 the section: <B>'value'</B> followed by a string with the data to post, <B>'file'</B>
1035 followed by the name of the file to post and <B>'contenttype'</B> with the
1036 type of the data (text/plain, image/jpg, ...), you can also indicate a <I>false</I>
1037 file name with <B>'filename'</B>, this is useful in case the server checks if the given
1038 file name is valid, for example, by testing if it starts with 'c:\' as any real file
1039 name does or if you want to include the full path of the file to post. You can also post
1040 the content of a variable as if it were a file with the options <B>'bufferName'</B> and
1041 <B>'buffer'</B> or use <B>'filecontent'</B> followed by a file name to read that file and
1042 use the contents as data.
1043 <P>
1044 Should you need to specify extra headers for the form POST section, use
1045 <B>'contentheader</B>' followed by a list with the headers to post.
1046 <P>
1047 Please see 'httpPost.tcl' and 'httpBufferPost.tcl' for examples.
1048 <P>
1049 If TclCurl can't set the data to post an error will be returned:
1050 <DL COMPACT><DT><DD>
1051 <DL COMPACT>
1052 <DT><B>1</B>
1053
1054 <DD>
1055 If the memory allocation fails.
1056 <DT><B>2</B>
1057
1058 <DD>
1059 If one option is given twice for one form.
1060 <DT><B>3</B>
1061
1062 <DD>
1063 If an empty string was given.
1064 <DT><B>4</B>
1065
1066 <DD>
1067 If an unknown option was used.
1068 <DT><B>5</B>
1069
1070 <DD>
1071 If the some form info is not complete (or error)
1072 <DT><B>6</B>
1073
1074 <DD>
1075 If an illegal option is used in an array.
1076 <DT><B>7</B>
1077
1078 <DD>
1079 TclCurl has no http support.
1080 </DL>
1081 </DL>
1082
1083 <P>
1084 <DT><B>-referer</B>
1085
1086 <DD>
1087 Pass a string as parameter. It will be used to set the
1088 <B>referer</B>
1089
1090 header in the http request sent to the remote server. This can be used to
1091 fool servers or scripts. You can also set any custom header with
1092 <B>-httpheader.</B>
1093
1094 <P>
1095 <DT><B>-useragent</B>
1096
1097 <DD>
1098 Pass a string as parameter. It will be used to set the
1099 <B>user-agent:</B>
1100
1101 header in the http request sent to the remote server. This can be used to fool
1102 servers or scripts. You can also set any custom header with
1103 <B>-httpheader.</B>
1104
1105 <P>
1106 <DT><B>-httpheader</B>
1107
1108 <DD>
1109 Pass a
1110 <B>list</B>
1111
1112 with the HTTP headers to pass to the server in your request.
1113 If you add a header that is otherwise generated
1114 and used by TclCurl internally, your added one will be used instead. If you
1115 add a header with no contents as in 'Accept:', the internally used header will
1116 just get disabled. Thus, using this option you can add new headers, replace
1117 and remove internal headers.
1118 <P>
1119 The headers included in the linked list must not be CRLF-terminated, because
1120 TclCurl adds CRLF after each header item. Failure to comply with this will
1121 result in strange bugs because the server will most likely ignore part of the
1122 headers you specified.
1123 <P>
1124 The first line in a request (containing the method, usually a GET or POST) is
1125 not a header and cannot be replaced using this option. Only the lines
1126 following the request-line are headers. Adding this method line in this list
1127 of headers will only cause your request to send an invalid header.
1128 <P>
1129 <B>NOTE</B>:The most commonly replaced headers have &quot;shortcuts&quot; in the  options:
1130 <B>cookie, useragent,</B>
1131
1132 and
1133 <B>referer.</B>
1134
1135 <P>
1136 <DT><B>-http200aliases</B>
1137
1138 <DD>
1139 Pass a list of aliases to be treated as valid HTTP 200 responses. Some servers
1140 respond with a custom header response line. For example, IceCast servers respond
1141 with &quot;ICY 200 OK&quot;. By including this string in your list of aliases, the
1142 response will be treated as a valid HTTP header line such as &quot;HTTP/1.0 200 OK&quot;.
1143 <P>
1144 <B>NOTE</B>:The alias itself is not parsed for any version strings. Before version
1145 7.16.3, TclCurl used the value set by option <B>httpversion</B>, but starting with
1146 7.16.3 the protocol is assumed to match HTTP 1.0 when an alias matched.
1147 <P>
1148 <DT><B>-cookie</B>
1149
1150 <DD>
1151 Pass a string as parameter. It will be used to
1152 set a cookie in the http request. The format of the string should be
1153
1154 what the cookie should contain.
1155 <P>
1156 If  you  need  to  set mulitple cookies, you need to set them all using
1157 a single option and thus you need to concatenate them all in one single string.
1158 Set multiple cookies in one string like this: &quot;name1=content1; name2=content2;&quot;
1159 etc.
1160 <P>
1161 This option sets the cookie header explictly in the outgoing request(s).
1162 If multiple requests are done due to authentication, followed redirections or similar,
1163 they will all get this cookie passed on.
1164 <P>
1165 Using this option multiple times will only make the latest string override
1166 the previous ones.
1167 <P>
1168 <DT><B>-cookiefile</B>
1169
1170 <DD>
1171 Pass a string as parameter. It should contain the name of your file holding
1172 cookie data. The cookie data may be in netscape cookie data format or just
1173 regular HTTP-style headers dumped to a file.
1174 <P>
1175 Given an empty or non-existing file, this option will enable cookies for this
1176 curl handle, making it understand and parse received cookies and then use
1177 matching cookies in future requests.
1178 <P>
1179 If you use this option multiple times, you add more files to read.
1180 <P>
1181 <DT><B>-cookiejar</B>
1182
1183 <DD>
1184 Pass a file name in which TclCurl will dump all internally known cookies
1185 when
1186 <B>curlHandle cleanup</B>
1187
1188 is called. If no cookies are known, no file will be created.
1189 Specify &quot;-&quot; to have the cookies written to stdout.
1190 <P>
1191 Using this option also enables cookies for this session, so if you, for
1192 example, follow a location it will make matching cookies get sent accordingly.
1193 <P>
1194 TclCurl will not and cannot report an error for  this. Using  '<B>verbose</B>'
1195 will get a warning to display, but that is the only visible feedback you get
1196 about this possibly lethal situation.
1197 <P>
1198 <DT><B>-cookiesession</B>
1199
1200 <DD>
1201 Pass an 1 to mark this as a new cookie &quot;session&quot;. It will
1202 force TclCurl to ignore all cookies it is about to load that are &quot;session
1203 cookies&quot; from the previous session. By default, TclCurl always stores and
1204 loads all cookies, independent of whether they are session cookies are not.
1205 Session cookies are cookies without expiry date and they are meant to be
1206 alive and existing for this &quot;session&quot; only.
1207 <P>
1208 <DT><B>-cookielist</B>
1209
1210 <DD>
1211 Pass a string with a cookie. The cookie can be either in Netscape / Mozilla
1212 format or just regular HTTP-style header (Set-Cookie: ...) format. If the
1213 cookie engine was not enabled it will be enabled.  Passing a
1214 magic string &quot;ALL&quot; will erase all known cookies while &quot;FLUSH&quot; will write
1215 all cookies known by TclCurl to the file specified by <B>-cookiejar</B>.
1216 <P>
1217 <DT><B>-httpget</B>
1218
1219 <DD>
1220 If set to 1 forces the HTTP request to get back to GET, usable if
1221 POST, PUT or a custom request have been used previously with the
1222 same handle.
1223 <P>
1224 When setting <B>httpget</B> to 1, <B>nobody</B> will automatically be set to 0.
1225 <P>
1226 <DT><B>-httpversion</B>
1227
1228 <DD>
1229 Set to one of the values decribed below, they force TclCurl to use the
1230 specific http versions. It should only be used if you really MUST do
1231 that because of a silly remote server.
1232 <DL COMPACT><DT><DD>
1233 <DL COMPACT>
1234 <DT><B>none</B>
1235
1236 <DD>
1237 We do not care about what version the library uses. TclCurl will use whatever
1238 it thinks fit.
1239 <DT><B>1.0</B>
1240
1241 <DD>
1242 Enforce HTTP 1.0 requests.
1243 <DT><B>1.1</B>
1244
1245 <DD>
1246 Enforce HTTP 1.1 requests.
1247 </DL>
1248 </DL>
1249
1250 <P>
1251 <DT><B>-ignorecontentlength</B>
1252
1253 <DD>
1254 Ignore the Content-Length header. This is useful for Apache 1.x (and similar
1255 servers) which will report incorrect content length for files over 2
1256 gigabytes. If this option is used, TclCurl will not be able to accurately
1257 report progress, and will simply stop the download when the server ends the
1258 connection.
1259 <P>
1260 <DT><B>-httpcontentdecoding</B>
1261
1262 <DD>
1263 Set to zero to disable content decoding. If set to 1 it is enabled. Note however
1264 that TclCurl has no default content decoding but requires you to use <B>encoding</B> for that.
1265 <P>
1266 <DT><B>-httptransferencoding</B>
1267
1268 <DD>
1269 Set to zero to disable transfer decoding, if set to 1 it is enabled (default). TclCurl does
1270 chunked transfer decoding by default unless this option is set to zero.
1271 <P>
1272 </DL>
1273 <A NAME="lbAM">&nbsp;</A>
1274 <H2>SMTP options</H2>
1275
1276 <P>
1277 <DL COMPACT>
1278 <DT><B>-mailfrom</B>
1279
1280 <DD>
1281 Pass a string to specify the sender address in a mail when sending an SMTP mail with TclCurl.
1282 <P>
1283 <DT><B>-mailrcpt</B>
1284
1285 <DD>
1286 Pass a list of recipients to pass to the server in your SMTP mail request.
1287 <P>
1288 Each recipient in SMTP lingo is specified with angle brackets (&lt;&gt;), but should you not use an
1289 angle bracket as first letter, TclCurl will assume you provide a single email address only and
1290 enclose that with angle brackets for you.
1291 <P>
1292 </DL>
1293 <A NAME="lbAN">&nbsp;</A>
1294 <H2>TFTP option</H2>
1295
1296 <P>
1297 <DL COMPACT>
1298 <DT><B>tftpblksize</B>
1299
1300 <DD>
1301 <P>
1302 Specify the block size to use for TFTP data transmission. Valid range as per RFC 2348 is 8-65464 bytes.
1303 The default of 512 bytes will be used if this option is not specified. The specified block size will
1304 only be used pending support by the remote server. If the server does not return an option acknowledgement
1305 or returns an option acknowledgement with no blksize, the default of 512 bytes will be used.
1306 <P>
1307 </DL>
1308 <A NAME="lbAO">&nbsp;</A>
1309 <H2>FTP options</H2>
1310
1311 <P>
1312 <DL COMPACT>
1313 <DT><B>-ftpport</B>
1314
1315 <DD>
1316 Pass a string as parameter. It will be used to
1317 get the IP address to use for the ftp PORT instruction. The PORT instruction
1318 tells the remote server to connect to our specified IP address. The string may
1319 be a plain IP address, a host name, a network interface name (under unix) or
1320 just a '-' to let the library use your systems default IP address. Default FTP
1321 operations are passive, and thus will not use PORT.
1322 <P>
1323 The address can be followed by a ':' to specify a port, optionally followed by a '-'
1324 o specify a port range. If the port specified is 0, the operating system will pick
1325 a free port. If a range is provided and all ports in the range are not available,
1326 libcurl will report CURLE_FTP_PORT_FAILED for the handle. Invalid port/range settings
1327 are ignored. IPv6 addresses followed by a port or portrange have to be in brackets.
1328 IPv6 addresses without port/range specifier can be in brackets.
1329 <P>
1330 Examples with specified ports:
1331 <P>
1332 <BR>&nbsp;&nbsp;eth0:0&nbsp;&nbsp;&nbsp;192.168.1.2:32000-33000&nbsp;&nbsp;&nbsp;curl.se:32123&nbsp;&nbsp;&nbsp;[::1]:1234-4567
1333 <P>
1334 You disable PORT again and go back to using the passive version by setting this option to
1335 an empty string.
1336 <P>
1337 <DT><B>-quote</B>
1338
1339 <DD>
1340 Pass a <B>list</B> list with the FTP or SFTP commands to pass to the server prior to your
1341 ftp request. This will be done before any other FTP commands are issued (even
1342 before the CWD command).If you do not want to transfer any files, set
1343 <B>nobody</B> to '1' and <B>header</B> to '0'.
1344 <P>
1345 Prefix the command with an asterisk (*) to make TclCurl continue even if the command
1346 fails as by default TclCurl will stop.
1347 <P>
1348 Disable this operation again by setting an empty string to this option.
1349 <P>
1350 Keep in mind the commands to send must be 'raw' ftp commands, for example, to
1351 create a directory you need to send <B>mkd Test</B>, not <B>mkdir Test</B>.
1352 <P>
1353 Valid SFTP commands are: chgrp, chmod, chown, ln, mkdir, pwd, rename, rm,
1354 rmdir and symlink. 
1355 <P>
1356 <DT><B>-postquote</B>
1357
1358 <DD>
1359 Pass a <B>list</B> with the FTP commands to pass to the server after your
1360 ftp transfer request. If you do not want to transfer any files, set
1361 <B>nobody</B> to '1' and <B>header</B> to '0'.
1362 <P>
1363 <DT><B>-prequote</B>
1364
1365 <DD>
1366 Pass a <B>list</B> of FTP or SFTP commands to pass to the server after the
1367 transfer type is set.
1368 <P>
1369 <DT><B>-dirlistonly</B>
1370
1371 <DD>
1372 A 1 tells the library to just list the names of files in a
1373 directory, instead of doing a full directory listing that would include file
1374 sizes, dates etc. It works with both FTP and SFTP urls.
1375 <P>
1376 This causes an FTP NLST command to be sent. Beware that some FTP servers list
1377 only files in their response to NLST, they might not include subdirectories
1378 and symbolic links.
1379 <P>
1380 Setting this option to 1 also implies a directory listing even if the URL
1381 doesn't end with a slash, which otherwise is necessary.
1382 <P>
1383 Do NOT use this option if you also use <B>-wildcardmatch</B> as it will
1384 effectively break that feature.
1385 <P>
1386 <DT><B>-append</B>
1387
1388 <DD>
1389 A 1 parameter tells the extension to append to the remote file instead of
1390 overwriting it. This is only useful when uploading to a ftp site.
1391 <P>
1392 <DT><B>-ftpusepret</B>
1393
1394 <DD>
1395 Set to 1 to tell TclCurl to use the EPRT (and LPRT) command when doing
1396 active FTP downloads (which is enabled by '<B>ftpport</B>'). Using EPRT means
1397 that it will first attempt to use EPRT and then LPRT before using PORT, if
1398 you pass zero to this option, it will not try using EPRT or LPRT, only plain PORT.
1399 <P>
1400 <DT><B>-ftpuseepvs</B>
1401
1402 <DD>
1403 Set to one to tell TclCurl to use the EPSV command when doing passive FTP
1404 downloads (which it always does by default). Using EPSV means that it will
1405 first attempt to use EPSV before using PASV, but if you pass a zero to this
1406 option, it will not try using EPSV, only plain PASV.
1407 <P>
1408 <DT><B>-ftpusepret</B>
1409
1410 <DD>
1411 <P>
1412 Set to one to tell TclCurl to send a PRET command before PASV (and EPSV). Certain
1413 FTP servers, mainly drftpd, require this non-standard command for directory listings
1414 as well as up and downloads in PASV mode. Has no effect when using the active FTP
1415 transfers mode.
1416 <P>
1417 <DT><B>-ftpcreatemissingdirs</B>
1418
1419 <DD>
1420 If set to 1, TclCurl will attempt to create any remote directory that it
1421 fails to CWD into. CWD is the command that changes working directory.
1422 <P>
1423 This setting also applies to SFTP-connections. TclCurl will attempt to create
1424 the remote directory if it can't obtain a handle to the target-location. The
1425 creation will fail if a file of the same name as the directory to create
1426 already exists or lack of permissions prevents creation.
1427 <P>
1428 If set to 2, TclCurl will retry the CWD command again if the subsequent MKD
1429 command fails. This is especially useful if you're doing many simultanoeus
1430 connections against the same server and they all have this option enabled,
1431 as then CWD may first fail but then another connection does MKD before this
1432 connection and thus MKD fails but trying CWD works
1433 <P>
1434 <DT><B>-ftpresponsetimeout</B>
1435
1436 <DD>
1437 Causes TclCurl to set a timeout period (in seconds) on the amount of time that
1438 the server is allowed to take in order to generate a response message for a
1439 command before the session is considered hung. Note that while TclCurl is waiting
1440 for a response, this value overrides <B>timeout</B>. It is recommended that if used
1441 in conjunction with <B>timeout</B>, you set it to a value smaller than <B>timeout</B>.
1442 <P>
1443 <DT><B>-ftpalternativetouser </B>
1444
1445 <DD>
1446 Pass a string which will be used to authenticate if the usual FTP &quot;USER user&quot; and
1447 &quot;PASS password&quot; negotiation fails. This is currently only known to be required when
1448 connecting to Tumbleweed's Secure Transport FTPS server using client certificates for
1449 authentication.
1450 <P>
1451 <DT><B>-ftpskippasvip</B>
1452
1453 <DD>
1454 If set to 1, it instructs TclCurl not to use the IP address the
1455 server suggests in its 227-response to TclCurl's PASV command when TclCurl
1456 connects the data connection. Instead TclCurl will re-use the same IP address
1457 it already uses for the control connection. But it will use the port number
1458 from the 227-response.
1459 <P>
1460 This option has no effect if PORT, EPRT or EPSV is used instead of PASV.
1461 <P>
1462 <DT><B>-ftpsslauth</B>
1463
1464 <DD>
1465 <P>
1466 Pass TclCurl one of the values from below, to alter how TclCurl issues
1467 &quot;AUTH TLS&quot; or &quot;AUTH SSL&quot; when FTP over SSL is activated (see <B>-ftpssl</B>).
1468 <P>
1469 You may need this option because of servers like <a href="http://bsdftpd-ssl.sc.ru/">BSDFTPD-SSL</A>
1470 which won't work properly  when &quot;AUTH SSL&quot; is issued
1471 (although the server responds fine and everything) but requires &quot;AUTH TLS&quot;
1472 instead.
1473 <P>
1474 <DL COMPACT><DT><DD>
1475 <DL COMPACT>
1476 <DT><B>default</B>
1477
1478 <DD>
1479 Allows TclCurl to decide.
1480 <DT><B>ssl</B>
1481
1482 <DD>
1483 Try &quot;AUTH SSL&quot; first, and only if that fails try &quot;AUTH TLS&quot;.
1484 <DT><B>tls</B>
1485
1486 <DD>
1487 Try &quot;AUTH TLS&quot; first, and only if that fails try &quot;AUTH SSL&quot;.
1488 </DL>
1489 </DL>
1490
1491 <P>
1492 <DT><B>-ftpsslccc </B>
1493
1494 <DD>
1495 Set it to make TclCurl use CCC (Clear Command Channel). It shuts down the
1496 SSL/TLS layer after authenticating. The rest of the control channel
1497 communication will be unencrypted. This allows NAT routers to follow the
1498 FTP transaction. Possible values are:
1499 <P>
1500 <DL COMPACT><DT><DD>
1501 <DL COMPACT>
1502 <DT><B>none</B>
1503
1504 <DD>
1505 Do not attempt to use CCC.
1506 <DT><B>passive</B>
1507
1508 <DD>
1509 Do not initiate the shutdown, wait for the server to do it. Do not send a reply. 
1510 <DT><B>active</B>
1511
1512 <DD>
1513 Initiate the shutdown and wait for a reply. 
1514 </DL>
1515 </DL>
1516
1517 <P>
1518 <DT><B>-ftpaccount</B>
1519
1520 <DD>
1521 Pass string (or &quot;&quot; to disable). When an FTP server asks for &quot;account data&quot; after
1522 user name and password has been provided, this data is sent off using the ACCT
1523 command.
1524 <P>
1525 <DT><B>-ftpfilemethod</B>
1526
1527 <DD>
1528 It allows three values:
1529 <DL COMPACT><DT><DD>
1530 <DL COMPACT>
1531 <DT><B>multicwd</B>
1532
1533 <DD>
1534 The default, TclCurl will do a single CWD operation for each path part in the given
1535 URL. For deep hierarchies this means very many commands. This is how RFC1738 says it
1536 should be done.
1537 <DT><B>nocwd</B>
1538
1539 <DD>
1540 No CWD at all is done, TclCurl will do SIZE, RETR, STOR, etc and give a full path to
1541 the server.
1542 <DT><B>singlecwd</B>
1543
1544 <DD>
1545 Make one CWD with the full target directory and then operate on the file &quot;normally&quot;.
1546 This is somewhat more standards compliant than 'nocwd' but without the full penalty of 'multicwd'.
1547 </DL>
1548 </DL>
1549
1550 <P>
1551 </DL>
1552 <A NAME="lbAP">&nbsp;</A>
1553 <H2>Protocol options</H2>
1554
1555 <P>
1556 <DL COMPACT>
1557 <DT><B>-transfertext</B>
1558
1559 <DD>
1560 A 1 tells the extension to use ASCII mode for ftp transfers,
1561 instead of the default binary transfer. For win32 systems it does not set the
1562 stdout to binary mode. This option can be usable when transferring text data
1563 between systems with different views on certain characters, such as newlines
1564 or similar.
1565 <P>
1566 <B>NOTE:</B> TclCurl does not do a complete ASCII conversion when doing ASCII
1567 transfers over FTP. This is a known limitation/flaw that nobody has
1568 rectified. TclCurl simply sets the mode to ascii and performs a standard
1569 transfer.
1570 <P>
1571 <DT><B>-proxytransfermode</B>
1572
1573 <DD>
1574 If set to 1, TclCurl sets the transfer mode (binary or ASCII) for FTP transfers
1575 done via an HTTP proxy, by appending ;type=a or ;type=i to the URL.
1576 Without this setting, or it being set to 0, the default, <B>-transfertext</B> has
1577 no effect when doing FTP via a proxy. Beware that not all proxies support this feature.
1578 <P>
1579 <DT><B>-crlf</B>
1580
1581 <DD>
1582 If set to '1', TclCurl converts Unix newlines to CRLF newlines on transfers. Disable
1583 this option again by setting the value to '0'.
1584 <P>
1585 <DT><B>-range</B>
1586
1587 <DD>
1588 Pass a string as parameter, which should contain the specified range you
1589 want. It should be in the format
1590 <I>X-Y</I>
1591
1592 , where X or Y may be left out. HTTP
1593 transfers also support several intervals, separated with commas as in
1594 <I>X-Y,N-M</I>
1595
1596 Using this kind of multiple intervals will cause the HTTP server to send the
1597 response document in pieces (using standard MIME separation techniques).
1598 <P>
1599 Ranges only work on HTTP, FTP and FILE transfers.
1600 <P>
1601 <DT><B>-resumefrom</B>
1602
1603 <DD>
1604 Pass the offset in number of bytes that you want the transfer to start from.
1605 Set this option to 0 to make the transfer start from the beginning
1606 (effectively disabling resume).
1607 <P>
1608 For FTP, set this option to -1 to make the transfer start from the end of the
1609 target file (useful to continue an interrupted upload). 
1610 <P>
1611 When doing uploads with FTP, the resume position is where in the local/source
1612 file TclCurl should try to resume the upload from and it will then append the
1613 source file to the remote target file.
1614 <P>
1615 <DT><B>-customrequest</B>
1616
1617 <DD>
1618 Pass a string as parameter. It will be used instead of GET or HEAD when doing
1619 the HTTP request. This is useful for doing DELETE or other more obscure HTTP
1620 requests. Do not do this at will, make sure your server supports the command first.
1621 <P>
1622 Note that TclCurl will still act and assume the keyword it would use if you
1623 do not set your custom and it will act according to that. Thus, changing this
1624 to a HEAD when TclCurl otherwise would do a GET might cause TclCurl to act funny,
1625 and similar. To switch to a proper HEAD, use <B>-nobody</B>, to switch to a proper
1626 POST, use <B>-post</B> or <B>-postfields</B> and so on.
1627 <P>
1628 <DT><B>-filetime</B>
1629
1630 <DD>
1631 If you pass a 1, TclCurl will attempt to get the
1632 modification date of the remote document in this operation. This requires that
1633 the remote server sends the time or replies to a time querying command. The
1634 getinfo procedure with the
1635 <I>filetime</I>
1636
1637 argument can be used after a transfer to extract the received time (if any).
1638 <P>
1639 <DT><B>-nobody</B>
1640
1641 <DD>
1642 A 1 tells the library not to include the body-part in the
1643 output. This is only relevant for protocols that have a separate header and
1644 body part. On HTTP(S) servers, this will make TclCurl do a HEAD request.
1645 <P>
1646 To change request to GET, you should use <B>httpget</B>. Change request
1647 to POST with <B>post</B> etc.
1648 <P>
1649 <DT><B>-infilesize</B>
1650
1651 <DD>
1652 When uploading a file to a remote site, this option should be used to tell
1653 TclCurl what the expected size of the infile is.
1654 <P>
1655 This option is mandatory for uploading using SCP.
1656 <P>
1657 <DT><B>-upload</B>
1658
1659 <DD>
1660 A 1 tells the library to prepare for an upload. The
1661 <B>-infile</B> and <B>-infilesize</B> options are also interesting for uploads.
1662 If the protocol is HTTP, uploading means using the PUT request unless you tell
1663 TclCurl otherwise.
1664 <P>
1665 Using PUT with HTTP 1.1 implies the use of a &quot;Expect: 100-continue&quot; header.
1666 You can disable this header with <B>-httpheader</B> as usual.
1667 <P>
1668 If you use PUT to a HTTP 1.1 server, you can upload data without knowing the
1669 size before starting the transfer if you use chunked encoding. You enable this
1670 by adding a header like &quot;Transfer-Encoding: chunked&quot; with <B>-httpheader</B>.
1671 With HTTP 1.0 or without chunked transfer, you must specify the size.
1672 <P>
1673 <DT><B>-maxfilesize</B>
1674
1675 <DD>
1676 This allows you to specify the maximum size (in bytes) of a file to download.
1677 If the file requested is larger than this value, the transfer will not start
1678 and error 'filesize exceeded' (63) will be returned.
1679 <P>
1680 NOTE: The file size is not always known prior to download, and for such files
1681 this option has no effect even if the file transfer ends up being larger than
1682 this given limit. This concerns both FTP and HTTP transfers.
1683 <P>
1684 <DT><B>-timecondition</B>
1685
1686 <DD>
1687 This defines how the <B>timevalue</B> value is treated. You can set this
1688 parameter to <B>ifmodsince</B> or <B>ifunmodsince</B>.  This feature applies to
1689 HTTP, FTP and FILE.
1690 <P>
1691 <DT><B>-timevalue</B>
1692
1693 <DD>
1694 This should be the time in seconds since 1 jan 1970, and the time will be
1695 used in a condition as specified with <B>timecondition</B>.
1696 <P>
1697 <P>
1698 </DL>
1699 <A NAME="lbAQ">&nbsp;</A>
1700 <H2>Connection options</H2>
1701
1702 <P>
1703 <DL COMPACT>
1704 <DT><B>-timeout</B>
1705
1706 <DD>
1707 Pass the maximum time in seconds that you allow
1708 the TclCurl transfer operation to take. Do note that normally, name lookups
1709 may take a considerable time and that limiting the operation to less than a
1710 few minutes risks aborting perfectly normal operations. This option will
1711 cause libcurl to use the SIGALRM to enable time-outing system calls.
1712 <P>
1713 In unix-like systems, this might cause signals to be used unless
1714 <B>-nosignal</B> is used.
1715 <P>
1716 <DT><B>-timeoutms</B>
1717
1718 <DD>
1719 Like <B>timeout</B> but takes a number of milliseconds instead. If libcurl is
1720 built to use the standard system name resolver, that part will still use
1721 full-second resolution for timeouts.
1722 <P>
1723 <DT><B>-lowspeedlimit</B>
1724
1725 <DD>
1726 Pass the speed in bytes per second that the transfer should be below during
1727 <B>lowspeedtime</B>
1728
1729 seconds for the extension to consider it too slow and abort.
1730 <P>
1731 <DT><B>-lowspeedtime</B>
1732
1733 <DD>
1734 Pass the time in seconds that the transfer should be below the
1735 <B>lowspeedlimit</B>
1736
1737 for the extension to consider it too slow and abort.
1738 <P>
1739 <DT><B>-maxsendspeed</B>
1740
1741 <DD>
1742 Pass a speed in bytes per seconds. If an upload exceeds this speed on cumulative
1743 average during the transfer, the transfer will pause to keep the average rate less
1744 than or equal to the parameter value.  Defaults to unlimited speed.
1745 <P>
1746 <DT><B>-maxrecvspeed</B>
1747
1748 <DD>
1749 Pass a speed in bytes per second. If a download exceeds this speed on cumulative
1750 average during the transfer, the transfer will pause to keep the average rate less
1751 than or equal to the parameter value. Defaults to unlimited speed.
1752 <P>
1753 <DT><B>-maxconnects</B>
1754
1755 <DD>
1756 Sets the persistant connection cache size in all the protocols that support 
1757 persistent conecctions. The set amount will be the maximum amount of simultaneous
1758 connections that TclCurl may cache in this easy handle. Default is 5, and there
1759 isn't much point in changing this value unless you are perfectly aware of how this
1760 work and changes TclCurl's behaviour.
1761 <P>
1762 When reaching the maximum limit, TclCurl closes the oldest connection in the cache
1763 to prevent the number of open connections to increase. 
1764 <P>
1765 <B>Note</B>: if you have already performed transfers with this curl handle,
1766 setting a smaller
1767 <B>maxconnects</B>
1768
1769 than before may cause open connections to unnecessarily get closed.
1770 <P>
1771 If you add this easy handle to a multi handle, this setting is not
1772 being acknowledged, instead you must configure the multi handle its own
1773 <B>maxconnects</B> option.
1774 <P>
1775 <DT><B>-connecttimeout</B>
1776
1777 <DD>
1778 Maximum time in seconds that you allow the
1779 connection to the server to take.  This only limits the connection phase, once
1780 it has connected, this option is of no more use. Set to zero to disable
1781 connection timeout (it will then only timeout on the internal timeouts).
1782 <P>
1783 In unix-like systems, this might cause signals to be used unless
1784 <B>-nosignal</B> is set.
1785 <P>
1786 <DT><B>-connecttimeoutms</B>
1787
1788 <DD>
1789 Like <B>connecttimeout</B> but takes a number of milliseconds instead. If libcurl
1790 is built to use the standard system name resolver, that part will still use
1791 full-second resolution for timeouts.
1792 <P>
1793 <DT><B>-ipresolve</B>
1794
1795 <DD>
1796 Allows an application to select what kind of IP addresses to use when
1797 resolving host names. This is only interesting when using host names
1798 that resolve addresses using more than one version of IP. The allowed
1799 values are:
1800 <DL COMPACT><DT><DD>
1801 <DL COMPACT>
1802 <DT><B>whatever</B>
1803
1804 <DD>
1805 Default, resolves addresses to all IP versions that your system allows.
1806 <DT><B>v4</B>
1807
1808 <DD>
1809 Resolve to ipv4 addresses.
1810 <DT><B>v6</B>
1811
1812 <DD>
1813 Resolve to ipv6 addresses.
1814 </DL>
1815 </DL>
1816
1817 <P>
1818 <DT><B>-resolve</B>
1819
1820 <DD>
1821 Pass a list of strings with host name resolve information to use for requests with
1822 this handle.
1823 <P>
1824 Each single name resolve string should be written using the format
1825 HOST:PORT:ADDRESS where HOST is the name TclCurl will try to resolve, PORT is
1826 the port number of the service where TclCurl wants to connect to the HOST and
1827 ADDRESS is the numerical IP address. If libcurl is built to support IPv6,
1828 ADDRESS can be either IPv4 or IPv6 style addressing.
1829 <P>
1830 This option effectively pre-populates the DNS cache with entries for the
1831 host+port pair so redirects and everything that operations against the
1832 HOST+PORT will instead use your provided ADDRESS.
1833 <P>
1834 You can remove names from the DNS cache again, to stop providing these fake
1835 resolves, by including a string in the linked list that uses the format
1836 &quot;-HOST:PORT&quot;. The host name must be prefixed with a dash, and the host name
1837 and port number must exactly match what was already added previously.
1838 <P>
1839 <DT><B>-usessl</B>
1840
1841 <DD>
1842 Pass a one of the values from below to make TclCurl use your desired level of SSL for the transfer.
1843 This is for enabling SSL/TLS when you use FTP, SMTP, POP3, IMAP etc.
1844 <P>
1845 You can use ftps:// URLs to explicitly switch on SSL/TSL for the control
1846 connection and the data connection.
1847 <P>
1848 Alternatively you can set the option to one of these values:
1849 <P>
1850 <DL COMPACT><DT><DD>
1851 <DL COMPACT>
1852 <DT><B>nope</B>
1853
1854 <DD>
1855 Do not attempt to use SSL
1856 <DT><B>try</B>
1857
1858 <DD>
1859 Try using SSL, proceed anyway otherwise.
1860 <DT><B>control</B>
1861
1862 <DD>
1863 Use SSL for the control conecction or fail with &quot;use ssl failed&quot; (64).
1864 <DT><B>all</B>
1865
1866 <DD>
1867 Use SSL for all communication or fail with &quot;use ssl failed&quot; (64).
1868 </DL>
1869 </DL>
1870
1871 <P>
1872 </DL>
1873 <A NAME="lbAR">&nbsp;</A>
1874 <H2>SSL and security options</H2>
1875
1876 <P>
1877 <DL COMPACT>
1878 <DT><B>-sslcert</B>
1879
1880 <DD>
1881 Pass a string as parameter. The string should be the file name of your certificate.
1882 The default format is &quot;PEM&quot; and can be changed with <B>-sslcerttype</B>.
1883 <P>
1884 With NSS this is the nickname of the certificate you wish to authenticate with.
1885 If you want to use a file from the current directory, please precede it with the 
1886 &quot;./&quot; prefix, in order to avoid confusion with a nickname.
1887 <P>
1888 <DT><B>-sslcerttype</B>
1889
1890 <DD>
1891 Pass a string as parameter. The string should be the format of your certificate.
1892 Supported formats are &quot;PEM&quot; and &quot;DER&quot;.
1893 <P>
1894 <DT><B>-sslkey</B>
1895
1896 <DD>
1897 Pass a pointer to a zero terminated string as parameter. The string should be
1898 the file name of your private key. The default format is &quot;PEM&quot; and can be
1899 changed with <B>-sslkeytype</B>.
1900 <P>
1901 <DT><B>-sslkeytype</B>
1902
1903 <DD>
1904 Pass a pointer to a zero terminated string as parameter. The string should be
1905 the format of your private key. Supported formats are &quot;PEM&quot;, &quot;DER&quot; and &quot;ENG&quot;
1906 <P>
1907 <B>NOTE:</B>The format &quot;ENG&quot; enables you to load the private key from a crypto
1908 engine. in this case <B>-sslkey</B> is used as an identifier passed to
1909 the engine. You have to set the crypto engine with <B>-sslengine</B>. The &quot;DER&quot;
1910 format key file currently does not work because of a bug in OpenSSL.
1911 <P>
1912 <DT><B>-keypasswd</B>
1913
1914 <DD>
1915 Pass a string as parameter. It will be used as the password required to use the
1916 <B>-sslkey</B> or <B>-sshprivatekeyfile</B> private key.
1917 <P>
1918 You never need a pass phrase to load a certificate but you need one to load you
1919 private key. 
1920 <P>
1921 This option used to be known as <B>-sslkeypasswd</B> and <B>-sslcertpasswd</B>.
1922 <P>
1923 <DT><B>-sslengine</B>
1924
1925 <DD>
1926 Pass a string as parameter. It will be used as the identifier for the crypto
1927 engine you want to use for your private key.
1928 <P>
1929 <B>NOTE:</B>If the crypto device cannot be loaded, an error will be returned.
1930 <P>
1931 <DT><B>-sslenginedefault</B>
1932
1933 <DD>
1934 Pass a 1 to set the actual crypto engine as the default for (asymmetric) crypto operations.
1935 <P>
1936 <B>NOTE:</B>If the crypto device cannot be set, an error will be returned.
1937 <P>
1938 <DT><B>-sslversion</B>
1939
1940 <DD>
1941 Use it to set what version of SSL/TLS to use. The available options are: 
1942 <DL COMPACT><DT><DD>
1943 <DL COMPACT>
1944 <DT><B>default</B>
1945
1946 <DD>
1947 The default action. This will attempt to figure out the remote SSL protocol version,
1948 i.e. either SSLv3 or TLSv1 (but not SSLv2, which became disabled by default with 7.18.1). 
1949 <DT><B>tlsv1</B>
1950
1951 <DD>
1952 Force TLSv1
1953 <DT><B>sslv2</B>
1954
1955 <DD>
1956 Force SSLv2
1957 <DT><B>sslv3</B>
1958
1959 <DD>
1960 Force SSLv3
1961 </DL>
1962 </DL>
1963
1964 <P>
1965 <DT><B>-sslverifypeer</B>
1966
1967 <DD>
1968 This option determines whether TclCurl verifies the authenticity of the peer's certificate.
1969 A 1 means it verifies; zero means it doesn't. The default is 1. 
1970 <P>
1971 When negotiating an SSL connection, the server sends a certificate indicating its identity.
1972 TclCurl verifies whether the certificate is authentic, i.e. that you can trust that the
1973 server is who the certificate says it is. This trust is based on a chain of digital signatures,
1974 rooted in certification authority (CA) certificates you supply.
1975 <P>
1976 TclCurl uses a default bundle of CA certificates that comes with libcurl but you can specify
1977 alternate certificates with the <B>-cainfo</B> or the <B>-capath</B> options.
1978 <P>
1979 When <B>-sslverifypeer</B> is nonzero, and the verification fails to prove that the certificate
1980 is authentic, the connection fails. When the option is zero, the peer certificate verification
1981 succeeds regardless. 
1982 <P>
1983 Authenticating the certificate is not by itself very useful. You typically want to ensure
1984 that the server, as authentically identified by its certificate, is the server you mean to
1985 be talking to, use <B>-sslverifyhost</B> to control that. The check that the host name in
1986 the certificate is valid for the host name you're connecting to is done
1987 independently of this option.
1988 <P>
1989 <DT><B>-cainfo</B>
1990
1991 <DD>
1992 Pass a file naming holding the certificate to verify the peer with. This only
1993 makes sense when used in combination with the <B>-sslverifypeer</B> option, if
1994 it is set to zero <B>-cainfo</B> need not even indicate an accessible file.
1995 <P>
1996 This option is by default set to the system path where libcurl's cacert bundle
1997 is assumed to be stored, as established at build time.
1998 <P>
1999 When built against NSS this is the directory that the NSS certificate database
2000 resides in.
2001 <P>
2002 <DT><B>-issuercert</B>
2003
2004 <DD>
2005 Pass a string naming a file holding a CA certificate in PEM format. If the option
2006 is set, an additional check against the peer certificate is performed to verify
2007 the issuer is indeed the one associated with the certificate provided by the option.
2008 This additional check is useful in multi-level PKI where one need to enforce the peer
2009 certificate is from a specific branch of the tree.
2010 <BR>&nbsp;
2011 This option makes sense only when used in combination with the <B>-sslverifypeer</B>
2012 option. Otherwise, the result of the check is not considered as failure.
2013 <P>
2014 <DT><B>-capath</B>
2015
2016 <DD>
2017 Pass the directory holding multiple CA certificates to verify the peer with.
2018 If libcurl is built against OpenSSL, the certificate directory must be prepared
2019 using the openssl c_rehash utility.
2020 This only makes sense when used in combination with the  <B>-sslverifypeer</B>
2021 option, if it is set to zero, <B>-capath</B> need not even indicate an accessible
2022 path.
2023 <P>
2024 This option apparently does not work in Windows due to some limitation in openssl.
2025 <P>
2026 This option is OpenSSL-specific and does nothing if libcurl is built to use GnuTLS.
2027 NSS-powered libcurl provides the option only for backward compatibility.
2028 <P>
2029 <DT><B>-crlfile</B>
2030
2031 <DD>
2032 Pass a string naming a file with the concatenation of CRL (in PEM format) to use in
2033 the certificate validation that occurs during the SSL exchange.
2034 <BR>&nbsp;
2035 When libcurl is built to use NSS or GnuTLS, there is no way to influence the use of
2036 CRL passed to help in the verification process. When built with OpenSSL support,
2037 X509_V_FLAG_CRL_CHECK and X509_V_FLAG_CRL_CHECK_ALL are both set, requiring CRL
2038 check against all the elements of the certificate chain if a CRL file is passed.
2039 <BR>&nbsp;
2040 This option makes sense only when used in combination with the <B>-sslverifypeer</B>
2041 option. 
2042 <P>
2043 A specific error code (CURLE_SSL_CRL_BADFILE) is defined with the option. It is returned
2044 when the SSL exchange fails because the CRL file cannot be loaded. A failure in certificate
2045 verification due to a revocation information found in the CRL does not trigger this specific
2046 error.
2047 <P>
2048 <DT><B>-sslverifyhost</B>
2049
2050 <DD>
2051 This option determines whether TclCurl verifies that the server claims to be
2052 who you want it to be.
2053 <P>
2054 When negotiating an SSL connection, the server sends a certificate
2055 indicating its identity.
2056 <P>
2057 When <B>-sslverifyhost</B> is set to 2, that certificate must indicate
2058 that the server is the server to which you meant to connect, or the
2059 connection fails.
2060 <P>
2061 TclCurl considers the server the intended one when the Common Name field
2062 or a Subject Alternate Name field in the certificate matches the host
2063 name in the URL to which you told Curl to connect.
2064 <P>
2065 When set to 1, the certificate must contain a Common Name field,
2066 but it does not matter what name it says. (This is not ordinarily a
2067 useful setting).
2068 <P>
2069 When the value is 0, the connection succeeds regardless of the names in
2070 the certificate.
2071 <P>
2072 The default value for this option is 2.
2073 <P>
2074 This option controls the identity that the server <I>claims</I>. The server
2075 could be lying. To control lying, see <B>-sslverifypeer</B>. If libcurl is built
2076 against NSS and <B>-verifypeer</B> is zero, <B>-verifyhost</B> is ignored.
2077 <P>
2078 <DT><B>-certinfo</B>
2079
2080 <DD>
2081 Set to '1' to enable TclCurl's certificate chain info gatherer. With this enabled, TclCurl
2082 (if built with OpenSSL) will extract lots of information and data about the certificates
2083 in the certificate chain used in the SSL connection. This data can then be to extracted
2084 after a transfer using the <B>getinfo</B> command and its option <B>certinfo</B>.
2085 <P>
2086 <DT><B>-randomfile</B>
2087
2088 <DD>
2089 Pass a file name. The file will be used to read from to seed the random engine
2090 for SSL. The more random the specified file is, the more secure the SSL
2091 connection becomes.
2092 <P>
2093 <DT><B>-egdsocket</B>
2094
2095 <DD>
2096 Pass a path name to the Entropy Gathering Daemon socket. It will be used to seed
2097 the random engine for SSL.
2098 <P>
2099 <DT><B>-sslcypherlist</B>
2100
2101 <DD>
2102 Pass a string holding the ciphers to use for the SSL connection. The list must
2103 consists of one or more cipher strings separated by colons. Commas or spaces
2104 are also acceptable separators but colons are normally used, , - and + can be
2105 used as operators. 
2106 <P>
2107 For OpenSSL and GnuTLS valid examples of cipher lists include 'RC4-SHA', 'SHA1+DES',
2108
2109 <P>
2110 You will find more details about cipher lists on this URL:
2111 <BR>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://www.openssl.org/docs/apps/ciphers.html">http://www.openssl.org/docs/apps/ciphers.html</A>
2112 <P>
2113 For NSS valid examples of cipher lists include 'rsa_rc4_128_md5', 'rsa_aes_128_sha',
2114 etc. With NSS you don't add/remove ciphers. If you use this option then all known
2115 ciphers are disabled and only those passed in are enabled.
2116 <BR>&nbsp;
2117 You'll find more details about the NSS cipher lists on this URL:
2118 <BR>&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://directory.fedora.redhat.com/docs/mod_nss.html">http://directory.fedora.redhat.com/docs/mod_nss.html</A>
2119 <P>
2120 <DT><B>-sslsessionidcache</B>
2121
2122 <DD>
2123 Pass a 0 to disable TclCurl's use of SSL session-ID caching or a 1 to enable it.
2124 By default all transfers are done using the cache. While nothing ever
2125 should get hurt by attempting to reuse SSL session-IDs, there seem to be broken SSL
2126 implementations in the wild that may require you to disable this in order for you to
2127 succeed.
2128 <P>
2129 <DT><B>-krblevel</B>
2130
2131 <DD>
2132 Set the kerberos security level for FTP, this also enables kerberos awareness.
2133 This is a string, 'clear', 'safe', 'confidential' or 'private'. If the string
2134 is set but does not match one of these, 'private' will be used. Set the string
2135 to NULL to disable kerberos4. Set the string to &quot;&quot; to disable kerberos
2136 support for FTP.
2137 <P>
2138 <DT><B>-gssapidelegation</B>
2139
2140 <DD>
2141 Set the option to 'flag' to allow unconditional GSSAPI credential delegation. The delegation
2142 is disabled by default since 7.21.7. Set the parameter to 'policyflag' to delegate only if
2143 the OK-AS-DELEGATE flag is set in the service ticket in case this feature is supported by the
2144 GSSAPI implementation and the definition of GSS_C_DELEG_POLICY_FLAG was available at compile-time.
2145 <P>
2146 <P>
2147 </DL>
2148 <A NAME="lbAS">&nbsp;</A>
2149 <H2>SSH options</H2>
2150
2151 <P>
2152 <DL COMPACT>
2153 <DT><B>-sshauthtypes</B>
2154
2155 <DD>
2156 The allowed types are:
2157 <P>
2158 <DL COMPACT><DT><DD>
2159 <DL COMPACT>
2160 <DT><B>publickey</B>
2161
2162 <DD>
2163 <DT><B>password</B>
2164
2165 <DD>
2166 <DT><B>host</B>
2167
2168 <DD>
2169 <DT><B>keyboard</B>
2170
2171 <DD>
2172 <DT><B>any</B>
2173
2174 <DD>
2175 To let TclCurl pick one
2176 </DL>
2177 </DL>
2178
2179 <P>
2180 <DT><B>-sshhostpublickeymd5</B>
2181
2182 <DD>
2183 Pass a string containing 32 hexadecimal digits. The string should be the 128
2184 bit MD5 cheksum of the remote host public key, and TclCurl will reject the
2185 connection to the host unless the md5sums match. This option is only for SCP
2186 and SFTP transfers.
2187 <P>
2188 <DT><B>-publickeyfile</B>
2189
2190 <DD>
2191 Pass the file name for your public key. If not used, TclCurl defaults to using <B>$HOME/.ssh/id_dsa.pub</B>.
2192 HOME environment variable is set, and just <B>id_dsa</B> in the current directory if not. 
2193 <P>
2194 <DT><B>-privatekeyfile</B>
2195
2196 <DD>
2197 Pass the file name for your private key. If not used, TclCurl defaults to using <B>$HOME/.ssh/id_dsa.pub</B>.
2198 HOME environment variable is set, and just <B>id_dsa</B> in the current directory if not.
2199 If the file is password-protected, set the password with <B>-keypasswd</B>.
2200 <P>
2201 <DT><B>-sshknownhosts</B>
2202
2203 <DD>
2204 Pass a string holding the file name of the known_host file to use. The known_hosts
2205 file should use the OpenSSH file format as supported by libssh2. If this file is
2206 specified, TclCurl will only accept connections with hosts that are known and present
2207 in that file, with a matching public key. Use <B>-sshkeyproc</B> to alter the default
2208 behavior on host and key (mis)matching.
2209 <P>
2210 <DT><B>-sshkeyproc </B>
2211
2212 <DD>
2213 Pass a the name of the procedure that will be called when the known_host matching has
2214 been done, to allow the application to act and decide for TclCurl how to proceed. The
2215 callback will only be called if <B>-knownhosts</B> is also set.
2216 <P>
2217 It gets passed a list with three elements, the first one is a list with the type of the
2218 key from the known_hosts file and the key itself, the second is another list with
2219 the type of the key from the remote site and the key itslef, the third tells you
2220 what TclCurl thinks about the matching status. 
2221 <P>
2222 The known key types are: &quot;rsa&quot;, &quot;rsa1&quot; and &quot;dss&quot;, in any other case &quot;unknown&quot; is given.
2223 <P>
2224 TclCurl opinion about how they match may be: &quot;match&quot;, &quot;mismatch&quot;, &quot;missing&quot; or &quot;error&quot;.
2225 <P>
2226 The procedure must return:
2227 <DL COMPACT><DT><DD>
2228 <DL COMPACT>
2229 <DT><B>0</B>
2230
2231 <DD>
2232 The host+key is accepted and TclCurl will append it to the known_hosts file before
2233 continuing with the connection. This will also add the host+key combo to the known_host
2234 pool kept in memory if it wasn't already present there. The adding of data to
2235 the file is done by completely replacing the file with a new copy, so the permissions of
2236 the file must allow this.
2237 <DT><B>1</B>
2238
2239 <DD>
2240 The host+key is accepted, TclCurl will continue with the connection. This will also add
2241 the host+key combo to the known_host pool kept in memory if it wasn't already present
2242 there.
2243 <DT><B>2</B>
2244
2245 <DD>
2246 The host+key is rejected. TclCurl will close the connection.
2247 <DT><B>3</B>
2248
2249 <DD>
2250 The host+key is rejected, but the SSH connection is asked to be kept alive. This feature
2251 could be used when the app wants to somehow return back and act on the host+key situation
2252 and then retry without needing the overhead of setting it up from scratch again.
2253 </DL>
2254 </DL>
2255
2256 <P>
2257 Any other value will cause the connection to be closed.
2258 <P>
2259 </DL>
2260 <A NAME="lbAT">&nbsp;</A>
2261 <H2>Other options</H2>
2262
2263 <P>
2264 <DL COMPACT>
2265 <DT><B>-headervar</B>
2266
2267 <DD>
2268 Name of the Tcl array variable where TclCurl will store the headers returned
2269 by the server.
2270 <P>
2271 <DT><B>-bodyvar</B>
2272
2273 <DD>
2274 Name of the Tcl variable where TclCurl will store the file requested, the file
2275 may contain text or binary data.
2276 <P>
2277 <DT><B>-canceltransvar</B>
2278
2279 <DD>
2280 Name of a Tcl variable, in case you have defined a procedure to call with
2281 <B>-progressproc</B> setting this variable to '1' will cancel the transfer.
2282 <P>
2283 <DT><B>-command</B>
2284
2285 <DD>
2286 Executes the given command after the transfer is done, since it only works
2287 with blocking transfers, it is pretty much useless.
2288 <P>
2289 <DT><B>-share</B>
2290
2291 <DD>
2292 Pass a share handle as a parameter. The share handle must have been created by
2293 a previous call to <B>curl::shareinit</B>. Setting this option, will make this
2294 handle use the data from the shared handle instead of keeping the data to itself.
2295 See <I>tclcurl_share</I> for details.
2296 <P>
2297 <DT><B>-newfileperms</B>
2298
2299 <DD>
2300 Pass a number as a parameter, containing the value of the permissions that will
2301 be assigned to newly created files on the remote server. The default value is 0644,
2302 but any valid value can be used. The only protocols that can use this are sftp://,
2303 scp:// and file://.
2304 <P>
2305 <DT><B>-newdirectoryperms</B>
2306
2307 <DD>
2308 Pass a number as a parameter, containing the value of the permissions that will be
2309 assigned to newly created directories on the remote server. The default value is 0755,
2310 but any valid value can be used. The only protocols that can use this are sftp://, scp://
2311 and file://.
2312 <P>
2313 </DL>
2314 <A NAME="lbAU">&nbsp;</A>
2315 <H2>Telnet options</H2>
2316
2317 <P>
2318 <DL COMPACT>
2319 <DT><B>-telnetoptions</B>
2320
2321 <DD>
2322 Pass a list with variables to pass to the telnet negotiations. The variables should be in
2323 the format &lt;option=value&gt;. TclCurl supports the options 'TTYPE', 'XDISPLOC' and 'NEW_ENV'.
2324 See the TELNET standard for details.
2325 <P>
2326 </DL>
2327 <A NAME="lbAV">&nbsp;</A>
2328 <H2>NOT SUPPORTED</H2>
2329
2330 Some of the options libcurl offers are not supported, I don't think them
2331 worth supporting in TclCurl but if you need one of them don't forget to
2332 complain:
2333 <P>
2334 <B>CURLOPT_FRESH_CONNECT, CURLOPT_FORBID_REUSE, CURLOPT_PRIVATE,</B>
2335
2336 <B>CURLOPT_SSL_CTX_FUNCTION, CURLOPT_SSL_CTX_DATA, CURLOPT_SSL_CTX_FUNCTION and</B>
2337
2338 <B>CURLOPT_CONNECT_ONLY, CURLOPT_OPENSOCKETFUNCTION, CURLOPT_OPENSOCKETDATA.</B>
2339
2340 <P>
2341 <A NAME="lbAW">&nbsp;</A>
2342 <H2>curlHandle perform</H2>
2343
2344 This procedure is called after the
2345 <B>init</B>
2346
2347 and all the
2348 <B>configure</B>
2349
2350 calls are made, and will perform the transfer as described in the options.
2351 <P>
2352 It must be called with the same
2353 <I>curlHandle</I> <B>curl::init</B> call returned.
2354 You can do any amount of calls to perform while using the same handle. If you
2355 intend to transfer more than one file, you are even encouraged to do
2356 so. TclCurl will then attempt to re-use the same connection for the following
2357 transfers, thus making the operations faster, less CPU intense and using less
2358 network resources. Just note that you will have to use
2359 <I>configure</I>
2360
2361 between the invokes to set options for the following perform.
2362 <P>
2363 You must never call this procedure simultaneously from two places using the
2364 same handle. Let it return first before invoking it another time. If
2365 you want parallel transfers, you must use several curl handles.
2366 <DL COMPACT>
2367 <DT><B>RETURN VALUE</B>
2368
2369 <DD>
2370
2371 <I>errorbuffer</I>
2372
2373 was set with
2374 <I>configure</I>
2375
2376 there will be a readable error message.
2377 The error codes are:
2378 <DT>1<DD>
2379 Unsupported protocol. This build of TclCurl has no support for this protocol.
2380 <DT>2<DD>
2381 Very early initialization code failed. This is likely to be and internal error
2382 or a resource problem where something fundamental couldn't get done at init time.
2383 <DT>3<DD>
2384 URL malformat. The syntax was not correct.
2385 <DT>4<DD>
2386 A requested feature, protocol or option was not found built-in in this libcurl
2387 due to a build-time decision. This means that a feature or option was not
2388 enabled or explicitly disabled when libcurl was built and in order to get it
2389 to function you have to get a rebuilt libcurl.
2390 <DT>5<DD>
2391 Couldn't resolve proxy. The given proxy host could not be resolved.
2392 <DT>6<DD>
2393 Couldn't resolve host. The given remote host was not resolved.
2394 <DT>7<DD>
2395 Failed to connect to host or proxy.
2396 <DT>8<DD>
2397 FTP weird server reply. The server sent data TclCurl couldn't parse.
2398 The given remote server is probably not an OK FTP server.
2399 <DT>9<DD>
2400 We were denied access to the resource given in the URL. For FTP, this occurs
2401 while trying to change to the remote directory.
2402 <DT>11<DD>
2403 FTP weird PASS reply. TclCurl couldn't parse the reply sent to the PASS request.
2404 <DT>13<DD>
2405 FTP weird PASV reply, TclCurl couldn't parse the reply sent to the PASV or EPSV
2406 request.
2407 <DT>14<DD>
2408 FTP weird 227 format. TclCurl couldn't parse the 227-line the server sent.
2409 <DT>15<DD>
2410 FTP can't get host. Couldn't resolve the host IP we got in the 227-line.
2411 <DT>17<DD>
2412 FTP couldn't set type. Couldn't change transfer method to either binary or
2413 ascii.
2414 <DT>18<DD>
2415 Partial file. Only a part of the file was transfered, this happens when
2416 the server first reports an expected transfer size and then delivers data
2417 that doesn't match the given size.
2418 <DT>19<DD>
2419 FTP couldn't RETR file, we either got a weird reply to a 'RETR' command or
2420 a zero byte transfer.
2421 <DT>21<DD>
2422 Quote error. A custom 'QUOTE' returned error code 400 or higher (for FTP) or
2423 otherwise indicated unsuccessful completion of the command.
2424 <DT>22<DD>
2425 HTTP returned error. This return code only appears if <B>-failonerror</B> is
2426 used and the HTTP server returns an error code that is 400 or higher.
2427 <DT>23<DD>
2428 Write error. TclCurl couldn't write data to a local filesystem or an error
2429 was returned from a write callback.
2430 <DT>25<DD>
2431 Failed upload failed. For FTP, the server typcially denied the STOR
2432 command. The error buffer usually contains the server's explanation to this.
2433 <DT>26<DD>
2434 Read error. There was a problem reading from a local file or an error was returned
2435 from the read callback.
2436 <DT>27<DD>
2437 Out of memory. A memory allocation request failed. This should never happen unless
2438 something weird is going on in your computer.
2439 <DT>28<DD>
2440 Operation timeout. The specified time-out period was reached according to the
2441 conditions.
2442 <DT>30<DD>
2443 The FTP PORT command failed, not all FTP servers support the PORT command,
2444 try  doing a transfer using PASV instead!.
2445 <DT>31<DD>
2446 FTP couldn't use REST. This command is used for resumed FTP transfers.
2447 <DT>33<DD>
2448 Range error. The server doesn't support or accept range requests.
2449 <DT>34<DD>
2450 HTTP post error. Internal post-request generation error.
2451 <DT>35<DD>
2452 SSL connect error. The SSL handshaking failed, the error buffer may have
2453 a clue to the reason, could be certificates, passwords, ...
2454 <DT>36<DD>
2455 The download could not be resumed because the specified offset was out of the
2456 file boundary.
2457 <DT>37<DD>
2458 A file given with FILE:// couldn't be read. Did you checked the permissions?
2459 <DT>38<DD>
2460 LDAP cannot bind. LDAP bind operation failed.
2461 <DT>39<DD>
2462 LDAP search failed.
2463 <DT>41<DD>
2464 A required zlib function was not found.
2465 <DT>42<DD>
2466 Aborted by callback. An application told TclCurl to abort the operation.
2467 <DT>43<DD>
2468 Internal error. A function was called with a bad parameter.
2469 <DT>45<DD>
2470 Interface error. A specified outgoing interface could not be used.
2471 <DT>47<DD>
2472 Too many redirects. When following redirects, TclCurl hit the maximum amount, set
2473 your limit with --maxredirs
2474 <DT>48<DD>
2475 An option passed to TclCurl is not recognized/known. Refer to the appropriate
2476 documentation. This is most likely a problem in the program that uses
2477 TclCurl. The error buffer might contain more specific information about which
2478 exact option it concerns.
2479 <DT>49<DD>
2480 A telnet option string was illegally formatted.
2481 <DT>51<DD>
2482 The remote peer's SSL certificate or SSH md5 fingerprint wasn't ok
2483 <DT>52<DD>
2484 The server didn't reply anything, which here is considered an error.
2485 <DT>53<DD>
2486 The specified crypto engine wasn't found.
2487 <DT>54<DD>
2488 Failed setting the selected SSL crypto engine as default!
2489 <DT>55<DD>
2490 Failed sending network data.
2491 <DT>56<DD>
2492 Failure with receiving network data.
2493 <DT>58<DD>
2494 Problem with the local client certificate.
2495 <DT>59<DD>
2496 Couldn't use specified SSL cipher.
2497 <DT>60<DD>
2498 Peer certificate cannot be authenticated with known CA certificates.
2499 <DT>61<DD>
2500 Unrecognized transfer encoding.
2501 <DT>62<DD>
2502 Invalid LDAP URL.
2503 <DT>63<DD>
2504 Maximum file size exceeded.
2505 <DT>64<DD>
2506 SSL use failed.
2507 <DT>65<DD>
2508 Sending the data requires a rewind that failed, since TclCurl should
2509 take care of it for you, it means you found a bug.
2510 <DT>66<DD>
2511 Failed to initialise ssl engine.
2512 <DT>67<DD>
2513 Failed to login, user password or similar was not accepted.
2514 <DT>68<DD>
2515 File not found on TFTP server.
2516 <DT>69<DD>
2517 There is a permission problem with the TFTP request.
2518 <DT>70<DD>
2519 The remote server has run out of space.
2520 <DT>71<DD>
2521 Illegal TFTP operation.
2522 <DT>72<DD>
2523 Unknown transfer ID.
2524 <DT>73<DD>
2525 TFTP file already exists and will not be overwritten.
2526 <DT>74<DD>
2527 No such user in the TFTP server and good behaving TFTP servers
2528 should never return this.
2529 <DT>75<DD>
2530 Character conversion failed.
2531 <DT>77<DD>
2532 Problem with reading the SSL CA cert (path? access rights?).
2533 <DT>78<DD>
2534 Remote file not found
2535 <DT>79<DD>
2536 Error from the SSH layer
2537 <DT>80<DD>
2538 Failed to shut down the SSL connection
2539 <DT>82<DD>
2540 Failed to load CRL file
2541 <DT>83<DD>
2542 Issuer check failed
2543 <DT>84<DD>
2544 The FTP server does not understand the PRET command at all or does not support
2545 the given argument. Be careful when using <B>-customrequest</B>, a
2546 custom LIST command will be sent with PRET CMD before PASV as well.
2547 <DT>85<DD>
2548 Mismatch of RTSP CSeq numbers.
2549 <DT>86<DD>
2550 Mismatch of RTSP Session Identifiers.
2551 <DT>87<DD>
2552 Unable to parse FTP file list (during FTP wildcard downloading).
2553 <DT>88<DD>
2554 Chunk callback reported error.
2555 <P>
2556 </DL>
2557 <A NAME="lbAX">&nbsp;</A>
2558 <H2>curlHandle getinfo option</H2>
2559
2560 Request internal information from the curl session with this procedure.
2561 This procedure is intended to get used *AFTER* a performed transfer,
2562 and can be relied upon only if the <B>perform</B> returns 0.  Use
2563 this function AFTER a performed transfer if you want to get
2564 transfer-oriented data.
2565 <P>
2566 The following information can be extracted:
2567 <P>
2568 <DL COMPACT>
2569 <DT><B>effectiveurl</B>
2570
2571 <DD>
2572 Returns the last used effective URL.
2573 <P>
2574 <DT><B>responsecode</B>
2575
2576 <DD>
2577 Returns the last received HTTP or FTP code. This will be zero if no server
2578 response code has been received. Note that a proxy's CONNECT response should
2579 be read with <B>httpconnectcode</B> and not this.
2580 <P>
2581 <DT><B>httpconnectcode</B>
2582
2583 <DD>
2584 Returns the last received proxy response code to a CONNECT request.
2585 <P>
2586 <DT><B>filetime</B>
2587
2588 <DD>
2589 Returns the remote time of the retrieved document (in number of seconds
2590 since 1 jan 1970 in the GMT/UTC time zone). If you get -1,
2591 it can be because of many reasons (unknown, the server hides it or the
2592 server doesn't support the command that tells document time etc) and the time
2593 of the document is unknown.
2594 <P>
2595 In order for this to work you have to set the <B>-filetime</B> option before
2596 the transfer.
2597 <P>
2598 <DT><B>namelookuptime</B>
2599
2600 <DD>
2601 Returns the time, in seconds, it took from the start until the name resolving
2602 was completed.
2603 <P>
2604 <DT><B>connecttime</B>
2605
2606 <DD>
2607 Returns the time, in seconds, it took from the start until the connect to the
2608 remote host (or proxy) was completed.
2609 <P>
2610 <DT><B>appconnecttime</B>
2611
2612 <DD>
2613 Returns the time, in seconds, it took from the start until the SSL/SSH
2614 connect/handshake to the remote host was completed. This time is most often very
2615 near to the PRETRANSFER time, except for cases such as HTTP pippelining where the
2616 pretransfer time can be delayed due to waits in line for the pipeline and more.
2617 <P>
2618 <DT><B>pretransfertime</B>
2619
2620 <DD>
2621 Returns the time, in seconds, it took from the start until the file transfer
2622 is just about to begin. This includes all pre-transfer commands and
2623 negotiations that are specific to the particular protocol(s) involved.
2624 <P>
2625 <DT><B>starttransfertime</B>
2626
2627 <DD>
2628 Returns the time, in seconds, it took from the start until the first byte
2629 is just about to be transfered. This includes the <B>pretransfertime</B>,
2630 and also the time the server needs to calculate the result.
2631 <P>
2632 <DT><B>totaltime</B>
2633
2634 <DD>
2635 Returns the total transaction time, in seconds, for the previous transfer,
2636 including name resolving, TCP connect etc.
2637 <P>
2638 <DT><B>redirecturl</B>
2639
2640 <DD>
2641 Returns the URL a redirect would take you to if you enable <B>followlocation</B>.
2642 This can come very handy if you think using the built-in libcurl redirect logic
2643 isn't good enough for you but you would still prefer to avoid implementing all
2644 the magic of figuring out the new URL.
2645 <P>
2646 <DT><B>redirecttime</B>
2647
2648 <DD>
2649 Returns the total time, in seconds, it took for all redirection steps
2650 including name lookup, connect, pretransfer and transfer before
2651 the final transaction was started, it returns the complete execution
2652 time for multiple redirections, so it returns zero if no redirections
2653 were needed.
2654 <P>
2655 <DT><B>redirectcount</B>
2656
2657 <DD>
2658 Returns the total number of redirections that were actually followed.
2659 <P>
2660 <DT><B>numconnects</B>
2661
2662 <DD>
2663 Returns how many new connections TclCurl had to create to achieve the
2664 previous transfer (only the successful connects are counted). Combined
2665 with <B>redirectcount</B> you are able to know how many times TclCurl
2666 successfully reused existing connection(s) or not. See the Connection
2667 Options of <B>setopt</B> to see how TclCurl tries to make persistent
2668 connections to save time.
2669 <P>
2670 <DT><B>primaryip</B>
2671
2672 <DD>
2673 Returns the IP address of the most recent connection done with this handle.
2674 This string may be IPv6 if that's enabled.
2675 <P>
2676 <DT><B>primaryport</B>
2677
2678 <DD>
2679 Returns the destination port of the most recent connection done with this handle.
2680 <P>
2681 <DT><B>localip</B>
2682
2683 <DD>
2684 Returns the local (source) IP address of the most recent connection done
2685 with this handle. This string may be IPv6 if that's enabled.
2686 <P>
2687 <DT><B>localport</B>
2688
2689 <DD>
2690 Returns the local (source) port of the most recent connection done with this handle.
2691 <P>
2692 <DT><B>sizeupload</B>
2693
2694 <DD>
2695 Returns the total amount of bytes that were uploaded.
2696 <P>
2697 <DT><B>sizedownload</B>
2698
2699 <DD>
2700 Returns the total amount of bytes that were downloaded. The amount is only
2701 for the latest transfer and will be reset again for each new transfer.
2702 <P>
2703 <DT><B>speeddownload</B>
2704
2705 <DD>
2706 Returns the average download speed, measured in bytes/second, for the complete download.
2707 <P>
2708 <DT><B>speedupload</B>
2709
2710 <DD>
2711 Returns the average upload speed, measured in bytes/second, for the complete upload.
2712 <P>
2713 <DT><B>headersize</B>
2714
2715 <DD>
2716 Returns the total size in bytes of all the headers received.
2717 <P>
2718 <DT><B>requestsize</B>
2719
2720 <DD>
2721 Returns the total size of the issued requests. This is so far only for HTTP
2722 requests. Note that this may be more than one request if followLocation is true.
2723 <P>
2724 <DT><B>sslverifyresult</B>
2725
2726 <DD>
2727 Returns the result of the certification verification that was requested
2728 (using the -sslverifypeer option to configure).
2729 <P>
2730 <DT><B>sslengines</B>
2731
2732 <DD>
2733 Returns a <B>list</B> of the OpenSSL crypto-engines supported. Note that engines are
2734 normally implemented in separate dynamic libraries. Hence not all the returned
2735 engines may be available at run-time.
2736 <P>
2737 <DT><B>contentlengthdownload</B>
2738
2739 <DD>
2740 Returns the content-length of the download. This is the value read from the
2741 <B>Content-Length:</B>
2742
2743 field. If the size isn't known, it returns -1.
2744 <P>
2745 <DT><B>contentlengthupload</B>
2746
2747 <DD>
2748 Returns the specified size of the upload.
2749 <P>
2750 <DT><B>contenttype</B>
2751
2752 <DD>
2753 Returns the content-type of the downloaded object. This is the value
2754 read from the Content-Type: field. If you get an empty string, it  means
2755 the server didn't send a valid Content-Type header or that the protocol
2756 used doesn't support this.
2757 <P>
2758 <DT><B>httpauthavail</B>
2759
2760 <DD>
2761 Returns a list with the authentication method(s) available.
2762 <P>
2763 <DT><B>proxyauthavail</B>
2764
2765 <DD>
2766 Returns a list with the authentication method(s) available for your
2767 proxy athentication.
2768 <P>
2769 <DT><B>oserrno</B>
2770
2771 <DD>
2772 Returns the errno value from a connect failure. This value is only set on
2773 failure, it is no reset after a successfull operation.
2774 <P>
2775 <DT><B>cookielist</B>
2776
2777 <DD>
2778 Returns a list of all cookies TclCurl knows (expired ones, too). If there
2779 are no cookies (cookies for the handle have not been enabled or simply
2780 none have been received) the list will be empty.
2781 <P>
2782 <DT><B>ftpentrypath </B>
2783
2784 <DD>
2785 Returns a string holding the path of the entry path. That is the initial path
2786 TclCurl ended up in when logging on to the remote FTP server. Returns an empty
2787 string if something is wrong.
2788 <P>
2789 <DT><B>certinfo</B>
2790
2791 <DD>
2792 Returns list with information about the certificate chain, assuming you had the
2793 <B>-certinfo</B> option enabled when the previous request was done. The list
2794 first item reports how many certs it found and then you can extract info for each
2795 of those certs by following the list. The info chain is provided in a series of data
2796 in the format &quot;name:content&quot; where the content is for the specific named data.
2797 <P>
2798 NOTE: this option is only available in libcurl built with OpenSSL support.
2799 <P>
2800 <DT><B>conditionunmet</B>
2801
2802 <DD>
2803 Returns the number 1 if the condition provided in the previous request
2804 didn't match (see <I>timecondition</I>), you will get a zero if the condition
2805 instead was met.
2806 <P>
2807 </DL>
2808 <A NAME="lbAY">&nbsp;</A>
2809 <H2>curlHandle cleanup</H2>
2810
2811 This procedure must be the last one to call for a curl session. It is the
2812 opposite of the
2813 <I>curl::init</I>
2814
2815 procedure and must be called with the same
2816 <I>curlhandle</I>
2817
2818 as input as the curl::init call returned.
2819 This will effectively close all connections TclCurl has used and possibly
2820 has kept open until now. Don't call this procedure if you intend to transfer
2821 more files.
2822 <P>
2823 <A NAME="lbAZ">&nbsp;</A>
2824 <H2>curlHandle reset</H2>
2825
2826 <P>
2827 Re-initializes all options previously set on a specified handle to the
2828 default values.
2829 <P>
2830 This puts back the handle to the same state as it was in when it was just
2831 created with curl::init.
2832 <P>
2833 It does not change the following information kept in the handle: live
2834 connections, the Session ID cache, the DNS cache, the cookies and shares.
2835 <P>
2836 <A NAME="lbBA">&nbsp;</A>
2837 <H2>curlHandle duphandle</H2>
2838
2839 This procedure will return a new curl handle, a duplicate,
2840 using all the options previously set in the input curl handle.
2841 Both handles can subsequently be used independently and
2842 they must both be freed with
2843 <B>cleanup.</B>
2844
2845 The new handle will not inherit any state information,
2846 connections, SSL sessions or cookies.
2847 <DL COMPACT>
2848 <DT><B>RETURN VALUE</B>
2849
2850 <DD>
2851 A new curl handle or an error message if the copy fails.
2852 <P>
2853 </DL>
2854 <A NAME="lbBB">&nbsp;</A>
2855 <H2>curlHandle pause</H2>
2856
2857 You can use this command from within a progress callback procedure
2858 to pause the transfer.
2859 <P>
2860 <A NAME="lbBC">&nbsp;</A>
2861 <H2>curlHandle resume</H2>
2862
2863 Resumes a transfer paused with <B>curlhandle pause</B>
2864 <P>
2865 <A NAME="lbBD">&nbsp;</A>
2866 <H2>curl::transfer</H2>
2867
2868 In case you do not want to use persistant connections you can use this
2869 command, it takes the same arguments as the <I>curlHandle</I> <B>configure</B>
2870 and will init, configure, perform and cleanup a connection for you.
2871 <P>
2872 You can also get the <I>getinfo</I> information by using <I>-infooption variable</I>
2873 pairs, after the transfer <I>variable</I> will contain the value that would have
2874 been returned by <I>$curlHandle getinfo option</I>.
2875 <DL COMPACT>
2876 <DT><B>RETURN VALUE</B>
2877
2878 <DD>
2879 The same error code <B>perform</B> would return.
2880 <P>
2881 </DL>
2882 <A NAME="lbBE">&nbsp;</A>
2883 <H2>curl::version</H2>
2884
2885 Returns a string with the version number of tclcurl, libcurl and some of
2886 its important components (like OpenSSL version).
2887 <DL COMPACT>
2888 <DT><B>RETURN VALUE</B>
2889
2890 <DD>
2891 The string with the version info.
2892 <P>
2893 </DL>
2894 <A NAME="lbBF">&nbsp;</A>
2895 <H2>curl::escape url</H2>
2896
2897 This procedure will convert the given input string to an URL encoded string and
2898 return that. All input characters that are not a-z,
2899 A-Z or 0-9 will be converted to their &quot;URL escaped&quot; version (%NN where NN is a
2900 two-digit hexadecimal number)
2901 <DL COMPACT>
2902 <DT><B>RETURN VALUE</B>
2903
2904 <DD>
2905 The converted string.
2906 </DL>
2907 <A NAME="lbBG">&nbsp;</A>
2908 <H2>curl::unescape url</H2>
2909
2910 This procedure will convert the given URL encoded input string to a &quot;plain
2911 string&quot; and return that. All input characters that
2912 are URL encoded (%XX where XX is a two-digit hexadecimal number) will be
2913 converted to their plain text versions.
2914 <DL COMPACT>
2915 <DT><B>RETURN VALUE</B>
2916
2917 <DD>
2918 The string unencoded.
2919 <P>
2920 </DL>
2921 <A NAME="lbBH">&nbsp;</A>
2922 <H2>curl::curlConfig option</H2>
2923
2924 Returns some information about how you have
2925 <B>cURL</B>
2926
2927 installed.
2928 <P>
2929 <DL COMPACT>
2930 <DT><B>-prefix</B>
2931
2932 <DD>
2933 Returns the directory root where you installed
2934 <B>cURL</B>
2935
2936 <DT><B>-feature</B>
2937
2938 <DD>
2939 Returns a list containing particular main features the installed
2940 <B>libcurl</B>
2941
2942 was built with. The list may include SSL, KRB4 or IPv6, do not
2943 assume any particular order.
2944 <DT><B>-vernum</B>
2945
2946 <DD>
2947 Outputs  version  information  about  the installed libcurl, in
2948 numerical mode.  This outputs the  version  number,  in hexadecimal,
2949 with 8 bits for each part; major, minor, patch. So  that  libcurl
2950 7.7.4 would appear as 070704 and libcurl 12.13.14 would appear as
2951 0c0d0e...
2952 <P>
2953 </DL>
2954 <A NAME="lbBI">&nbsp;</A>
2955 <H2>curl::versioninfo option</H2>
2956
2957 Returns information about various run-time features in TclCurl.
2958 <P>
2959 Applications should use this information to judge if things are possible to do
2960 or not, instead of using compile-time checks, as dynamic/DLL libraries can be
2961 changed independent of applications.
2962 <P>
2963 <DL COMPACT>
2964 <DT><B>-version</B>
2965
2966 <DD>
2967 Returns the version of libcurl we are using.
2968 <P>
2969 <DT><B>-versionnum</B>
2970
2971 <DD>
2972 Retuns the version of libcurl we are using in hexadecimal with 8 bits for each
2973 part; major, minor, patch. So  that  libcurl 7.7.4 would appear as 070704 and
2974 libcurl 12.13.14 would appear as 0c0d0e... Note that the initial zero might be
2975 omitted.
2976 <P>
2977 <DT><B>-host</B>
2978
2979 <DD>
2980 Returns a string with the host information as discovered by a configure
2981 script or set by the build environment.
2982 <P>
2983 <DT><B>-features</B>
2984
2985 <DD>
2986 Returns a list with the features compiled into libcurl, the possible elements are:
2987 <DL COMPACT><DT><DD>
2988 <DL COMPACT>
2989 <DT><B>ASYNCHDNS</B>
2990
2991 <DD>
2992 Libcurl was built with support for asynchronous name lookups, which allows
2993 more exact timeouts (even on Windows) and less blocking when using the multi
2994 interface.
2995 <DT><B>CONV</B>
2996
2997 <DD>
2998 Libcurl was built with support for character conversions.
2999 <DT><B>DEBUG</B>
3000
3001 <DD>
3002 Libcurl was built with extra debug capabilities built-in. This is mainly of
3003 interest for libcurl hackers. 
3004 <DT><B>GSSNEGOTIATE</B>
3005
3006 <DD>
3007 Supports HTTP GSS-Negotiate.
3008 <DT><B>IDN</B>
3009
3010 <DD>
3011 Supports IDNA, domain names with international letters.
3012 <DT><B>IPV6</B>
3013
3014 <DD>
3015 Supports IPv6.
3016 <DT><B>KERBEROS4</B>
3017
3018 <DD>
3019 Supports kerberos4 (when using FTP).
3020 <DT><B>LARGEFILE</B>
3021
3022 <DD>
3023 Libcurl was built with support for large files.
3024 <DT><B>LIBZ</B>
3025
3026 <DD>
3027 Supports HTTP deflate using libz.
3028 <DT><B>NTML</B>
3029
3030 <DD>
3031 Supports HTTP NTLM
3032 <DT><B>SPNEGO</B>
3033
3034 <DD>
3035 Libcurl was built with support for SPNEGO authentication (Simple and Protected
3036 GSS-API Negotiation Mechanism, defined in RFC 2478)
3037 <DT><B>SSL</B>
3038
3039 <DD>
3040 Supports SSL (HTTPS/FTPS)
3041 <DT><B>SSPI</B>
3042
3043 <DD>
3044 Libcurl was built with support for SSPI. This is only available on Windows and
3045 makes libcurl use Windows-provided functions for NTLM authentication. It also
3046 allows libcurl to use the current user and the current user's password without
3047 the app having to pass them on.
3048 <DT><B>TLSAUTH_SRP</B>
3049
3050 <DD>
3051 Libcurl was built with support for TLS-SRP.
3052 <B>NTLM_WB</B>
3053
3054 Libcurl was built with support for NTLM delegation to a winbind helper.
3055 </DL>
3056 </DL>
3057
3058 Do not assume any particular order.
3059 <P>
3060 <DT><B>-sslversion</B>
3061
3062 <DD>
3063 Returns a string with the OpenSSL version used, like OpenSSL/0.9.6b.
3064 <P>
3065 <DT><B>-sslversionnum</B>
3066
3067 <DD>
3068 Returns the numerical OpenSSL version value as defined by the OpenSSL project.
3069 If libcurl has no SSL support, this is 0.
3070 <P>
3071 <DT><B>-libzversion</B>
3072
3073 <DD>
3074 Returns a string, there is no numerical  version, for example: 1.1.3.
3075 <P>
3076 <DT><B>-protocols</B>
3077
3078 <DD>
3079 Lists what particular protocols the installed TclCurl was built to support.
3080 At the time of writing, this list may include HTTP, HTTPS, FTP, FTPS,
3081 FILE, TELNET, LDAP, DICT. Do not assume any particular order. The protocols
3082 will be listed using uppercase. There may be none, one or several protocols
3083 in the list.
3084 <P>
3085 </DL>
3086 <A NAME="lbBJ">&nbsp;</A>
3087 <H2>curl::easystrerror errorCode</H2>
3088
3089 This procedure returns a string describing the error code passed in the argument.
3090 <P>
3091 <A NAME="lbBK">&nbsp;</A>
3092 <H2>SEE ALSO</H2>
3093
3094 <I>curl, <a href="http://curl.haxx.se/docs/httpscripting.html">The art of HTTP scripting</A>, RFC 2396,</I>
3095
3096 <P>
3097
3098 <HR>
3099 <A NAME="index">&nbsp;</A><H2>Index</H2>
3100 <DL>
3101 <DT><A HREF="#lbAB">NAME</A><DD>
3102 <DT><A HREF="#lbAC">SYNOPSIS</A><DD>
3103 <DT><A HREF="#lbAD">DESCRIPTION</A><DD>
3104 <DT><A HREF="#lbAE">curl::init</A><DD>
3105 <DT><A HREF="#lbAF">curlHandle configure ?options?</A><DD>
3106 <DT><A HREF="#lbAG">Behaviour options</A><DD>
3107 <DT><A HREF="#lbAH">Callback options</A><DD>
3108 <DT><A HREF="#lbAI">Error Options</A><DD>
3109 <DT><A HREF="#lbAJ">Network options</A><DD>
3110 <DT><A HREF="#lbAK">Names and Passwords options</A><DD>
3111 <DT><A HREF="#lbAL">HTTP options</A><DD>
3112 <DT><A HREF="#lbAM">SMTP options</A><DD>
3113 <DT><A HREF="#lbAN">TFTP option</A><DD>
3114 <DT><A HREF="#lbAO">FTP options</A><DD>
3115 <DT><A HREF="#lbAP">Protocol options</A><DD>
3116 <DT><A HREF="#lbAQ">Connection options</A><DD>
3117 <DT><A HREF="#lbAR">SSL and security options</A><DD>
3118 <DT><A HREF="#lbAS">SSH options</A><DD>
3119 <DT><A HREF="#lbAT">Other options</A><DD>
3120 <DT><A HREF="#lbAU">Telnet options</A><DD>
3121 <DT><A HREF="#lbAV">NOT SUPPORTED</A><DD>
3122 <DT><A HREF="#lbAW">curlHandle perform</A><DD>
3123 <DT><A HREF="#lbAX">curlHandle getinfo option</A><DD>
3124 <DT><A HREF="#lbAY">curlHandle cleanup</A><DD>
3125 <DT><A HREF="#lbAZ">curlHandle reset</A><DD>
3126 <DT><A HREF="#lbBA">curlHandle duphandle</A><DD>
3127 <DT><A HREF="#lbBB">curlHandle pause</A><DD>
3128 <DT><A HREF="#lbBC">curlHandle resume</A><DD>
3129 <DT><A HREF="#lbBD">curl::transfer</A><DD>
3130 <DT><A HREF="#lbBE">curl::version</A><DD>
3131 <DT><A HREF="#lbBF">curl::escape url</A><DD>
3132 <DT><A HREF="#lbBG">curl::unescape url</A><DD>
3133 <DT><A HREF="#lbBH">curl::curlConfig option</A><DD>
3134 <DT><A HREF="#lbBI">curl::versioninfo option</A><DD>
3135 <DT><A HREF="#lbBJ">curl::easystrerror errorCode</A><DD>
3136 <DT><A HREF="#lbBK">SEE ALSO</A><DD>
3137 </DL>
3138 <HR>
3139 This document was created by man2html, using the manual pages.<BR>
3140 </BODY>
3141 </HTML>