ReactOS 0.4.16-dev-1946-g52006dd
curl.h
Go to the documentation of this file.
1#ifndef CURLINC_CURL_H
2#define CURLINC_CURL_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
11 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at https://curl.se/docs/copyright.html.
15 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 * SPDX-License-Identifier: curl
24 *
25 ***************************************************************************/
26
27/*
28 * If you have libcurl problems, all docs and details are found here:
29 * https://curl.se/libcurl/
30 */
31
32#ifdef CURL_NO_OLDIES
33#define CURL_STRICTER
34#endif
35
36#include "curlver.h" /* libcurl version defines */
37#include "system.h" /* determine things run-time */
38
39/*
40 * Define CURL_WIN32 when build target is Win32 API
41 */
42
43#if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && \
44 !defined(__SYMBIAN32__)
45#define CURL_WIN32
46#endif
47
48#include <stdio.h>
49#include <limits.h>
50
51#if (defined(__FreeBSD__) && (__FreeBSD__ >= 2)) || defined(__MidnightBSD__)
52/* Needed for __FreeBSD_version or __MidnightBSD_version symbol definition */
53#include <osreldate.h>
54#endif
55
56/* The include stuff here below is mainly for time_t! */
57#include <sys/types.h>
58#include <time.h>
59
60#if defined(CURL_WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)
61#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H) || \
62 defined(__LWIP_OPT_H__) || defined(LWIP_HDR_OPT_H))
63/* The check above prevents the winsock2 inclusion if winsock.h already was
64 included, since they can't co-exist without problems */
65#include <winsock2.h>
66#include <ws2tcpip.h>
67#endif
68#endif
69
70/* HP-UX systems version 9, 10 and 11 lack sys/select.h and so does oldish
71 libc5-based Linux systems. Only include it on systems that are known to
72 require it! */
73#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
74 defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
75 defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
76 defined(__CYGWIN__) || defined(AMIGA) || defined(__NuttX__) || \
77 (defined(__FreeBSD_version) && (__FreeBSD_version < 800000)) || \
78 (defined(__MidnightBSD_version) && (__MidnightBSD_version < 100000))
79#include <sys/select.h>
80#endif
81
82#if !defined(CURL_WIN32) && !defined(_WIN32_WCE)
83#include <sys/socket.h>
84#endif
85
86#if !defined(CURL_WIN32)
87#include <sys/time.h>
88#endif
89
90/* Compatibility for non-Clang compilers */
91#ifndef __has_declspec_attribute
92# define __has_declspec_attribute(x) 0
93#endif
94
95#ifdef __cplusplus
96extern "C" {
97#endif
98
99#if defined(BUILDING_LIBCURL) || defined(CURL_STRICTER)
100typedef struct Curl_easy CURL;
101typedef struct Curl_share CURLSH;
102#else
103typedef void CURL;
104typedef void CURLSH;
105#endif
106
107/*
108 * libcurl external API function linkage decorations.
109 */
110
111#ifdef CURL_STATICLIB
112# define CURL_EXTERN
113#elif defined(CURL_WIN32) || defined(__SYMBIAN32__) || \
114 (__has_declspec_attribute(dllexport) && \
115 __has_declspec_attribute(dllimport))
116# if defined(BUILDING_LIBCURL)
117# define CURL_EXTERN __declspec(dllexport)
118# else
119# define CURL_EXTERN __declspec(dllimport)
120# endif
121#elif defined(BUILDING_LIBCURL) && defined(CURL_HIDDEN_SYMBOLS)
122# define CURL_EXTERN CURL_EXTERN_SYMBOL
123#else
124# define CURL_EXTERN
125#endif
126
127#ifndef curl_socket_typedef
128/* socket typedef */
129#if defined(CURL_WIN32) && !defined(__LWIP_OPT_H__) && !defined(LWIP_HDR_OPT_H)
130typedef SOCKET curl_socket_t;
131#define CURL_SOCKET_BAD INVALID_SOCKET
132#else
133typedef int curl_socket_t;
134#define CURL_SOCKET_BAD -1
135#endif
136#define curl_socket_typedef
137#endif /* curl_socket_typedef */
138
139/* enum for the different supported SSL backends */
140typedef enum {
145 CURLSSLBACKEND_OBSOLETE4 = 4, /* Was QSOSSL. */
151 CURLSSLBACKEND_AXTLS = 10, /* never used since 7.63.0 */
157
158/* aliases for library clones and renames */
159#define CURLSSLBACKEND_LIBRESSL CURLSSLBACKEND_OPENSSL
160#define CURLSSLBACKEND_BORINGSSL CURLSSLBACKEND_OPENSSL
161
162/* deprecated names: */
163#define CURLSSLBACKEND_CYASSL CURLSSLBACKEND_WOLFSSL
164#define CURLSSLBACKEND_DARWINSSL CURLSSLBACKEND_SECURETRANSPORT
165
167 struct curl_httppost *next; /* next entry in the list */
168 char *name; /* pointer to allocated name */
169 long namelength; /* length of name length */
170 char *contents; /* pointer to allocated data contents */
171 long contentslength; /* length of contents field, see also
172 CURL_HTTPPOST_LARGE */
173 char *buffer; /* pointer to allocated buffer contents */
174 long bufferlength; /* length of buffer field */
175 char *contenttype; /* Content-Type */
176 struct curl_slist *contentheader; /* list of extra headers for this form */
177 struct curl_httppost *more; /* if one field name has more than one
178 file, this link should link to following
179 files */
180 long flags; /* as defined below */
181
182/* specified content is a file name */
183#define CURL_HTTPPOST_FILENAME (1<<0)
184/* specified content is a file name */
185#define CURL_HTTPPOST_READFILE (1<<1)
186/* name is only stored pointer do not free in formfree */
187#define CURL_HTTPPOST_PTRNAME (1<<2)
188/* contents is only stored pointer do not free in formfree */
189#define CURL_HTTPPOST_PTRCONTENTS (1<<3)
190/* upload file from buffer */
191#define CURL_HTTPPOST_BUFFER (1<<4)
192/* upload file from pointer contents */
193#define CURL_HTTPPOST_PTRBUFFER (1<<5)
194/* upload file contents by using the regular read callback to get the data and
195 pass the given pointer as custom pointer */
196#define CURL_HTTPPOST_CALLBACK (1<<6)
197/* use size in 'contentlen', added in 7.46.0 */
198#define CURL_HTTPPOST_LARGE (1<<7)
199
200 char *showfilename; /* The file name to show. If not set, the
201 actual file name will be used (if this
202 is a file part) */
203 void *userp; /* custom pointer used for
204 HTTPPOST_CALLBACK posts */
205 curl_off_t contentlen; /* alternative length of contents
206 field. Used if CURL_HTTPPOST_LARGE is
207 set. Added in 7.46.0 */
208};
209
210
211/* This is a return code for the progress callback that, when returned, will
212 signal libcurl to continue executing the default progress function */
213#define CURL_PROGRESSFUNC_CONTINUE 0x10000001
214
215/* This is the CURLOPT_PROGRESSFUNCTION callback prototype. It is now
216 considered deprecated but was the only choice up until 7.31.0 */
217typedef int (*curl_progress_callback)(void *clientp,
218 double dltotal,
219 double dlnow,
220 double ultotal,
221 double ulnow);
222
223/* This is the CURLOPT_XFERINFOFUNCTION callback prototype. It was introduced
224 in 7.32.0, avoids the use of floating point numbers and provides more
225 detailed information. */
226typedef int (*curl_xferinfo_callback)(void *clientp,
227 curl_off_t dltotal,
228 curl_off_t dlnow,
229 curl_off_t ultotal,
230 curl_off_t ulnow);
231
232#ifndef CURL_MAX_READ_SIZE
233 /* The maximum receive buffer size configurable via CURLOPT_BUFFERSIZE. */
234#define CURL_MAX_READ_SIZE 524288
235#endif
236
237#ifndef CURL_MAX_WRITE_SIZE
238 /* Tests have proven that 20K is a very bad buffer size for uploads on
239 Windows, while 16K for some odd reason performed a lot better.
240 We do the ifndef check to allow this value to easier be changed at build
241 time for those who feel adventurous. The practical minimum is about
242 400 bytes since libcurl uses a buffer of this size as a scratch area
243 (unrelated to network send operations). */
244#define CURL_MAX_WRITE_SIZE 16384
245#endif
246
247#ifndef CURL_MAX_HTTP_HEADER
248/* The only reason to have a max limit for this is to avoid the risk of a bad
249 server feeding libcurl with a never-ending header that will cause reallocs
250 infinitely */
251#define CURL_MAX_HTTP_HEADER (100*1024)
252#endif
253
254/* This is a magic return code for the write callback that, when returned,
255 will signal libcurl to pause receiving on the current transfer. */
256#define CURL_WRITEFUNC_PAUSE 0x10000001
257
259 size_t size,
260 size_t nitems,
261 void *outstream);
262
263/* This callback will be called when a new resolver request is made */
264typedef int (*curl_resolver_start_callback)(void *resolver_state,
265 void *reserved, void *userdata);
266
267/* enumeration of file types */
268typedef enum {
276 CURLFILETYPE_DOOR, /* is possible only on Sun Solaris now */
277
278 CURLFILETYPE_UNKNOWN /* should never occur */
280
281#define CURLFINFOFLAG_KNOWN_FILENAME (1<<0)
282#define CURLFINFOFLAG_KNOWN_FILETYPE (1<<1)
283#define CURLFINFOFLAG_KNOWN_TIME (1<<2)
284#define CURLFINFOFLAG_KNOWN_PERM (1<<3)
285#define CURLFINFOFLAG_KNOWN_UID (1<<4)
286#define CURLFINFOFLAG_KNOWN_GID (1<<5)
287#define CURLFINFOFLAG_KNOWN_SIZE (1<<6)
288#define CURLFINFOFLAG_KNOWN_HLINKCOUNT (1<<7)
289
290/* Information about a single file, used when doing FTP wildcard matching */
292 char *filename;
294 time_t time; /* always zero! */
295 unsigned int perm;
296 int uid;
297 int gid;
299 long int hardlinks;
300
301 struct {
302 /* If some of these fields is not NULL, it is a pointer to b_data. */
303 char *time;
304 char *perm;
305 char *user;
306 char *group;
307 char *target; /* pointer to the target filename of a symlink */
309
310 unsigned int flags;
311
312 /* used internally */
313 char *b_data;
314 size_t b_size;
315 size_t b_used;
316};
317
318/* return codes for CURLOPT_CHUNK_BGN_FUNCTION */
319#define CURL_CHUNK_BGN_FUNC_OK 0
320#define CURL_CHUNK_BGN_FUNC_FAIL 1 /* tell the lib to end the task */
321#define CURL_CHUNK_BGN_FUNC_SKIP 2 /* skip this chunk over */
322
323/* if splitting of data transfer is enabled, this callback is called before
324 download of an individual chunk started. Note that parameter "remains" works
325 only for FTP wildcard downloading (for now), otherwise is not used */
326typedef long (*curl_chunk_bgn_callback)(const void *transfer_info,
327 void *ptr,
328 int remains);
329
330/* return codes for CURLOPT_CHUNK_END_FUNCTION */
331#define CURL_CHUNK_END_FUNC_OK 0
332#define CURL_CHUNK_END_FUNC_FAIL 1 /* tell the lib to end the task */
333
334/* If splitting of data transfer is enabled this callback is called after
335 download of an individual chunk finished.
336 Note! After this callback was set then it have to be called FOR ALL chunks.
337 Even if downloading of this chunk was skipped in CHUNK_BGN_FUNC.
338 This is the reason why we don't need "transfer_info" parameter in this
339 callback and we are not interested in "remains" parameter too. */
341
342/* return codes for FNMATCHFUNCTION */
343#define CURL_FNMATCHFUNC_MATCH 0 /* string corresponds to the pattern */
344#define CURL_FNMATCHFUNC_NOMATCH 1 /* pattern doesn't match the string */
345#define CURL_FNMATCHFUNC_FAIL 2 /* an error occurred */
346
347/* callback type for wildcard downloading pattern matching. If the
348 string matches the pattern, return CURL_FNMATCHFUNC_MATCH value, etc. */
350 const char *pattern,
351 const char *string);
352
353/* These are the return codes for the seek callbacks */
354#define CURL_SEEKFUNC_OK 0
355#define CURL_SEEKFUNC_FAIL 1 /* fail the entire transfer */
356#define CURL_SEEKFUNC_CANTSEEK 2 /* tell libcurl seeking can't be done, so
357 libcurl might try other means instead */
358typedef int (*curl_seek_callback)(void *instream,
360 int origin); /* 'whence' */
361
362/* This is a return code for the read callback that, when returned, will
363 signal libcurl to immediately abort the current transfer. */
364#define CURL_READFUNC_ABORT 0x10000000
365/* This is a return code for the read callback that, when returned, will
366 signal libcurl to pause sending data on the current transfer. */
367#define CURL_READFUNC_PAUSE 0x10000001
368
369/* Return code for when the trailing headers' callback has terminated
370 without any errors*/
371#define CURL_TRAILERFUNC_OK 0
372/* Return code for when was an error in the trailing header's list and we
373 want to abort the request */
374#define CURL_TRAILERFUNC_ABORT 1
376typedef size_t (*curl_read_callback)(char *buffer,
377 size_t size,
378 size_t nitems,
379 void *instream);
381typedef int (*curl_trailer_callback)(struct curl_slist **list,
382 void *userdata);
384typedef enum {
385 CURLSOCKTYPE_IPCXN, /* socket created for a specific IP connection */
386 CURLSOCKTYPE_ACCEPT, /* socket created by accept() call */
387 CURLSOCKTYPE_LAST /* never use */
389
390/* The return code from the sockopt_callback can signal information back
391 to libcurl: */
392#define CURL_SOCKOPT_OK 0
393#define CURL_SOCKOPT_ERROR 1 /* causes libcurl to abort and return
394 CURLE_ABORTED_BY_CALLBACK */
395#define CURL_SOCKOPT_ALREADY_CONNECTED 2
396
397typedef int (*curl_sockopt_callback)(void *clientp,
398 curl_socket_t curlfd,
399 curlsocktype purpose);
404 int protocol;
405 unsigned int addrlen; /* addrlen was a socklen_t type before 7.18.0 but it
406 turned really ugly and painful on the systems that
407 lack this type */
408 struct sockaddr addr;
410
411typedef curl_socket_t
412(*curl_opensocket_callback)(void *clientp,
413 curlsocktype purpose,
415
416typedef int
419typedef enum {
420 CURLIOE_OK, /* I/O operation successful */
421 CURLIOE_UNKNOWNCMD, /* command was unknown to callback */
422 CURLIOE_FAILRESTART, /* failed to restart the read */
423 CURLIOE_LAST /* never use */
426typedef enum {
427 CURLIOCMD_NOP, /* no operation */
428 CURLIOCMD_RESTARTREAD, /* restart the read stream from start */
429 CURLIOCMD_LAST /* never use */
431
433 int cmd,
434 void *clientp);
435
436#ifndef CURL_DID_MEMORY_FUNC_TYPEDEFS
437/*
438 * The following typedef's are signatures of malloc, free, realloc, strdup and
439 * calloc respectively. Function pointers of these types can be passed to the
440 * curl_global_init_mem() function to set user defined memory management
441 * callback routines.
442 */
443typedef void *(*curl_malloc_callback)(size_t size);
444typedef void (*curl_free_callback)(void *ptr);
445typedef void *(*curl_realloc_callback)(void *ptr, size_t size);
446typedef char *(*curl_strdup_callback)(const char *str);
447typedef void *(*curl_calloc_callback)(size_t nmemb, size_t size);
448
449#define CURL_DID_MEMORY_FUNC_TYPEDEFS
450#endif
452/* the kind of data that is passed to information_callback*/
453typedef enum {
459 CURLINFO_SSL_DATA_IN, /* 5 */
463
464typedef int (*curl_debug_callback)
465 (CURL *handle, /* the handle/transfer this concerns */
466 curl_infotype type, /* what kind of data */
467 char *data, /* points to the data */
468 size_t size, /* size of the data pointed to */
469 void *userptr); /* whatever the user please */
471/* This is the CURLOPT_PREREQFUNCTION callback prototype. */
472typedef int (*curl_prereq_callback)(void *clientp,
473 char *conn_primary_ip,
474 char *conn_local_ip,
475 int conn_primary_port,
476 int conn_local_port);
477
478/* Return code for when the pre-request callback has terminated without
479 any errors */
480#define CURL_PREREQFUNC_OK 0
481/* Return code for when the pre-request callback wants to abort the
482 request */
483#define CURL_PREREQFUNC_ABORT 1
484
485/* All possible error codes from all sorts of curl functions. Future versions
486 may return other values, stay prepared.
487
488 Always add new return codes last. Never *EVER* remove any. The return
489 codes must remain the same!
490 */
492typedef enum {
496 CURLE_URL_MALFORMAT, /* 3 */
497 CURLE_NOT_BUILT_IN, /* 4 - [was obsoleted in August 2007 for
498 7.17.0, reused in April 2011 for 7.21.5] */
503 CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server
504 due to lack of access - when login fails
505 this is not returned. */
506 CURLE_FTP_ACCEPT_FAILED, /* 10 - [was obsoleted in April 2006 for
507 7.15.4, reused in Dec 2011 for 7.24.0]*/
509 CURLE_FTP_ACCEPT_TIMEOUT, /* 12 - timeout occurred accepting server
510 [was obsoleted in August 2007 for 7.17.0,
511 reused in Dec 2011 for 7.24.0]*/
515 CURLE_HTTP2, /* 16 - A problem in the http2 framing layer.
516 [was obsoleted in August 2007 for 7.17.0,
517 reused in July 2014 for 7.38.0] */
521 CURLE_OBSOLETE20, /* 20 - NOT USED */
522 CURLE_QUOTE_ERROR, /* 21 - quote command failure */
525 CURLE_OBSOLETE24, /* 24 - NOT USED */
526 CURLE_UPLOAD_FAILED, /* 25 - failed upload "command" */
527 CURLE_READ_ERROR, /* 26 - couldn't open/read from file */
529 CURLE_OPERATION_TIMEDOUT, /* 28 - the timeout time was reached */
530 CURLE_OBSOLETE29, /* 29 - NOT USED */
531 CURLE_FTP_PORT_FAILED, /* 30 - FTP PORT operation failed */
532 CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
533 CURLE_OBSOLETE32, /* 32 - NOT USED */
534 CURLE_RANGE_ERROR, /* 33 - RANGE "command" didn't work */
536 CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
537 CURLE_BAD_DOWNLOAD_RESUME, /* 36 - couldn't resume download */
541 CURLE_OBSOLETE40, /* 40 - NOT USED */
542 CURLE_FUNCTION_NOT_FOUND, /* 41 - NOT USED starting with 7.53.0 */
545 CURLE_OBSOLETE44, /* 44 - NOT USED */
546 CURLE_INTERFACE_FAILED, /* 45 - CURLOPT_INTERFACE failed */
547 CURLE_OBSOLETE46, /* 46 - NOT USED */
548 CURLE_TOO_MANY_REDIRECTS, /* 47 - catch endless re-direct loops */
549 CURLE_UNKNOWN_OPTION, /* 48 - User specified an unknown option */
550 CURLE_SETOPT_OPTION_SYNTAX, /* 49 - Malformed setopt option */
551 CURLE_OBSOLETE50, /* 50 - NOT USED */
552 CURLE_OBSOLETE51, /* 51 - NOT USED */
553 CURLE_GOT_NOTHING, /* 52 - when this is a specific error */
554 CURLE_SSL_ENGINE_NOTFOUND, /* 53 - SSL crypto engine not found */
555 CURLE_SSL_ENGINE_SETFAILED, /* 54 - can not set SSL crypto engine as
556 default */
557 CURLE_SEND_ERROR, /* 55 - failed sending network data */
558 CURLE_RECV_ERROR, /* 56 - failure in receiving network data */
559 CURLE_OBSOLETE57, /* 57 - NOT IN USE */
560 CURLE_SSL_CERTPROBLEM, /* 58 - problem with the local certificate */
561 CURLE_SSL_CIPHER, /* 59 - couldn't use specified cipher */
562 CURLE_PEER_FAILED_VERIFICATION, /* 60 - peer's certificate or fingerprint
563 wasn't verified fine */
564 CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized/bad encoding */
565 CURLE_OBSOLETE62, /* 62 - NOT IN USE since 7.82.0 */
566 CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */
567 CURLE_USE_SSL_FAILED, /* 64 - Requested FTP SSL level failed */
568 CURLE_SEND_FAIL_REWIND, /* 65 - Sending the data requires a rewind
569 that failed */
570 CURLE_SSL_ENGINE_INITFAILED, /* 66 - failed to initialise ENGINE */
571 CURLE_LOGIN_DENIED, /* 67 - user, password or similar was not
572 accepted and we failed to login */
573 CURLE_TFTP_NOTFOUND, /* 68 - file not found on server */
574 CURLE_TFTP_PERM, /* 69 - permission problem on server */
575 CURLE_REMOTE_DISK_FULL, /* 70 - out of disk space on server */
576 CURLE_TFTP_ILLEGAL, /* 71 - Illegal TFTP operation */
577 CURLE_TFTP_UNKNOWNID, /* 72 - Unknown transfer ID */
578 CURLE_REMOTE_FILE_EXISTS, /* 73 - File already exists */
579 CURLE_TFTP_NOSUCHUSER, /* 74 - No such user */
580 CURLE_CONV_FAILED, /* 75 - conversion failed */
581 CURLE_OBSOLETE76, /* 76 - NOT IN USE since 7.82.0 */
582 CURLE_SSL_CACERT_BADFILE, /* 77 - could not load CACERT file, missing
583 or wrong format */
584 CURLE_REMOTE_FILE_NOT_FOUND, /* 78 - remote file not found */
585 CURLE_SSH, /* 79 - error from the SSH layer, somewhat
586 generic so the error message will be of
587 interest when this has happened */
588
589 CURLE_SSL_SHUTDOWN_FAILED, /* 80 - Failed to shut down the SSL
590 connection */
591 CURLE_AGAIN, /* 81 - socket is not ready for send/recv,
592 wait till it's ready and try again (Added
593 in 7.18.2) */
594 CURLE_SSL_CRL_BADFILE, /* 82 - could not load CRL file, missing or
595 wrong format (Added in 7.19.0) */
596 CURLE_SSL_ISSUER_ERROR, /* 83 - Issuer check failed. (Added in
597 7.19.0) */
598 CURLE_FTP_PRET_FAILED, /* 84 - a PRET command failed */
599 CURLE_RTSP_CSEQ_ERROR, /* 85 - mismatch of RTSP CSeq numbers */
600 CURLE_RTSP_SESSION_ERROR, /* 86 - mismatch of RTSP Session Ids */
601 CURLE_FTP_BAD_FILE_LIST, /* 87 - unable to parse FTP file list */
602 CURLE_CHUNK_FAILED, /* 88 - chunk callback reported error */
603 CURLE_NO_CONNECTION_AVAILABLE, /* 89 - No connection available, the
604 session will be queued */
605 CURLE_SSL_PINNEDPUBKEYNOTMATCH, /* 90 - specified pinned public key did not
606 match */
607 CURLE_SSL_INVALIDCERTSTATUS, /* 91 - invalid certificate status */
608 CURLE_HTTP2_STREAM, /* 92 - stream error in HTTP/2 framing layer
609 */
610 CURLE_RECURSIVE_API_CALL, /* 93 - an api function was called from
611 inside a callback */
612 CURLE_AUTH_ERROR, /* 94 - an authentication function returned an
613 error */
614 CURLE_HTTP3, /* 95 - An HTTP/3 layer problem */
615 CURLE_QUIC_CONNECT_ERROR, /* 96 - QUIC connection error */
616 CURLE_PROXY, /* 97 - proxy handshake error */
617 CURLE_SSL_CLIENTCERT, /* 98 - client-side certificate required */
618 CURLE_UNRECOVERABLE_POLL, /* 99 - poll/select returned fatal error */
619 CURL_LAST /* never use! */
620} CURLcode;
621
622#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
623 the obsolete stuff removed! */
625/* Previously obsolete error code re-used in 7.38.0 */
626#define CURLE_OBSOLETE16 CURLE_HTTP2
628/* Previously obsolete error codes re-used in 7.24.0 */
629#define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED
630#define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT
632/* compatibility with older names */
633#define CURLOPT_ENCODING CURLOPT_ACCEPT_ENCODING
634#define CURLE_FTP_WEIRD_SERVER_REPLY CURLE_WEIRD_SERVER_REPLY
636/* The following were added in 7.62.0 */
637#define CURLE_SSL_CACERT CURLE_PEER_FAILED_VERIFICATION
639/* The following were added in 7.21.5, April 2011 */
640#define CURLE_UNKNOWN_TELNET_OPTION CURLE_UNKNOWN_OPTION
642/* Added for 7.78.0 */
643#define CURLE_TELNET_OPTION_SYNTAX CURLE_SETOPT_OPTION_SYNTAX
644
645/* The following were added in 7.17.1 */
646/* These are scheduled to disappear by 2009 */
647#define CURLE_SSL_PEER_CERTIFICATE CURLE_PEER_FAILED_VERIFICATION
648
649/* The following were added in 7.17.0 */
650/* These are scheduled to disappear by 2009 */
651#define CURLE_OBSOLETE CURLE_OBSOLETE50 /* no one should be using this! */
652#define CURLE_BAD_PASSWORD_ENTERED CURLE_OBSOLETE46
653#define CURLE_BAD_CALLING_ORDER CURLE_OBSOLETE44
654#define CURLE_FTP_USER_PASSWORD_INCORRECT CURLE_OBSOLETE10
655#define CURLE_FTP_CANT_RECONNECT CURLE_OBSOLETE16
656#define CURLE_FTP_COULDNT_GET_SIZE CURLE_OBSOLETE32
657#define CURLE_FTP_COULDNT_SET_ASCII CURLE_OBSOLETE29
658#define CURLE_FTP_WEIRD_USER_REPLY CURLE_OBSOLETE12
659#define CURLE_FTP_WRITE_ERROR CURLE_OBSOLETE20
660#define CURLE_LIBRARY_NOT_FOUND CURLE_OBSOLETE40
661#define CURLE_MALFORMAT_USER CURLE_OBSOLETE24
662#define CURLE_SHARE_IN_USE CURLE_OBSOLETE57
663#define CURLE_URL_MALFORMAT_USER CURLE_NOT_BUILT_IN
665#define CURLE_FTP_ACCESS_DENIED CURLE_REMOTE_ACCESS_DENIED
666#define CURLE_FTP_COULDNT_SET_BINARY CURLE_FTP_COULDNT_SET_TYPE
667#define CURLE_FTP_QUOTE_ERROR CURLE_QUOTE_ERROR
668#define CURLE_TFTP_DISKFULL CURLE_REMOTE_DISK_FULL
669#define CURLE_TFTP_EXISTS CURLE_REMOTE_FILE_EXISTS
670#define CURLE_HTTP_RANGE_ERROR CURLE_RANGE_ERROR
671#define CURLE_FTP_SSL_FAILED CURLE_USE_SSL_FAILED
672
673/* The following were added earlier */
675#define CURLE_OPERATION_TIMEOUTED CURLE_OPERATION_TIMEDOUT
676#define CURLE_HTTP_NOT_FOUND CURLE_HTTP_RETURNED_ERROR
677#define CURLE_HTTP_PORT_FAILED CURLE_INTERFACE_FAILED
678#define CURLE_FTP_COULDNT_STOR_FILE CURLE_UPLOAD_FAILED
679#define CURLE_FTP_PARTIAL_FILE CURLE_PARTIAL_FILE
680#define CURLE_FTP_BAD_DOWNLOAD_RESUME CURLE_BAD_DOWNLOAD_RESUME
681#define CURLE_LDAP_INVALID_URL CURLE_OBSOLETE62
682#define CURLE_CONV_REQD CURLE_OBSOLETE76
683
684/* This was the error code 50 in 7.7.3 and a few earlier versions, this
685 is no longer used by libcurl but is instead #defined here only to not
686 make programs break */
687#define CURLE_ALREADY_COMPLETE 99999
689/* Provide defines for really old option names */
690#define CURLOPT_FILE CURLOPT_WRITEDATA /* name changed in 7.9.7 */
691#define CURLOPT_INFILE CURLOPT_READDATA /* name changed in 7.9.7 */
692#define CURLOPT_WRITEHEADER CURLOPT_HEADERDATA
693
694/* Since long deprecated options with no code in the lib that does anything
695 with them. */
696#define CURLOPT_WRITEINFO CURLOPT_OBSOLETE40
697#define CURLOPT_CLOSEPOLICY CURLOPT_OBSOLETE72
698
699#endif
701/*
702 * Proxy error codes. Returned in CURLINFO_PROXY_ERROR if CURLE_PROXY was
703 * return for the transfers.
704 */
705typedef enum {
740 CURLPX_LAST /* never use */
743/* This prototype applies to all conversion callbacks */
744typedef CURLcode (*curl_conv_callback)(char *buffer, size_t length);
745
746typedef CURLcode (*curl_ssl_ctx_callback)(CURL *curl, /* easy handle */
747 void *ssl_ctx, /* actually an OpenSSL
748 or WolfSSL SSL_CTX,
749 or an mbedTLS
750 mbedtls_ssl_config */
751 void *userptr);
753typedef enum {
754 CURLPROXY_HTTP = 0, /* added in 7.10, new in 7.19.4 default is to use
755 CONNECT HTTP/1.1 */
756 CURLPROXY_HTTP_1_0 = 1, /* added in 7.19.4, force to use CONNECT
757 HTTP/1.0 */
758 CURLPROXY_HTTPS = 2, /* added in 7.52.0 */
759 CURLPROXY_SOCKS4 = 4, /* support added in 7.15.2, enum existed already
760 in 7.10 */
761 CURLPROXY_SOCKS5 = 5, /* added in 7.10 */
762 CURLPROXY_SOCKS4A = 6, /* added in 7.18.0 */
763 CURLPROXY_SOCKS5_HOSTNAME = 7 /* Use the SOCKS5 protocol but pass along the
764 host name rather than the IP address. added
765 in 7.18.0 */
766} curl_proxytype; /* this enum was added in 7.10 */
767
768/*
769 * Bitmasks for CURLOPT_HTTPAUTH and CURLOPT_PROXYAUTH options:
770 *
771 * CURLAUTH_NONE - No HTTP authentication
772 * CURLAUTH_BASIC - HTTP Basic authentication (default)
773 * CURLAUTH_DIGEST - HTTP Digest authentication
774 * CURLAUTH_NEGOTIATE - HTTP Negotiate (SPNEGO) authentication
775 * CURLAUTH_GSSNEGOTIATE - Alias for CURLAUTH_NEGOTIATE (deprecated)
776 * CURLAUTH_NTLM - HTTP NTLM authentication
777 * CURLAUTH_DIGEST_IE - HTTP Digest authentication with IE flavour
778 * CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
779 * CURLAUTH_BEARER - HTTP Bearer token authentication
780 * CURLAUTH_ONLY - Use together with a single other type to force no
781 * authentication or just that single type
782 * CURLAUTH_ANY - All fine types set
783 * CURLAUTH_ANYSAFE - All fine types except Basic
784 */
786#define CURLAUTH_NONE ((unsigned long)0)
787#define CURLAUTH_BASIC (((unsigned long)1)<<0)
788#define CURLAUTH_DIGEST (((unsigned long)1)<<1)
789#define CURLAUTH_NEGOTIATE (((unsigned long)1)<<2)
790/* Deprecated since the advent of CURLAUTH_NEGOTIATE */
791#define CURLAUTH_GSSNEGOTIATE CURLAUTH_NEGOTIATE
792/* Used for CURLOPT_SOCKS5_AUTH to stay terminologically correct */
793#define CURLAUTH_GSSAPI CURLAUTH_NEGOTIATE
794#define CURLAUTH_NTLM (((unsigned long)1)<<3)
795#define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4)
796#define CURLAUTH_NTLM_WB (((unsigned long)1)<<5)
797#define CURLAUTH_BEARER (((unsigned long)1)<<6)
798#define CURLAUTH_AWS_SIGV4 (((unsigned long)1)<<7)
799#define CURLAUTH_ONLY (((unsigned long)1)<<31)
800#define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE)
801#define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
803#define CURLSSH_AUTH_ANY ~0 /* all types supported by the server */
804#define CURLSSH_AUTH_NONE 0 /* none allowed, silly but complete */
805#define CURLSSH_AUTH_PUBLICKEY (1<<0) /* public/private key files */
806#define CURLSSH_AUTH_PASSWORD (1<<1) /* password */
807#define CURLSSH_AUTH_HOST (1<<2) /* host key files */
808#define CURLSSH_AUTH_KEYBOARD (1<<3) /* keyboard interactive */
809#define CURLSSH_AUTH_AGENT (1<<4) /* agent (ssh-agent, pageant...) */
810#define CURLSSH_AUTH_GSSAPI (1<<5) /* gssapi (kerberos, ...) */
811#define CURLSSH_AUTH_DEFAULT CURLSSH_AUTH_ANY
813#define CURLGSSAPI_DELEGATION_NONE 0 /* no delegation (default) */
814#define CURLGSSAPI_DELEGATION_POLICY_FLAG (1<<0) /* if permitted by policy */
815#define CURLGSSAPI_DELEGATION_FLAG (1<<1) /* delegate always */
816
817#define CURL_ERROR_SIZE 256
828struct curl_khkey {
829 const char *key; /* points to a null-terminated string encoded with base64
830 if len is zero, otherwise to the "raw" data */
831 size_t len;
832 enum curl_khtype keytype;
833};
834
835/* this is the set of return values expected from the curl_sshkeycallback
836 callback */
840 CURLKHSTAT_REJECT, /* reject the connection, return an error */
841 CURLKHSTAT_DEFER, /* do not accept it, but we can't answer right now so
842 this causes a CURLE_DEFER error but otherwise the
843 connection will be left intact etc */
844 CURLKHSTAT_FINE_REPLACE, /* accept and replace the wrong key*/
845 CURLKHSTAT_LAST /* not for use, only a marker for last-in-list */
846};
848/* this is the set of status codes pass in to the callback */
850 CURLKHMATCH_OK, /* match */
851 CURLKHMATCH_MISMATCH, /* host found, key mismatch! */
852 CURLKHMATCH_MISSING, /* no matching host/key found */
853 CURLKHMATCH_LAST /* not for use, only a marker for last-in-list */
855
856typedef int
857 (*curl_sshkeycallback) (CURL *easy, /* easy handle */
858 const struct curl_khkey *knownkey, /* known */
859 const struct curl_khkey *foundkey, /* found */
860 enum curl_khmatch, /* libcurl's view on the keys */
861 void *clientp); /* custom pointer passed with */
862 /* CURLOPT_SSH_KEYDATA */
863
864typedef int
865 (*curl_sshhostkeycallback) (void *clientp,/* custom pointer passed*/
866 /* with CURLOPT_SSH_HOSTKEYDATA */
867 int keytype, /* CURLKHTYPE */
868 const char *key, /*hostkey to check*/
869 size_t keylen); /*length of the key*/
870 /*return CURLE_OK to accept*/
871 /*or something else to refuse*/
872
874/* parameter for the CURLOPT_USE_SSL option */
875typedef enum {
876 CURLUSESSL_NONE, /* do not attempt to use SSL */
877 CURLUSESSL_TRY, /* try using SSL, proceed anyway otherwise */
878 CURLUSESSL_CONTROL, /* SSL for the control connection or fail */
879 CURLUSESSL_ALL, /* SSL for all communication or fail */
880 CURLUSESSL_LAST /* not an option, never use */
882
883/* Definition of bits for the CURLOPT_SSL_OPTIONS argument: */
884
885/* - ALLOW_BEAST tells libcurl to allow the BEAST SSL vulnerability in the
886 name of improving interoperability with older servers. Some SSL libraries
887 have introduced work-arounds for this flaw but those work-arounds sometimes
888 make the SSL communication fail. To regain functionality with those broken
889 servers, a user can this way allow the vulnerability back. */
890#define CURLSSLOPT_ALLOW_BEAST (1<<0)
891
892/* - NO_REVOKE tells libcurl to disable certificate revocation checks for those
893 SSL backends where such behavior is present. */
894#define CURLSSLOPT_NO_REVOKE (1<<1)
895
896/* - NO_PARTIALCHAIN tells libcurl to *NOT* accept a partial certificate chain
897 if possible. The OpenSSL backend has this ability. */
898#define CURLSSLOPT_NO_PARTIALCHAIN (1<<2)
899
900/* - REVOKE_BEST_EFFORT tells libcurl to ignore certificate revocation offline
901 checks and ignore missing revocation list for those SSL backends where such
902 behavior is present. */
903#define CURLSSLOPT_REVOKE_BEST_EFFORT (1<<3)
904
905/* - CURLSSLOPT_NATIVE_CA tells libcurl to use standard certificate store of
906 operating system. Currently implemented under MS-Windows. */
907#define CURLSSLOPT_NATIVE_CA (1<<4)
908
909/* - CURLSSLOPT_AUTO_CLIENT_CERT tells libcurl to automatically locate and use
910 a client certificate for authentication. (Schannel) */
911#define CURLSSLOPT_AUTO_CLIENT_CERT (1<<5)
912
913/* The default connection attempt delay in milliseconds for happy eyeballs.
914 CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.3 and happy-eyeballs-timeout-ms.d document
915 this value, keep them in sync. */
916#define CURL_HET_DEFAULT 200L
918/* The default connection upkeep interval in milliseconds. */
919#define CURL_UPKEEP_INTERVAL_DEFAULT 60000L
920
921#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
922 the obsolete stuff removed! */
923
924/* Backwards compatibility with older names */
925/* These are scheduled to disappear by 2009 */
927#define CURLFTPSSL_NONE CURLUSESSL_NONE
928#define CURLFTPSSL_TRY CURLUSESSL_TRY
929#define CURLFTPSSL_CONTROL CURLUSESSL_CONTROL
930#define CURLFTPSSL_ALL CURLUSESSL_ALL
931#define CURLFTPSSL_LAST CURLUSESSL_LAST
932#define curl_ftpssl curl_usessl
933#endif
935/* parameter for the CURLOPT_FTP_SSL_CCC option */
936typedef enum {
937 CURLFTPSSL_CCC_NONE, /* do not send CCC */
938 CURLFTPSSL_CCC_PASSIVE, /* Let the server initiate the shutdown */
939 CURLFTPSSL_CCC_ACTIVE, /* Initiate the shutdown */
940 CURLFTPSSL_CCC_LAST /* not an option, never use */
943/* parameter for the CURLOPT_FTPSSLAUTH option */
944typedef enum {
945 CURLFTPAUTH_DEFAULT, /* let libcurl decide */
946 CURLFTPAUTH_SSL, /* use "AUTH SSL" */
947 CURLFTPAUTH_TLS, /* use "AUTH TLS" */
948 CURLFTPAUTH_LAST /* not an option, never use */
951/* parameter for the CURLOPT_FTP_CREATE_MISSING_DIRS option */
952typedef enum {
953 CURLFTP_CREATE_DIR_NONE, /* do NOT create missing dirs! */
954 CURLFTP_CREATE_DIR, /* (FTP/SFTP) if CWD fails, try MKD and then CWD
955 again if MKD succeeded, for SFTP this does
956 similar magic */
957 CURLFTP_CREATE_DIR_RETRY, /* (FTP only) if CWD fails, try MKD and then CWD
958 again even if MKD failed! */
959 CURLFTP_CREATE_DIR_LAST /* not an option, never use */
962/* parameter for the CURLOPT_FTP_FILEMETHOD option */
963typedef enum {
964 CURLFTPMETHOD_DEFAULT, /* let libcurl pick */
965 CURLFTPMETHOD_MULTICWD, /* single CWD operation for each path part */
966 CURLFTPMETHOD_NOCWD, /* no CWD at all */
967 CURLFTPMETHOD_SINGLECWD, /* one CWD to full dir, then work on file */
968 CURLFTPMETHOD_LAST /* not an option, never use */
971/* bitmask defines for CURLOPT_HEADEROPT */
972#define CURLHEADER_UNIFIED 0
973#define CURLHEADER_SEPARATE (1<<0)
975/* CURLALTSVC_* are bits for the CURLOPT_ALTSVC_CTRL option */
976#define CURLALTSVC_READONLYFILE (1<<2)
977#define CURLALTSVC_H1 (1<<3)
978#define CURLALTSVC_H2 (1<<4)
979#define CURLALTSVC_H3 (1<<5)
983 char *name;
984 size_t namelen;
985 unsigned int includeSubDomains:1;
986 char expire[18]; /* YYYYMMDD HH:MM:SS [null-terminated] */
990 size_t index; /* the provided entry's "index" or count */
991 size_t total; /* total number of entries to save */
994typedef enum {
999
1000typedef CURLSTScode (*curl_hstsread_callback)(CURL *easy,
1002 void *userp);
1004 struct curl_hstsentry *e,
1005 struct curl_index *i,
1006 void *userp);
1008/* CURLHSTS_* are bits for the CURLOPT_HSTS option */
1009#define CURLHSTS_ENABLE (long)(1<<0)
1010#define CURLHSTS_READONLYFILE (long)(1<<1)
1012/* CURLPROTO_ defines are for the CURLOPT_*PROTOCOLS options */
1013#define CURLPROTO_HTTP (1<<0)
1014#define CURLPROTO_HTTPS (1<<1)
1015#define CURLPROTO_FTP (1<<2)
1016#define CURLPROTO_FTPS (1<<3)
1017#define CURLPROTO_SCP (1<<4)
1018#define CURLPROTO_SFTP (1<<5)
1019#define CURLPROTO_TELNET (1<<6)
1020#define CURLPROTO_LDAP (1<<7)
1021#define CURLPROTO_LDAPS (1<<8)
1022#define CURLPROTO_DICT (1<<9)
1023#define CURLPROTO_FILE (1<<10)
1024#define CURLPROTO_TFTP (1<<11)
1025#define CURLPROTO_IMAP (1<<12)
1026#define CURLPROTO_IMAPS (1<<13)
1027#define CURLPROTO_POP3 (1<<14)
1028#define CURLPROTO_POP3S (1<<15)
1029#define CURLPROTO_SMTP (1<<16)
1030#define CURLPROTO_SMTPS (1<<17)
1031#define CURLPROTO_RTSP (1<<18)
1032#define CURLPROTO_RTMP (1<<19)
1033#define CURLPROTO_RTMPT (1<<20)
1034#define CURLPROTO_RTMPE (1<<21)
1035#define CURLPROTO_RTMPTE (1<<22)
1036#define CURLPROTO_RTMPS (1<<23)
1037#define CURLPROTO_RTMPTS (1<<24)
1038#define CURLPROTO_GOPHER (1<<25)
1039#define CURLPROTO_SMB (1<<26)
1040#define CURLPROTO_SMBS (1<<27)
1041#define CURLPROTO_MQTT (1<<28)
1042#define CURLPROTO_GOPHERS (1<<29)
1043#define CURLPROTO_ALL (~0) /* enable everything */
1044
1045/* long may be 32 or 64 bits, but we should never depend on anything else
1046 but 32 */
1047#define CURLOPTTYPE_LONG 0
1048#define CURLOPTTYPE_OBJECTPOINT 10000
1049#define CURLOPTTYPE_FUNCTIONPOINT 20000
1050#define CURLOPTTYPE_OFF_T 30000
1051#define CURLOPTTYPE_BLOB 40000
1052
1053/* *STRINGPOINT is an alias for OBJECTPOINT to allow tools to extract the
1054 string options from the header file */
1056
1057#define CURLOPT(na,t,nu) na = t + nu
1058
1059/* CURLOPT aliases that make no run-time difference */
1061/* 'char *' argument to a string with a trailing zero */
1062#define CURLOPTTYPE_STRINGPOINT CURLOPTTYPE_OBJECTPOINT
1064/* 'struct curl_slist *' argument */
1065#define CURLOPTTYPE_SLISTPOINT CURLOPTTYPE_OBJECTPOINT
1067/* 'void *' argument passed untouched to callback */
1068#define CURLOPTTYPE_CBPOINT CURLOPTTYPE_OBJECTPOINT
1070/* 'long' argument with a set of values/bitmask */
1071#define CURLOPTTYPE_VALUES CURLOPTTYPE_LONG
1072
1073/*
1074 * All CURLOPT_* values.
1076
1077typedef enum {
1078 /* This is the FILE * or void * the regular output should be written to. */
1079 CURLOPT(CURLOPT_WRITEDATA, CURLOPTTYPE_CBPOINT, 1),
1080
1081 /* The full URL to get/put */
1082 CURLOPT(CURLOPT_URL, CURLOPTTYPE_STRINGPOINT, 2),
1083
1084 /* Port number to connect to, if other than default. */
1085 CURLOPT(CURLOPT_PORT, CURLOPTTYPE_LONG, 3),
1086
1087 /* Name of proxy to use. */
1088 CURLOPT(CURLOPT_PROXY, CURLOPTTYPE_STRINGPOINT, 4),
1089
1090 /* "user:password;options" to use when fetching. */
1091 CURLOPT(CURLOPT_USERPWD, CURLOPTTYPE_STRINGPOINT, 5),
1092
1093 /* "user:password" to use with proxy. */
1094 CURLOPT(CURLOPT_PROXYUSERPWD, CURLOPTTYPE_STRINGPOINT, 6),
1095
1096 /* Range to get, specified as an ASCII string. */
1097 CURLOPT(CURLOPT_RANGE, CURLOPTTYPE_STRINGPOINT, 7),
1098
1099 /* not used */
1100
1101 /* Specified file stream to upload from (use as input): */
1102 CURLOPT(CURLOPT_READDATA, CURLOPTTYPE_CBPOINT, 9),
1103
1104 /* Buffer to receive error messages in, must be at least CURL_ERROR_SIZE
1105 * bytes big. */
1106 CURLOPT(CURLOPT_ERRORBUFFER, CURLOPTTYPE_OBJECTPOINT, 10),
1107
1108 /* Function that will be called to store the output (instead of fwrite). The
1109 * parameters will use fwrite() syntax, make sure to follow them. */
1110 CURLOPT(CURLOPT_WRITEFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 11),
1111
1112 /* Function that will be called to read the input (instead of fread). The
1113 * parameters will use fread() syntax, make sure to follow them. */
1114 CURLOPT(CURLOPT_READFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 12),
1115
1116 /* Time-out the read operation after this amount of seconds */
1117 CURLOPT(CURLOPT_TIMEOUT, CURLOPTTYPE_LONG, 13),
1118
1119 /* If the CURLOPT_INFILE is used, this can be used to inform libcurl about
1120 * how large the file being sent really is. That allows better error
1121 * checking and better verifies that the upload was successful. -1 means
1122 * unknown size.
1123 *
1124 * For large file support, there is also a _LARGE version of the key
1125 * which takes an off_t type, allowing platforms with larger off_t
1126 * sizes to handle larger files. See below for INFILESIZE_LARGE.
1127 */
1128 CURLOPT(CURLOPT_INFILESIZE, CURLOPTTYPE_LONG, 14),
1129
1130 /* POST static input fields. */
1131 CURLOPT(CURLOPT_POSTFIELDS, CURLOPTTYPE_OBJECTPOINT, 15),
1132
1133 /* Set the referrer page (needed by some CGIs) */
1134 CURLOPT(CURLOPT_REFERER, CURLOPTTYPE_STRINGPOINT, 16),
1135
1136 /* Set the FTP PORT string (interface name, named or numerical IP address)
1137 Use i.e '-' to use default address. */
1138 CURLOPT(CURLOPT_FTPPORT, CURLOPTTYPE_STRINGPOINT, 17),
1139
1140 /* Set the User-Agent string (examined by some CGIs) */
1141 CURLOPT(CURLOPT_USERAGENT, CURLOPTTYPE_STRINGPOINT, 18),
1142
1143 /* If the download receives less than "low speed limit" bytes/second
1144 * during "low speed time" seconds, the operations is aborted.
1145 * You could i.e if you have a pretty high speed connection, abort if
1146 * it is less than 2000 bytes/sec during 20 seconds.
1147 */
1148
1149 /* Set the "low speed limit" */
1150 CURLOPT(CURLOPT_LOW_SPEED_LIMIT, CURLOPTTYPE_LONG, 19),
1151
1152 /* Set the "low speed time" */
1153 CURLOPT(CURLOPT_LOW_SPEED_TIME, CURLOPTTYPE_LONG, 20),
1154
1155 /* Set the continuation offset.
1156 *
1157 * Note there is also a _LARGE version of this key which uses
1158 * off_t types, allowing for large file offsets on platforms which
1159 * use larger-than-32-bit off_t's. Look below for RESUME_FROM_LARGE.
1160 */
1161 CURLOPT(CURLOPT_RESUME_FROM, CURLOPTTYPE_LONG, 21),
1162
1163 /* Set cookie in request: */
1164 CURLOPT(CURLOPT_COOKIE, CURLOPTTYPE_STRINGPOINT, 22),
1165
1166 /* This points to a linked list of headers, struct curl_slist kind. This
1167 list is also used for RTSP (in spite of its name) */
1168 CURLOPT(CURLOPT_HTTPHEADER, CURLOPTTYPE_SLISTPOINT, 23),
1169
1170 /* This points to a linked list of post entries, struct curl_httppost */
1171 CURLOPT(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24),
1172
1173 /* name of the file keeping your private SSL-certificate */
1174 CURLOPT(CURLOPT_SSLCERT, CURLOPTTYPE_STRINGPOINT, 25),
1175
1176 /* password for the SSL or SSH private key */
1177 CURLOPT(CURLOPT_KEYPASSWD, CURLOPTTYPE_STRINGPOINT, 26),
1178
1179 /* send TYPE parameter? */
1180 CURLOPT(CURLOPT_CRLF, CURLOPTTYPE_LONG, 27),
1181
1182 /* send linked-list of QUOTE commands */
1183 CURLOPT(CURLOPT_QUOTE, CURLOPTTYPE_SLISTPOINT, 28),
1184
1185 /* send FILE * or void * to store headers to, if you use a callback it
1186 is simply passed to the callback unmodified */
1187 CURLOPT(CURLOPT_HEADERDATA, CURLOPTTYPE_CBPOINT, 29),
1188
1189 /* point to a file to read the initial cookies from, also enables
1190 "cookie awareness" */
1191 CURLOPT(CURLOPT_COOKIEFILE, CURLOPTTYPE_STRINGPOINT, 31),
1192
1193 /* What version to specifically try to use.
1194 See CURL_SSLVERSION defines below. */
1195 CURLOPT(CURLOPT_SSLVERSION, CURLOPTTYPE_VALUES, 32),
1196
1197 /* What kind of HTTP time condition to use, see defines */
1198 CURLOPT(CURLOPT_TIMECONDITION, CURLOPTTYPE_VALUES, 33),
1199
1200 /* Time to use with the above condition. Specified in number of seconds
1201 since 1 Jan 1970 */
1202 CURLOPT(CURLOPT_TIMEVALUE, CURLOPTTYPE_LONG, 34),
1203
1204 /* 35 = OBSOLETE */
1205
1206 /* Custom request, for customizing the get command like
1207 HTTP: DELETE, TRACE and others
1208 FTP: to use a different list command
1209 */
1210 CURLOPT(CURLOPT_CUSTOMREQUEST, CURLOPTTYPE_STRINGPOINT, 36),
1211
1212 /* FILE handle to use instead of stderr */
1213 CURLOPT(CURLOPT_STDERR, CURLOPTTYPE_OBJECTPOINT, 37),
1214
1215 /* 38 is not used */
1216
1217 /* send linked-list of post-transfer QUOTE commands */
1218 CURLOPT(CURLOPT_POSTQUOTE, CURLOPTTYPE_SLISTPOINT, 39),
1219
1220 /* OBSOLETE, do not use! */
1221 CURLOPT(CURLOPT_OBSOLETE40, CURLOPTTYPE_OBJECTPOINT, 40),
1222
1223 /* talk a lot */
1224 CURLOPT(CURLOPT_VERBOSE, CURLOPTTYPE_LONG, 41),
1225
1226 /* throw the header out too */
1227 CURLOPT(CURLOPT_HEADER, CURLOPTTYPE_LONG, 42),
1228
1229 /* shut off the progress meter */
1230 CURLOPT(CURLOPT_NOPROGRESS, CURLOPTTYPE_LONG, 43),
1231
1232 /* use HEAD to get http document */
1233 CURLOPT(CURLOPT_NOBODY, CURLOPTTYPE_LONG, 44),
1234
1235 /* no output on http error codes >= 400 */
1236 CURLOPT(CURLOPT_FAILONERROR, CURLOPTTYPE_LONG, 45),
1237
1238 /* this is an upload */
1239 CURLOPT(CURLOPT_UPLOAD, CURLOPTTYPE_LONG, 46),
1240
1241 /* HTTP POST method */
1242 CURLOPT(CURLOPT_POST, CURLOPTTYPE_LONG, 47),
1243
1244 /* bare names when listing directories */
1245 CURLOPT(CURLOPT_DIRLISTONLY, CURLOPTTYPE_LONG, 48),
1246
1247 /* Append instead of overwrite on upload! */
1248 CURLOPT(CURLOPT_APPEND, CURLOPTTYPE_LONG, 50),
1249
1250 /* Specify whether to read the user+password from the .netrc or the URL.
1251 * This must be one of the CURL_NETRC_* enums below. */
1252 CURLOPT(CURLOPT_NETRC, CURLOPTTYPE_VALUES, 51),
1253
1254 /* use Location: Luke! */
1255 CURLOPT(CURLOPT_FOLLOWLOCATION, CURLOPTTYPE_LONG, 52),
1256
1257 /* transfer data in text/ASCII format */
1258 CURLOPT(CURLOPT_TRANSFERTEXT, CURLOPTTYPE_LONG, 53),
1259
1260 /* HTTP PUT */
1261 CURLOPT(CURLOPT_PUT, CURLOPTTYPE_LONG, 54),
1262
1263 /* 55 = OBSOLETE */
1264
1265 /* DEPRECATED
1266 * Function that will be called instead of the internal progress display
1267 * function. This function should be defined as the curl_progress_callback
1268 * prototype defines. */
1269 CURLOPT(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56),
1270
1271 /* Data passed to the CURLOPT_PROGRESSFUNCTION and CURLOPT_XFERINFOFUNCTION
1272 callbacks */
1273 CURLOPT(CURLOPT_XFERINFODATA, CURLOPTTYPE_CBPOINT, 57),
1274#define CURLOPT_PROGRESSDATA CURLOPT_XFERINFODATA
1275
1276 /* We want the referrer field set automatically when following locations */
1277 CURLOPT(CURLOPT_AUTOREFERER, CURLOPTTYPE_LONG, 58),
1278
1279 /* Port of the proxy, can be set in the proxy string as well with:
1280 "[host]:[port]" */
1281 CURLOPT(CURLOPT_PROXYPORT, CURLOPTTYPE_LONG, 59),
1282
1283 /* size of the POST input data, if strlen() is not good to use */
1284 CURLOPT(CURLOPT_POSTFIELDSIZE, CURLOPTTYPE_LONG, 60),
1285
1286 /* tunnel non-http operations through a HTTP proxy */
1287 CURLOPT(CURLOPT_HTTPPROXYTUNNEL, CURLOPTTYPE_LONG, 61),
1288
1289 /* Set the interface string to use as outgoing network interface */
1290 CURLOPT(CURLOPT_INTERFACE, CURLOPTTYPE_STRINGPOINT, 62),
1291
1292 /* Set the krb4/5 security level, this also enables krb4/5 awareness. This
1293 * is a string, 'clear', 'safe', 'confidential' or 'private'. If the string
1294 * is set but doesn't match one of these, 'private' will be used. */
1295 CURLOPT(CURLOPT_KRBLEVEL, CURLOPTTYPE_STRINGPOINT, 63),
1296
1297 /* Set if we should verify the peer in ssl handshake, set 1 to verify. */
1298 CURLOPT(CURLOPT_SSL_VERIFYPEER, CURLOPTTYPE_LONG, 64),
1299
1300 /* The CApath or CAfile used to validate the peer certificate
1301 this option is used only if SSL_VERIFYPEER is true */
1302 CURLOPT(CURLOPT_CAINFO, CURLOPTTYPE_STRINGPOINT, 65),
1303
1304 /* 66 = OBSOLETE */
1305 /* 67 = OBSOLETE */
1306
1307 /* Maximum number of http redirects to follow */
1308 CURLOPT(CURLOPT_MAXREDIRS, CURLOPTTYPE_LONG, 68),
1309
1310 /* Pass a long set to 1 to get the date of the requested document (if
1311 possible)! Pass a zero to shut it off. */
1312 CURLOPT(CURLOPT_FILETIME, CURLOPTTYPE_LONG, 69),
1313
1314 /* This points to a linked list of telnet options */
1315 CURLOPT(CURLOPT_TELNETOPTIONS, CURLOPTTYPE_SLISTPOINT, 70),
1316
1317 /* Max amount of cached alive connections */
1318 CURLOPT(CURLOPT_MAXCONNECTS, CURLOPTTYPE_LONG, 71),
1319
1320 /* OBSOLETE, do not use! */
1321 CURLOPT(CURLOPT_OBSOLETE72, CURLOPTTYPE_LONG, 72),
1322
1323 /* 73 = OBSOLETE */
1324
1325 /* Set to explicitly use a new connection for the upcoming transfer.
1326 Do not use this unless you're absolutely sure of this, as it makes the
1327 operation slower and is less friendly for the network. */
1328 CURLOPT(CURLOPT_FRESH_CONNECT, CURLOPTTYPE_LONG, 74),
1329
1330 /* Set to explicitly forbid the upcoming transfer's connection to be re-used
1331 when done. Do not use this unless you're absolutely sure of this, as it
1332 makes the operation slower and is less friendly for the network. */
1333 CURLOPT(CURLOPT_FORBID_REUSE, CURLOPTTYPE_LONG, 75),
1334
1335 /* Set to a file name that contains random data for libcurl to use to
1336 seed the random engine when doing SSL connects. */
1337 CURLOPT(CURLOPT_RANDOM_FILE, CURLOPTTYPE_STRINGPOINT, 76),
1338
1339 /* Set to the Entropy Gathering Daemon socket pathname */
1340 CURLOPT(CURLOPT_EGDSOCKET, CURLOPTTYPE_STRINGPOINT, 77),
1341
1342 /* Time-out connect operations after this amount of seconds, if connects are
1343 OK within this time, then fine... This only aborts the connect phase. */
1344 CURLOPT(CURLOPT_CONNECTTIMEOUT, CURLOPTTYPE_LONG, 78),
1345
1346 /* Function that will be called to store headers (instead of fwrite). The
1347 * parameters will use fwrite() syntax, make sure to follow them. */
1348 CURLOPT(CURLOPT_HEADERFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 79),
1349
1350 /* Set this to force the HTTP request to get back to GET. Only really usable
1351 if POST, PUT or a custom request have been used first.
1352 */
1353 CURLOPT(CURLOPT_HTTPGET, CURLOPTTYPE_LONG, 80),
1354
1355 /* Set if we should verify the Common name from the peer certificate in ssl
1356 * handshake, set 1 to check existence, 2 to ensure that it matches the
1357 * provided hostname. */
1358 CURLOPT(CURLOPT_SSL_VERIFYHOST, CURLOPTTYPE_LONG, 81),
1359
1360 /* Specify which file name to write all known cookies in after completed
1361 operation. Set file name to "-" (dash) to make it go to stdout. */
1362 CURLOPT(CURLOPT_COOKIEJAR, CURLOPTTYPE_STRINGPOINT, 82),
1363
1364 /* Specify which SSL ciphers to use */
1365 CURLOPT(CURLOPT_SSL_CIPHER_LIST, CURLOPTTYPE_STRINGPOINT, 83),
1366
1367 /* Specify which HTTP version to use! This must be set to one of the
1368 CURL_HTTP_VERSION* enums set below. */
1369 CURLOPT(CURLOPT_HTTP_VERSION, CURLOPTTYPE_VALUES, 84),
1370
1371 /* Specifically switch on or off the FTP engine's use of the EPSV command. By
1372 default, that one will always be attempted before the more traditional
1373 PASV command. */
1374 CURLOPT(CURLOPT_FTP_USE_EPSV, CURLOPTTYPE_LONG, 85),
1375
1376 /* type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") */
1377 CURLOPT(CURLOPT_SSLCERTTYPE, CURLOPTTYPE_STRINGPOINT, 86),
1378
1379 /* name of the file keeping your private SSL-key */
1380 CURLOPT(CURLOPT_SSLKEY, CURLOPTTYPE_STRINGPOINT, 87),
1381
1382 /* type of the file keeping your private SSL-key ("DER", "PEM", "ENG") */
1383 CURLOPT(CURLOPT_SSLKEYTYPE, CURLOPTTYPE_STRINGPOINT, 88),
1384
1385 /* crypto engine for the SSL-sub system */
1386 CURLOPT(CURLOPT_SSLENGINE, CURLOPTTYPE_STRINGPOINT, 89),
1387
1388 /* set the crypto engine for the SSL-sub system as default
1389 the param has no meaning...
1390 */
1391 CURLOPT(CURLOPT_SSLENGINE_DEFAULT, CURLOPTTYPE_LONG, 90),
1392
1393 /* Non-zero value means to use the global dns cache */
1394 /* DEPRECATED, do not use! */
1395 CURLOPT(CURLOPT_DNS_USE_GLOBAL_CACHE, CURLOPTTYPE_LONG, 91),
1396
1397 /* DNS cache timeout */
1398 CURLOPT(CURLOPT_DNS_CACHE_TIMEOUT, CURLOPTTYPE_LONG, 92),
1399
1400 /* send linked-list of pre-transfer QUOTE commands */
1401 CURLOPT(CURLOPT_PREQUOTE, CURLOPTTYPE_SLISTPOINT, 93),
1402
1403 /* set the debug function */
1404 CURLOPT(CURLOPT_DEBUGFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 94),
1405
1406 /* set the data for the debug function */
1407 CURLOPT(CURLOPT_DEBUGDATA, CURLOPTTYPE_CBPOINT, 95),
1408
1409 /* mark this as start of a cookie session */
1410 CURLOPT(CURLOPT_COOKIESESSION, CURLOPTTYPE_LONG, 96),
1411
1412 /* The CApath directory used to validate the peer certificate
1413 this option is used only if SSL_VERIFYPEER is true */
1414 CURLOPT(CURLOPT_CAPATH, CURLOPTTYPE_STRINGPOINT, 97),
1415
1416 /* Instruct libcurl to use a smaller receive buffer */
1417 CURLOPT(CURLOPT_BUFFERSIZE, CURLOPTTYPE_LONG, 98),
1418
1419 /* Instruct libcurl to not use any signal/alarm handlers, even when using
1420 timeouts. This option is useful for multi-threaded applications.
1421 See libcurl-the-guide for more background information. */
1422 CURLOPT(CURLOPT_NOSIGNAL, CURLOPTTYPE_LONG, 99),
1423
1424 /* Provide a CURLShare for mutexing non-ts data */
1425 CURLOPT(CURLOPT_SHARE, CURLOPTTYPE_OBJECTPOINT, 100),
1426
1427 /* indicates type of proxy. accepted values are CURLPROXY_HTTP (default),
1428 CURLPROXY_HTTPS, CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and
1429 CURLPROXY_SOCKS5. */
1430 CURLOPT(CURLOPT_PROXYTYPE, CURLOPTTYPE_VALUES, 101),
1431
1432 /* Set the Accept-Encoding string. Use this to tell a server you would like
1433 the response to be compressed. Before 7.21.6, this was known as
1434 CURLOPT_ENCODING */
1435 CURLOPT(CURLOPT_ACCEPT_ENCODING, CURLOPTTYPE_STRINGPOINT, 102),
1436
1437 /* Set pointer to private data */
1438 CURLOPT(CURLOPT_PRIVATE, CURLOPTTYPE_OBJECTPOINT, 103),
1439
1440 /* Set aliases for HTTP 200 in the HTTP Response header */
1441 CURLOPT(CURLOPT_HTTP200ALIASES, CURLOPTTYPE_SLISTPOINT, 104),
1442
1443 /* Continue to send authentication (user+password) when following locations,
1444 even when hostname changed. This can potentially send off the name
1445 and password to whatever host the server decides. */
1446 CURLOPT(CURLOPT_UNRESTRICTED_AUTH, CURLOPTTYPE_LONG, 105),
1447
1448 /* Specifically switch on or off the FTP engine's use of the EPRT command (
1449 it also disables the LPRT attempt). By default, those ones will always be
1450 attempted before the good old traditional PORT command. */
1451 CURLOPT(CURLOPT_FTP_USE_EPRT, CURLOPTTYPE_LONG, 106),
1452
1453 /* Set this to a bitmask value to enable the particular authentications
1454 methods you like. Use this in combination with CURLOPT_USERPWD.
1455 Note that setting multiple bits may cause extra network round-trips. */
1456 CURLOPT(CURLOPT_HTTPAUTH, CURLOPTTYPE_VALUES, 107),
1457
1458 /* Set the ssl context callback function, currently only for OpenSSL or
1459 WolfSSL ssl_ctx, or mbedTLS mbedtls_ssl_config in the second argument.
1460 The function must match the curl_ssl_ctx_callback prototype. */
1461 CURLOPT(CURLOPT_SSL_CTX_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 108),
1462
1463 /* Set the userdata for the ssl context callback function's third
1464 argument */
1465 CURLOPT(CURLOPT_SSL_CTX_DATA, CURLOPTTYPE_CBPOINT, 109),
1466
1467 /* FTP Option that causes missing dirs to be created on the remote server.
1468 In 7.19.4 we introduced the convenience enums for this option using the
1469 CURLFTP_CREATE_DIR prefix.
1470 */
1471 CURLOPT(CURLOPT_FTP_CREATE_MISSING_DIRS, CURLOPTTYPE_LONG, 110),
1472
1473 /* Set this to a bitmask value to enable the particular authentications
1474 methods you like. Use this in combination with CURLOPT_PROXYUSERPWD.
1475 Note that setting multiple bits may cause extra network round-trips. */
1476 CURLOPT(CURLOPT_PROXYAUTH, CURLOPTTYPE_VALUES, 111),
1477
1478 /* FTP option that changes the timeout, in seconds, associated with
1479 getting a response. This is different from transfer timeout time and
1480 essentially places a demand on the FTP server to acknowledge commands
1481 in a timely manner. */
1482 CURLOPT(CURLOPT_FTP_RESPONSE_TIMEOUT, CURLOPTTYPE_LONG, 112),
1483#define CURLOPT_SERVER_RESPONSE_TIMEOUT CURLOPT_FTP_RESPONSE_TIMEOUT
1484
1485 /* Set this option to one of the CURL_IPRESOLVE_* defines (see below) to
1486 tell libcurl to use those IP versions only. This only has effect on
1487 systems with support for more than one, i.e IPv4 _and_ IPv6. */
1488 CURLOPT(CURLOPT_IPRESOLVE, CURLOPTTYPE_VALUES, 113),
1489
1490 /* Set this option to limit the size of a file that will be downloaded from
1491 an HTTP or FTP server.
1492
1493 Note there is also _LARGE version which adds large file support for
1494 platforms which have larger off_t sizes. See MAXFILESIZE_LARGE below. */
1495 CURLOPT(CURLOPT_MAXFILESIZE, CURLOPTTYPE_LONG, 114),
1496
1497 /* See the comment for INFILESIZE above, but in short, specifies
1498 * the size of the file being uploaded. -1 means unknown.
1499 */
1500 CURLOPT(CURLOPT_INFILESIZE_LARGE, CURLOPTTYPE_OFF_T, 115),
1501
1502 /* Sets the continuation offset. There is also a CURLOPTTYPE_LONG version
1503 * of this; look above for RESUME_FROM.
1504 */
1505 CURLOPT(CURLOPT_RESUME_FROM_LARGE, CURLOPTTYPE_OFF_T, 116),
1506
1507 /* Sets the maximum size of data that will be downloaded from
1508 * an HTTP or FTP server. See MAXFILESIZE above for the LONG version.
1509 */
1510 CURLOPT(CURLOPT_MAXFILESIZE_LARGE, CURLOPTTYPE_OFF_T, 117),
1511
1512 /* Set this option to the file name of your .netrc file you want libcurl
1513 to parse (using the CURLOPT_NETRC option). If not set, libcurl will do
1514 a poor attempt to find the user's home directory and check for a .netrc
1515 file in there. */
1516 CURLOPT(CURLOPT_NETRC_FILE, CURLOPTTYPE_STRINGPOINT, 118),
1517
1518 /* Enable SSL/TLS for FTP, pick one of:
1519 CURLUSESSL_TRY - try using SSL, proceed anyway otherwise
1520 CURLUSESSL_CONTROL - SSL for the control connection or fail
1521 CURLUSESSL_ALL - SSL for all communication or fail
1522 */
1523 CURLOPT(CURLOPT_USE_SSL, CURLOPTTYPE_VALUES, 119),
1524
1525 /* The _LARGE version of the standard POSTFIELDSIZE option */
1526 CURLOPT(CURLOPT_POSTFIELDSIZE_LARGE, CURLOPTTYPE_OFF_T, 120),
1527
1528 /* Enable/disable the TCP Nagle algorithm */
1529 CURLOPT(CURLOPT_TCP_NODELAY, CURLOPTTYPE_LONG, 121),
1530
1531 /* 122 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
1532 /* 123 OBSOLETE. Gone in 7.16.0 */
1533 /* 124 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
1534 /* 125 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
1535 /* 126 OBSOLETE, used in 7.12.3. Gone in 7.13.0 */
1536 /* 127 OBSOLETE. Gone in 7.16.0 */
1537 /* 128 OBSOLETE. Gone in 7.16.0 */
1538
1539 /* When FTP over SSL/TLS is selected (with CURLOPT_USE_SSL), this option
1540 can be used to change libcurl's default action which is to first try
1541 "AUTH SSL" and then "AUTH TLS" in this order, and proceed when a OK
1542 response has been received.
1543
1544 Available parameters are:
1545 CURLFTPAUTH_DEFAULT - let libcurl decide
1546 CURLFTPAUTH_SSL - try "AUTH SSL" first, then TLS
1547 CURLFTPAUTH_TLS - try "AUTH TLS" first, then SSL
1548 */
1549 CURLOPT(CURLOPT_FTPSSLAUTH, CURLOPTTYPE_VALUES, 129),
1550
1551 CURLOPT(CURLOPT_IOCTLFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 130),
1552 CURLOPT(CURLOPT_IOCTLDATA, CURLOPTTYPE_CBPOINT, 131),
1553
1554 /* 132 OBSOLETE. Gone in 7.16.0 */
1555 /* 133 OBSOLETE. Gone in 7.16.0 */
1556
1557 /* null-terminated string for pass on to the FTP server when asked for
1558 "account" info */
1559 CURLOPT(CURLOPT_FTP_ACCOUNT, CURLOPTTYPE_STRINGPOINT, 134),
1560
1561 /* feed cookie into cookie engine */
1562 CURLOPT(CURLOPT_COOKIELIST, CURLOPTTYPE_STRINGPOINT, 135),
1563
1564 /* ignore Content-Length */
1565 CURLOPT(CURLOPT_IGNORE_CONTENT_LENGTH, CURLOPTTYPE_LONG, 136),
1566
1567 /* Set to non-zero to skip the IP address received in a 227 PASV FTP server
1568 response. Typically used for FTP-SSL purposes but is not restricted to
1569 that. libcurl will then instead use the same IP address it used for the
1570 control connection. */
1571 CURLOPT(CURLOPT_FTP_SKIP_PASV_IP, CURLOPTTYPE_LONG, 137),
1572
1573 /* Select "file method" to use when doing FTP, see the curl_ftpmethod
1574 above. */
1575 CURLOPT(CURLOPT_FTP_FILEMETHOD, CURLOPTTYPE_VALUES, 138),
1576
1577 /* Local port number to bind the socket to */
1578 CURLOPT(CURLOPT_LOCALPORT, CURLOPTTYPE_LONG, 139),
1579
1580 /* Number of ports to try, including the first one set with LOCALPORT.
1581 Thus, setting it to 1 will make no additional attempts but the first.
1582 */
1583 CURLOPT(CURLOPT_LOCALPORTRANGE, CURLOPTTYPE_LONG, 140),
1584
1585 /* no transfer, set up connection and let application use the socket by
1586 extracting it with CURLINFO_LASTSOCKET */
1587 CURLOPT(CURLOPT_CONNECT_ONLY, CURLOPTTYPE_LONG, 141),
1588
1589 /* Function that will be called to convert from the
1590 network encoding (instead of using the iconv calls in libcurl) */
1591 CURLOPT(CURLOPT_CONV_FROM_NETWORK_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 142),
1592
1593 /* Function that will be called to convert to the
1594 network encoding (instead of using the iconv calls in libcurl) */
1595 CURLOPT(CURLOPT_CONV_TO_NETWORK_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 143),
1596
1597 /* Function that will be called to convert from UTF8
1598 (instead of using the iconv calls in libcurl)
1599 Note that this is used only for SSL certificate processing */
1600 CURLOPT(CURLOPT_CONV_FROM_UTF8_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 144),
1601
1602 /* if the connection proceeds too quickly then need to slow it down */
1603 /* limit-rate: maximum number of bytes per second to send or receive */
1604 CURLOPT(CURLOPT_MAX_SEND_SPEED_LARGE, CURLOPTTYPE_OFF_T, 145),
1605 CURLOPT(CURLOPT_MAX_RECV_SPEED_LARGE, CURLOPTTYPE_OFF_T, 146),
1606
1607 /* Pointer to command string to send if USER/PASS fails. */
1608 CURLOPT(CURLOPT_FTP_ALTERNATIVE_TO_USER, CURLOPTTYPE_STRINGPOINT, 147),
1609
1610 /* callback function for setting socket options */
1611 CURLOPT(CURLOPT_SOCKOPTFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 148),
1612 CURLOPT(CURLOPT_SOCKOPTDATA, CURLOPTTYPE_CBPOINT, 149),
1613
1614 /* set to 0 to disable session ID re-use for this transfer, default is
1615 enabled (== 1) */
1616 CURLOPT(CURLOPT_SSL_SESSIONID_CACHE, CURLOPTTYPE_LONG, 150),
1617
1618 /* allowed SSH authentication methods */
1619 CURLOPT(CURLOPT_SSH_AUTH_TYPES, CURLOPTTYPE_VALUES, 151),
1620
1621 /* Used by scp/sftp to do public/private key authentication */
1622 CURLOPT(CURLOPT_SSH_PUBLIC_KEYFILE, CURLOPTTYPE_STRINGPOINT, 152),
1623 CURLOPT(CURLOPT_SSH_PRIVATE_KEYFILE, CURLOPTTYPE_STRINGPOINT, 153),
1624
1625 /* Send CCC (Clear Command Channel) after authentication */
1626 CURLOPT(CURLOPT_FTP_SSL_CCC, CURLOPTTYPE_LONG, 154),
1627
1628 /* Same as TIMEOUT and CONNECTTIMEOUT, but with ms resolution */
1629 CURLOPT(CURLOPT_TIMEOUT_MS, CURLOPTTYPE_LONG, 155),
1630 CURLOPT(CURLOPT_CONNECTTIMEOUT_MS, CURLOPTTYPE_LONG, 156),
1631
1632 /* set to zero to disable the libcurl's decoding and thus pass the raw body
1633 data to the application even when it is encoded/compressed */
1634 CURLOPT(CURLOPT_HTTP_TRANSFER_DECODING, CURLOPTTYPE_LONG, 157),
1635 CURLOPT(CURLOPT_HTTP_CONTENT_DECODING, CURLOPTTYPE_LONG, 158),
1636
1637 /* Permission used when creating new files and directories on the remote
1638 server for protocols that support it, SFTP/SCP/FILE */
1639 CURLOPT(CURLOPT_NEW_FILE_PERMS, CURLOPTTYPE_LONG, 159),
1640 CURLOPT(CURLOPT_NEW_DIRECTORY_PERMS, CURLOPTTYPE_LONG, 160),
1641
1642 /* Set the behavior of POST when redirecting. Values must be set to one
1643 of CURL_REDIR* defines below. This used to be called CURLOPT_POST301 */
1644 CURLOPT(CURLOPT_POSTREDIR, CURLOPTTYPE_VALUES, 161),
1645
1646 /* used by scp/sftp to verify the host's public key */
1647 CURLOPT(CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, CURLOPTTYPE_STRINGPOINT, 162),
1648
1649 /* Callback function for opening socket (instead of socket(2)). Optionally,
1650 callback is able change the address or refuse to connect returning
1651 CURL_SOCKET_BAD. The callback should have type
1652 curl_opensocket_callback */
1653 CURLOPT(CURLOPT_OPENSOCKETFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 163),
1654 CURLOPT(CURLOPT_OPENSOCKETDATA, CURLOPTTYPE_CBPOINT, 164),
1655
1656 /* POST volatile input fields. */
1657 CURLOPT(CURLOPT_COPYPOSTFIELDS, CURLOPTTYPE_OBJECTPOINT, 165),
1658
1659 /* set transfer mode (;type=<a|i>) when doing FTP via an HTTP proxy */
1660 CURLOPT(CURLOPT_PROXY_TRANSFER_MODE, CURLOPTTYPE_LONG, 166),
1661
1662 /* Callback function for seeking in the input stream */
1663 CURLOPT(CURLOPT_SEEKFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 167),
1664 CURLOPT(CURLOPT_SEEKDATA, CURLOPTTYPE_CBPOINT, 168),
1665
1666 /* CRL file */
1667 CURLOPT(CURLOPT_CRLFILE, CURLOPTTYPE_STRINGPOINT, 169),
1668
1669 /* Issuer certificate */
1670 CURLOPT(CURLOPT_ISSUERCERT, CURLOPTTYPE_STRINGPOINT, 170),
1671
1672 /* (IPv6) Address scope */
1673 CURLOPT(CURLOPT_ADDRESS_SCOPE, CURLOPTTYPE_LONG, 171),
1674
1675 /* Collect certificate chain info and allow it to get retrievable with
1676 CURLINFO_CERTINFO after the transfer is complete. */
1677 CURLOPT(CURLOPT_CERTINFO, CURLOPTTYPE_LONG, 172),
1678
1679 /* "name" and "pwd" to use when fetching. */
1680 CURLOPT(CURLOPT_USERNAME, CURLOPTTYPE_STRINGPOINT, 173),
1681 CURLOPT(CURLOPT_PASSWORD, CURLOPTTYPE_STRINGPOINT, 174),
1682
1683 /* "name" and "pwd" to use with Proxy when fetching. */
1684 CURLOPT(CURLOPT_PROXYUSERNAME, CURLOPTTYPE_STRINGPOINT, 175),
1685 CURLOPT(CURLOPT_PROXYPASSWORD, CURLOPTTYPE_STRINGPOINT, 176),
1686
1687 /* Comma separated list of hostnames defining no-proxy zones. These should
1688 match both hostnames directly, and hostnames within a domain. For
1689 example, local.com will match local.com and www.local.com, but NOT
1690 notlocal.com or www.notlocal.com. For compatibility with other
1691 implementations of this, .local.com will be considered to be the same as
1692 local.com. A single * is the only valid wildcard, and effectively
1693 disables the use of proxy. */
1694 CURLOPT(CURLOPT_NOPROXY, CURLOPTTYPE_STRINGPOINT, 177),
1695
1696 /* block size for TFTP transfers */
1697 CURLOPT(CURLOPT_TFTP_BLKSIZE, CURLOPTTYPE_LONG, 178),
1698
1699 /* Socks Service */
1700 /* DEPRECATED, do not use! */
1701 CURLOPT(CURLOPT_SOCKS5_GSSAPI_SERVICE, CURLOPTTYPE_STRINGPOINT, 179),
1702
1703 /* Socks Service */
1704 CURLOPT(CURLOPT_SOCKS5_GSSAPI_NEC, CURLOPTTYPE_LONG, 180),
1705
1706 /* set the bitmask for the protocols that are allowed to be used for the
1707 transfer, which thus helps the app which takes URLs from users or other
1708 external inputs and want to restrict what protocol(s) to deal
1709 with. Defaults to CURLPROTO_ALL. */
1710 CURLOPT(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181),
1711
1712 /* set the bitmask for the protocols that libcurl is allowed to follow to,
1713 as a subset of the CURLOPT_PROTOCOLS ones. That means the protocol needs
1714 to be set in both bitmasks to be allowed to get redirected to. */
1715 CURLOPT(CURLOPT_REDIR_PROTOCOLS, CURLOPTTYPE_LONG, 182),
1716
1717 /* set the SSH knownhost file name to use */
1718 CURLOPT(CURLOPT_SSH_KNOWNHOSTS, CURLOPTTYPE_STRINGPOINT, 183),
1719
1720 /* set the SSH host key callback, must point to a curl_sshkeycallback
1721 function */
1722 CURLOPT(CURLOPT_SSH_KEYFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 184),
1723
1724 /* set the SSH host key callback custom pointer */
1725 CURLOPT(CURLOPT_SSH_KEYDATA, CURLOPTTYPE_CBPOINT, 185),
1726
1727 /* set the SMTP mail originator */
1728 CURLOPT(CURLOPT_MAIL_FROM, CURLOPTTYPE_STRINGPOINT, 186),
1729
1730 /* set the list of SMTP mail receiver(s) */
1731 CURLOPT(CURLOPT_MAIL_RCPT, CURLOPTTYPE_SLISTPOINT, 187),
1732
1733 /* FTP: send PRET before PASV */
1734 CURLOPT(CURLOPT_FTP_USE_PRET, CURLOPTTYPE_LONG, 188),
1735
1736 /* RTSP request method (OPTIONS, SETUP, PLAY, etc...) */
1737 CURLOPT(CURLOPT_RTSP_REQUEST, CURLOPTTYPE_VALUES, 189),
1738
1739 /* The RTSP session identifier */
1740 CURLOPT(CURLOPT_RTSP_SESSION_ID, CURLOPTTYPE_STRINGPOINT, 190),
1741
1742 /* The RTSP stream URI */
1743 CURLOPT(CURLOPT_RTSP_STREAM_URI, CURLOPTTYPE_STRINGPOINT, 191),
1744
1745 /* The Transport: header to use in RTSP requests */
1746 CURLOPT(CURLOPT_RTSP_TRANSPORT, CURLOPTTYPE_STRINGPOINT, 192),
1747
1748 /* Manually initialize the client RTSP CSeq for this handle */
1749 CURLOPT(CURLOPT_RTSP_CLIENT_CSEQ, CURLOPTTYPE_LONG, 193),
1750
1751 /* Manually initialize the server RTSP CSeq for this handle */
1752 CURLOPT(CURLOPT_RTSP_SERVER_CSEQ, CURLOPTTYPE_LONG, 194),
1753
1754 /* The stream to pass to INTERLEAVEFUNCTION. */
1755 CURLOPT(CURLOPT_INTERLEAVEDATA, CURLOPTTYPE_CBPOINT, 195),
1756
1757 /* Let the application define a custom write method for RTP data */
1758 CURLOPT(CURLOPT_INTERLEAVEFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 196),
1759
1760 /* Turn on wildcard matching */
1761 CURLOPT(CURLOPT_WILDCARDMATCH, CURLOPTTYPE_LONG, 197),
1762
1763 /* Directory matching callback called before downloading of an
1764 individual file (chunk) started */
1765 CURLOPT(CURLOPT_CHUNK_BGN_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 198),
1766
1767 /* Directory matching callback called after the file (chunk)
1768 was downloaded, or skipped */
1769 CURLOPT(CURLOPT_CHUNK_END_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 199),
1770
1771 /* Change match (fnmatch-like) callback for wildcard matching */
1772 CURLOPT(CURLOPT_FNMATCH_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 200),
1773
1774 /* Let the application define custom chunk data pointer */
1775 CURLOPT(CURLOPT_CHUNK_DATA, CURLOPTTYPE_CBPOINT, 201),
1776
1777 /* FNMATCH_FUNCTION user pointer */
1778 CURLOPT(CURLOPT_FNMATCH_DATA, CURLOPTTYPE_CBPOINT, 202),
1779
1780 /* send linked-list of name:port:address sets */
1781 CURLOPT(CURLOPT_RESOLVE, CURLOPTTYPE_SLISTPOINT, 203),
1782
1783 /* Set a username for authenticated TLS */
1784 CURLOPT(CURLOPT_TLSAUTH_USERNAME, CURLOPTTYPE_STRINGPOINT, 204),
1785
1786 /* Set a password for authenticated TLS */
1787 CURLOPT(CURLOPT_TLSAUTH_PASSWORD, CURLOPTTYPE_STRINGPOINT, 205),
1788
1789 /* Set authentication type for authenticated TLS */
1790 CURLOPT(CURLOPT_TLSAUTH_TYPE, CURLOPTTYPE_STRINGPOINT, 206),
1791
1792 /* Set to 1 to enable the "TE:" header in HTTP requests to ask for
1793 compressed transfer-encoded responses. Set to 0 to disable the use of TE:
1794 in outgoing requests. The current default is 0, but it might change in a
1795 future libcurl release.
1796
1797 libcurl will ask for the compressed methods it knows of, and if that
1798 isn't any, it will not ask for transfer-encoding at all even if this
1799 option is set to 1.
1800
1801 */
1802 CURLOPT(CURLOPT_TRANSFER_ENCODING, CURLOPTTYPE_LONG, 207),
1803
1804 /* Callback function for closing socket (instead of close(2)). The callback
1805 should have type curl_closesocket_callback */
1806 CURLOPT(CURLOPT_CLOSESOCKETFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 208),
1807 CURLOPT(CURLOPT_CLOSESOCKETDATA, CURLOPTTYPE_CBPOINT, 209),
1808
1809 /* allow GSSAPI credential delegation */
1810 CURLOPT(CURLOPT_GSSAPI_DELEGATION, CURLOPTTYPE_VALUES, 210),
1811
1812 /* Set the name servers to use for DNS resolution */
1813 CURLOPT(CURLOPT_DNS_SERVERS, CURLOPTTYPE_STRINGPOINT, 211),
1814
1815 /* Time-out accept operations (currently for FTP only) after this amount
1816 of milliseconds. */
1817 CURLOPT(CURLOPT_ACCEPTTIMEOUT_MS, CURLOPTTYPE_LONG, 212),
1818
1819 /* Set TCP keepalive */
1820 CURLOPT(CURLOPT_TCP_KEEPALIVE, CURLOPTTYPE_LONG, 213),
1821
1822 /* non-universal keepalive knobs (Linux, AIX, HP-UX, more) */
1823 CURLOPT(CURLOPT_TCP_KEEPIDLE, CURLOPTTYPE_LONG, 214),
1824 CURLOPT(CURLOPT_TCP_KEEPINTVL, CURLOPTTYPE_LONG, 215),
1825
1826 /* Enable/disable specific SSL features with a bitmask, see CURLSSLOPT_* */
1827 CURLOPT(CURLOPT_SSL_OPTIONS, CURLOPTTYPE_VALUES, 216),
1828
1829 /* Set the SMTP auth originator */
1830 CURLOPT(CURLOPT_MAIL_AUTH, CURLOPTTYPE_STRINGPOINT, 217),
1831
1832 /* Enable/disable SASL initial response */
1833 CURLOPT(CURLOPT_SASL_IR, CURLOPTTYPE_LONG, 218),
1834
1835 /* Function that will be called instead of the internal progress display
1836 * function. This function should be defined as the curl_xferinfo_callback
1837 * prototype defines. (Deprecates CURLOPT_PROGRESSFUNCTION) */
1838 CURLOPT(CURLOPT_XFERINFOFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 219),
1839
1840 /* The XOAUTH2 bearer token */
1841 CURLOPT(CURLOPT_XOAUTH2_BEARER, CURLOPTTYPE_STRINGPOINT, 220),
1842
1843 /* Set the interface string to use as outgoing network
1844 * interface for DNS requests.
1845 * Only supported by the c-ares DNS backend */
1846 CURLOPT(CURLOPT_DNS_INTERFACE, CURLOPTTYPE_STRINGPOINT, 221),
1847
1848 /* Set the local IPv4 address to use for outgoing DNS requests.
1849 * Only supported by the c-ares DNS backend */
1850 CURLOPT(CURLOPT_DNS_LOCAL_IP4, CURLOPTTYPE_STRINGPOINT, 222),
1851
1852 /* Set the local IPv6 address to use for outgoing DNS requests.
1853 * Only supported by the c-ares DNS backend */
1854 CURLOPT(CURLOPT_DNS_LOCAL_IP6, CURLOPTTYPE_STRINGPOINT, 223),
1855
1856 /* Set authentication options directly */
1857 CURLOPT(CURLOPT_LOGIN_OPTIONS, CURLOPTTYPE_STRINGPOINT, 224),
1858
1859 /* Enable/disable TLS NPN extension (http2 over ssl might fail without) */
1860 CURLOPT(CURLOPT_SSL_ENABLE_NPN, CURLOPTTYPE_LONG, 225),
1861
1862 /* Enable/disable TLS ALPN extension (http2 over ssl might fail without) */
1863 CURLOPT(CURLOPT_SSL_ENABLE_ALPN, CURLOPTTYPE_LONG, 226),
1864
1865 /* Time to wait for a response to a HTTP request containing an
1866 * Expect: 100-continue header before sending the data anyway. */
1867 CURLOPT(CURLOPT_EXPECT_100_TIMEOUT_MS, CURLOPTTYPE_LONG, 227),
1868
1869 /* This points to a linked list of headers used for proxy requests only,
1870 struct curl_slist kind */
1871 CURLOPT(CURLOPT_PROXYHEADER, CURLOPTTYPE_SLISTPOINT, 228),
1872
1873 /* Pass in a bitmask of "header options" */
1874 CURLOPT(CURLOPT_HEADEROPT, CURLOPTTYPE_VALUES, 229),
1875
1876 /* The public key in DER form used to validate the peer public key
1877 this option is used only if SSL_VERIFYPEER is true */
1878 CURLOPT(CURLOPT_PINNEDPUBLICKEY, CURLOPTTYPE_STRINGPOINT, 230),
1879
1880 /* Path to Unix domain socket */
1881 CURLOPT(CURLOPT_UNIX_SOCKET_PATH, CURLOPTTYPE_STRINGPOINT, 231),
1882
1883 /* Set if we should verify the certificate status. */
1884 CURLOPT(CURLOPT_SSL_VERIFYSTATUS, CURLOPTTYPE_LONG, 232),
1885
1886 /* Set if we should enable TLS false start. */
1887 CURLOPT(CURLOPT_SSL_FALSESTART, CURLOPTTYPE_LONG, 233),
1888
1889 /* Do not squash dot-dot sequences */
1890 CURLOPT(CURLOPT_PATH_AS_IS, CURLOPTTYPE_LONG, 234),
1891
1892 /* Proxy Service Name */
1893 CURLOPT(CURLOPT_PROXY_SERVICE_NAME, CURLOPTTYPE_STRINGPOINT, 235),
1894
1895 /* Service Name */
1896 CURLOPT(CURLOPT_SERVICE_NAME, CURLOPTTYPE_STRINGPOINT, 236),
1897
1898 /* Wait/don't wait for pipe/mutex to clarify */
1899 CURLOPT(CURLOPT_PIPEWAIT, CURLOPTTYPE_LONG, 237),
1900
1901 /* Set the protocol used when curl is given a URL without a protocol */
1902 CURLOPT(CURLOPT_DEFAULT_PROTOCOL, CURLOPTTYPE_STRINGPOINT, 238),
1903
1904 /* Set stream weight, 1 - 256 (default is 16) */
1905 CURLOPT(CURLOPT_STREAM_WEIGHT, CURLOPTTYPE_LONG, 239),
1906
1907 /* Set stream dependency on another CURL handle */
1908 CURLOPT(CURLOPT_STREAM_DEPENDS, CURLOPTTYPE_OBJECTPOINT, 240),
1909
1910 /* Set E-xclusive stream dependency on another CURL handle */
1911 CURLOPT(CURLOPT_STREAM_DEPENDS_E, CURLOPTTYPE_OBJECTPOINT, 241),
1912
1913 /* Do not send any tftp option requests to the server */
1914 CURLOPT(CURLOPT_TFTP_NO_OPTIONS, CURLOPTTYPE_LONG, 242),
1915
1916 /* Linked-list of host:port:connect-to-host:connect-to-port,
1917 overrides the URL's host:port (only for the network layer) */
1918 CURLOPT(CURLOPT_CONNECT_TO, CURLOPTTYPE_SLISTPOINT, 243),
1919
1920 /* Set TCP Fast Open */
1921 CURLOPT(CURLOPT_TCP_FASTOPEN, CURLOPTTYPE_LONG, 244),
1922
1923 /* Continue to send data if the server responds early with an
1924 * HTTP status code >= 300 */
1925 CURLOPT(CURLOPT_KEEP_SENDING_ON_ERROR, CURLOPTTYPE_LONG, 245),
1926
1927 /* The CApath or CAfile used to validate the proxy certificate
1928 this option is used only if PROXY_SSL_VERIFYPEER is true */
1929 CURLOPT(CURLOPT_PROXY_CAINFO, CURLOPTTYPE_STRINGPOINT, 246),
1930
1931 /* The CApath directory used to validate the proxy certificate
1932 this option is used only if PROXY_SSL_VERIFYPEER is true */
1933 CURLOPT(CURLOPT_PROXY_CAPATH, CURLOPTTYPE_STRINGPOINT, 247),
1934
1935 /* Set if we should verify the proxy in ssl handshake,
1936 set 1 to verify. */
1937 CURLOPT(CURLOPT_PROXY_SSL_VERIFYPEER, CURLOPTTYPE_LONG, 248),
1938
1939 /* Set if we should verify the Common name from the proxy certificate in ssl
1940 * handshake, set 1 to check existence, 2 to ensure that it matches
1941 * the provided hostname. */
1942 CURLOPT(CURLOPT_PROXY_SSL_VERIFYHOST, CURLOPTTYPE_LONG, 249),
1943
1944 /* What version to specifically try to use for proxy.
1945 See CURL_SSLVERSION defines below. */
1946 CURLOPT(CURLOPT_PROXY_SSLVERSION, CURLOPTTYPE_VALUES, 250),
1947
1948 /* Set a username for authenticated TLS for proxy */
1949 CURLOPT(CURLOPT_PROXY_TLSAUTH_USERNAME, CURLOPTTYPE_STRINGPOINT, 251),
1950
1951 /* Set a password for authenticated TLS for proxy */
1952 CURLOPT(CURLOPT_PROXY_TLSAUTH_PASSWORD, CURLOPTTYPE_STRINGPOINT, 252),
1953
1954 /* Set authentication type for authenticated TLS for proxy */
1955 CURLOPT(CURLOPT_PROXY_TLSAUTH_TYPE, CURLOPTTYPE_STRINGPOINT, 253),
1956
1957 /* name of the file keeping your private SSL-certificate for proxy */
1958 CURLOPT(CURLOPT_PROXY_SSLCERT, CURLOPTTYPE_STRINGPOINT, 254),
1959
1960 /* type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") for
1961 proxy */
1962 CURLOPT(CURLOPT_PROXY_SSLCERTTYPE, CURLOPTTYPE_STRINGPOINT, 255),
1963
1964 /* name of the file keeping your private SSL-key for proxy */
1965 CURLOPT(CURLOPT_PROXY_SSLKEY, CURLOPTTYPE_STRINGPOINT, 256),
1966
1967 /* type of the file keeping your private SSL-key ("DER", "PEM", "ENG") for
1968 proxy */
1969 CURLOPT(CURLOPT_PROXY_SSLKEYTYPE, CURLOPTTYPE_STRINGPOINT, 257),
1970
1971 /* password for the SSL private key for proxy */
1972 CURLOPT(CURLOPT_PROXY_KEYPASSWD, CURLOPTTYPE_STRINGPOINT, 258),
1973
1974 /* Specify which SSL ciphers to use for proxy */
1975 CURLOPT(CURLOPT_PROXY_SSL_CIPHER_LIST, CURLOPTTYPE_STRINGPOINT, 259),
1976
1977 /* CRL file for proxy */
1978 CURLOPT(CURLOPT_PROXY_CRLFILE, CURLOPTTYPE_STRINGPOINT, 260),
1979
1980 /* Enable/disable specific SSL features with a bitmask for proxy, see
1981 CURLSSLOPT_* */
1982 CURLOPT(CURLOPT_PROXY_SSL_OPTIONS, CURLOPTTYPE_LONG, 261),
1983
1984 /* Name of pre proxy to use. */
1985 CURLOPT(CURLOPT_PRE_PROXY, CURLOPTTYPE_STRINGPOINT, 262),
1986
1987 /* The public key in DER form used to validate the proxy public key
1988 this option is used only if PROXY_SSL_VERIFYPEER is true */
1989 CURLOPT(CURLOPT_PROXY_PINNEDPUBLICKEY, CURLOPTTYPE_STRINGPOINT, 263),
1990
1991 /* Path to an abstract Unix domain socket */
1992 CURLOPT(CURLOPT_ABSTRACT_UNIX_SOCKET, CURLOPTTYPE_STRINGPOINT, 264),
1993
1994 /* Suppress proxy CONNECT response headers from user callbacks */
1995 CURLOPT(CURLOPT_SUPPRESS_CONNECT_HEADERS, CURLOPTTYPE_LONG, 265),
1996
1997 /* The request target, instead of extracted from the URL */
1998 CURLOPT(CURLOPT_REQUEST_TARGET, CURLOPTTYPE_STRINGPOINT, 266),
1999
2000 /* bitmask of allowed auth methods for connections to SOCKS5 proxies */
2001 CURLOPT(CURLOPT_SOCKS5_AUTH, CURLOPTTYPE_LONG, 267),
2002
2003 /* Enable/disable SSH compression */
2004 CURLOPT(CURLOPT_SSH_COMPRESSION, CURLOPTTYPE_LONG, 268),
2005
2006 /* Post MIME data. */
2007 CURLOPT(CURLOPT_MIMEPOST, CURLOPTTYPE_OBJECTPOINT, 269),
2008
2009 /* Time to use with the CURLOPT_TIMECONDITION. Specified in number of
2010 seconds since 1 Jan 1970. */
2011 CURLOPT(CURLOPT_TIMEVALUE_LARGE, CURLOPTTYPE_OFF_T, 270),
2012
2013 /* Head start in milliseconds to give happy eyeballs. */
2014 CURLOPT(CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, CURLOPTTYPE_LONG, 271),
2015
2016 /* Function that will be called before a resolver request is made */
2017 CURLOPT(CURLOPT_RESOLVER_START_FUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 272),
2018
2019 /* User data to pass to the resolver start callback. */
2020 CURLOPT(CURLOPT_RESOLVER_START_DATA, CURLOPTTYPE_CBPOINT, 273),
2021
2022 /* send HAProxy PROXY protocol header? */
2023 CURLOPT(CURLOPT_HAPROXYPROTOCOL, CURLOPTTYPE_LONG, 274),
2024
2025 /* shuffle addresses before use when DNS returns multiple */
2026 CURLOPT(CURLOPT_DNS_SHUFFLE_ADDRESSES, CURLOPTTYPE_LONG, 275),
2027
2028 /* Specify which TLS 1.3 ciphers suites to use */
2029 CURLOPT(CURLOPT_TLS13_CIPHERS, CURLOPTTYPE_STRINGPOINT, 276),
2030 CURLOPT(CURLOPT_PROXY_TLS13_CIPHERS, CURLOPTTYPE_STRINGPOINT, 277),
2031
2032 /* Disallow specifying username/login in URL. */
2033 CURLOPT(CURLOPT_DISALLOW_USERNAME_IN_URL, CURLOPTTYPE_LONG, 278),
2034
2035 /* DNS-over-HTTPS URL */
2036 CURLOPT(CURLOPT_DOH_URL, CURLOPTTYPE_STRINGPOINT, 279),
2037
2038 /* Preferred buffer size to use for uploads */
2039 CURLOPT(CURLOPT_UPLOAD_BUFFERSIZE, CURLOPTTYPE_LONG, 280),
2040
2041 /* Time in ms between connection upkeep calls for long-lived connections. */
2042 CURLOPT(CURLOPT_UPKEEP_INTERVAL_MS, CURLOPTTYPE_LONG, 281),
2043
2044 /* Specify URL using CURL URL API. */
2045 CURLOPT(CURLOPT_CURLU, CURLOPTTYPE_OBJECTPOINT, 282),
2046
2047 /* add trailing data just after no more data is available */
2048 CURLOPT(CURLOPT_TRAILERFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 283),
2049
2050 /* pointer to be passed to HTTP_TRAILER_FUNCTION */
2051 CURLOPT(CURLOPT_TRAILERDATA, CURLOPTTYPE_CBPOINT, 284),
2052
2053 /* set this to 1L to allow HTTP/0.9 responses or 0L to disallow */
2054 CURLOPT(CURLOPT_HTTP09_ALLOWED, CURLOPTTYPE_LONG, 285),
2055
2056 /* alt-svc control bitmask */
2057 CURLOPT(CURLOPT_ALTSVC_CTRL, CURLOPTTYPE_LONG, 286),
2058
2059 /* alt-svc cache file name to possibly read from/write to */
2060 CURLOPT(CURLOPT_ALTSVC, CURLOPTTYPE_STRINGPOINT, 287),
2061
2062 /* maximum age (idle time) of a connection to consider it for reuse
2063 * (in seconds) */
2064 CURLOPT(CURLOPT_MAXAGE_CONN, CURLOPTTYPE_LONG, 288),
2065
2066 /* SASL authorization identity */
2067 CURLOPT(CURLOPT_SASL_AUTHZID, CURLOPTTYPE_STRINGPOINT, 289),
2068
2069 /* allow RCPT TO command to fail for some recipients */
2070 CURLOPT(CURLOPT_MAIL_RCPT_ALLLOWFAILS, CURLOPTTYPE_LONG, 290),
2071
2072 /* the private SSL-certificate as a "blob" */
2073 CURLOPT(CURLOPT_SSLCERT_BLOB, CURLOPTTYPE_BLOB, 291),
2074 CURLOPT(CURLOPT_SSLKEY_BLOB, CURLOPTTYPE_BLOB, 292),
2075 CURLOPT(CURLOPT_PROXY_SSLCERT_BLOB, CURLOPTTYPE_BLOB, 293),
2076 CURLOPT(CURLOPT_PROXY_SSLKEY_BLOB, CURLOPTTYPE_BLOB, 294),
2077 CURLOPT(CURLOPT_ISSUERCERT_BLOB, CURLOPTTYPE_BLOB, 295),
2078
2079 /* Issuer certificate for proxy */
2080 CURLOPT(CURLOPT_PROXY_ISSUERCERT, CURLOPTTYPE_STRINGPOINT, 296),
2081 CURLOPT(CURLOPT_PROXY_ISSUERCERT_BLOB, CURLOPTTYPE_BLOB, 297),
2082
2083 /* the EC curves requested by the TLS client (RFC 8422, 5.1);
2084 * OpenSSL support via 'set_groups'/'set_curves':
2085 * https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set1_groups.html
2086 */
2087 CURLOPT(CURLOPT_SSL_EC_CURVES, CURLOPTTYPE_STRINGPOINT, 298),
2088
2089 /* HSTS bitmask */
2090 CURLOPT(CURLOPT_HSTS_CTRL, CURLOPTTYPE_LONG, 299),
2091 /* HSTS file name */
2092 CURLOPT(CURLOPT_HSTS, CURLOPTTYPE_STRINGPOINT, 300),
2093
2094 /* HSTS read callback */
2095 CURLOPT(CURLOPT_HSTSREADFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 301),
2096 CURLOPT(CURLOPT_HSTSREADDATA, CURLOPTTYPE_CBPOINT, 302),
2097
2098 /* HSTS write callback */
2099 CURLOPT(CURLOPT_HSTSWRITEFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 303),
2100 CURLOPT(CURLOPT_HSTSWRITEDATA, CURLOPTTYPE_CBPOINT, 304),
2101
2102 /* Parameters for V4 signature */
2103 CURLOPT(CURLOPT_AWS_SIGV4, CURLOPTTYPE_STRINGPOINT, 305),
2104
2105 /* Same as CURLOPT_SSL_VERIFYPEER but for DoH (DNS-over-HTTPS) servers. */
2106 CURLOPT(CURLOPT_DOH_SSL_VERIFYPEER, CURLOPTTYPE_LONG, 306),
2107
2108 /* Same as CURLOPT_SSL_VERIFYHOST but for DoH (DNS-over-HTTPS) servers. */
2109 CURLOPT(CURLOPT_DOH_SSL_VERIFYHOST, CURLOPTTYPE_LONG, 307),
2110
2111 /* Same as CURLOPT_SSL_VERIFYSTATUS but for DoH (DNS-over-HTTPS) servers. */
2112 CURLOPT(CURLOPT_DOH_SSL_VERIFYSTATUS, CURLOPTTYPE_LONG, 308),
2113
2114 /* The CA certificates as "blob" used to validate the peer certificate
2115 this option is used only if SSL_VERIFYPEER is true */
2116 CURLOPT(CURLOPT_CAINFO_BLOB, CURLOPTTYPE_BLOB, 309),
2117
2118 /* The CA certificates as "blob" used to validate the proxy certificate
2119 this option is used only if PROXY_SSL_VERIFYPEER is true */
2120 CURLOPT(CURLOPT_PROXY_CAINFO_BLOB, CURLOPTTYPE_BLOB, 310),
2121
2122 /* used by scp/sftp to verify the host's public key */
2123 CURLOPT(CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256, CURLOPTTYPE_STRINGPOINT, 311),
2124
2125 /* Function that will be called immediately before the initial request
2126 is made on a connection (after any protocol negotiation step). */
2127 CURLOPT(CURLOPT_PREREQFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 312),
2128
2129 /* Data passed to the CURLOPT_PREREQFUNCTION callback */
2130 CURLOPT(CURLOPT_PREREQDATA, CURLOPTTYPE_CBPOINT, 313),
2131
2132 /* maximum age (since creation) of a connection to consider it for reuse
2133 * (in seconds) */
2134 CURLOPT(CURLOPT_MAXLIFETIME_CONN, CURLOPTTYPE_LONG, 314),
2135
2136 /* Set MIME option flags. */
2137 CURLOPT(CURLOPT_MIME_OPTIONS, CURLOPTTYPE_LONG, 315),
2138
2139 /* set the SSH host key callback, must point to a curl_sshkeycallback
2140 function */
2141 CURLOPT(CURLOPT_SSH_HOSTKEYFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 316),
2142
2143 /* set the SSH host key callback custom pointer */
2144 CURLOPT(CURLOPT_SSH_HOSTKEYDATA, CURLOPTTYPE_CBPOINT, 317),
2146 CURLOPT_LASTENTRY /* the last unused */
2147} CURLoption;
2148
2149#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
2150 the obsolete stuff removed! */
2151
2152/* Backwards compatibility with older names */
2153/* These are scheduled to disappear by 2011 */
2155/* This was added in version 7.19.1 */
2156#define CURLOPT_POST301 CURLOPT_POSTREDIR
2157
2158/* These are scheduled to disappear by 2009 */
2160/* The following were added in 7.17.0 */
2161#define CURLOPT_SSLKEYPASSWD CURLOPT_KEYPASSWD
2162#define CURLOPT_FTPAPPEND CURLOPT_APPEND
2163#define CURLOPT_FTPLISTONLY CURLOPT_DIRLISTONLY
2164#define CURLOPT_FTP_SSL CURLOPT_USE_SSL
2165
2166/* The following were added earlier */
2168#define CURLOPT_SSLCERTPASSWD CURLOPT_KEYPASSWD
2169#define CURLOPT_KRB4LEVEL CURLOPT_KRBLEVEL
2170
2171#else
2172/* This is set if CURL_NO_OLDIES is defined at compile-time */
2173#undef CURLOPT_DNS_USE_GLOBAL_CACHE /* soon obsolete */
2174#endif
2175
2176
2177 /* Below here follows defines for the CURLOPT_IPRESOLVE option. If a host
2178 name resolves addresses using more than one IP protocol version, this
2179 option might be handy to force libcurl to use a specific IP version. */
2180#define CURL_IPRESOLVE_WHATEVER 0 /* default, uses addresses to all IP
2181 versions that your system allows */
2182#define CURL_IPRESOLVE_V4 1 /* uses only IPv4 addresses/connections */
2183#define CURL_IPRESOLVE_V6 2 /* uses only IPv6 addresses/connections */
2184
2185 /* three convenient "aliases" that follow the name scheme better */
2186#define CURLOPT_RTSPHEADER CURLOPT_HTTPHEADER
2188 /* These enums are for use with the CURLOPT_HTTP_VERSION option. */
2189enum {
2190 CURL_HTTP_VERSION_NONE, /* setting this means we don't care, and that we'd
2191 like the library to choose the best possible
2192 for us! */
2193 CURL_HTTP_VERSION_1_0, /* please use HTTP 1.0 in the request */
2194 CURL_HTTP_VERSION_1_1, /* please use HTTP 1.1 in the request */
2195 CURL_HTTP_VERSION_2_0, /* please use HTTP 2 in the request */
2196 CURL_HTTP_VERSION_2TLS, /* use version 2 for HTTPS, version 1.1 for HTTP */
2197 CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE, /* please use HTTP 2 without HTTP/1.1
2198 Upgrade */
2199 CURL_HTTP_VERSION_3 = 30, /* Makes use of explicit HTTP/3 without fallback.
2200 Use CURLOPT_ALTSVC to enable HTTP/3 upgrade */
2201 CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
2202};
2203
2204/* Convenience definition simple because the name of the version is HTTP/2 and
2205 not 2.0. The 2_0 version of the enum name was set while the version was
2206 still planned to be 2.0 and we stick to it for compatibility. */
2207#define CURL_HTTP_VERSION_2 CURL_HTTP_VERSION_2_0
2208
2209/*
2210 * Public API enums for RTSP requests
2212enum {
2213 CURL_RTSPREQ_NONE, /* first in list */
2225 CURL_RTSPREQ_LAST /* last in list */
2228 /* These enums are for use with the CURLOPT_NETRC option. */
2230 CURL_NETRC_IGNORED, /* The .netrc will never be read.
2231 * This is the default. */
2232 CURL_NETRC_OPTIONAL, /* A user:password in the URL will be preferred
2233 * to one in the .netrc. */
2234 CURL_NETRC_REQUIRED, /* A user:password in the URL will be ignored.
2235 * Unless one is set programmatically, the .netrc
2236 * will be queried. */
2240enum {
2249
2250 CURL_SSLVERSION_LAST /* never use, keep last */
2253enum {
2261 /* never use, keep last */
2265enum CURL_TLSAUTH {
2268 CURL_TLSAUTH_LAST /* never use, keep last */
2269};
2270
2271/* symbols to use with CURLOPT_POSTREDIR.
2272 CURL_REDIR_POST_301, CURL_REDIR_POST_302 and CURL_REDIR_POST_303
2273 can be bitwise ORed so that CURL_REDIR_POST_301 | CURL_REDIR_POST_302
2274 | CURL_REDIR_POST_303 == CURL_REDIR_POST_ALL */
2276#define CURL_REDIR_GET_ALL 0
2277#define CURL_REDIR_POST_301 1
2278#define CURL_REDIR_POST_302 2
2279#define CURL_REDIR_POST_303 4
2280#define CURL_REDIR_POST_ALL \
2281 (CURL_REDIR_POST_301|CURL_REDIR_POST_302|CURL_REDIR_POST_303)
2282
2283typedef enum {
2289
2292
2293/* Special size_t value signaling a null-terminated string. */
2294#define CURL_ZERO_TERMINATED ((size_t) -1)
2296/* curl_strequal() and curl_strnequal() are subject for removal in a future
2297 release */
2298CURL_EXTERN int curl_strequal(const char *s1, const char *s2);
2299CURL_EXTERN int curl_strnequal(const char *s1, const char *s2, size_t n);
2301/* Mime/form handling support. */
2302typedef struct curl_mime curl_mime; /* Mime context. */
2303typedef struct curl_mimepart curl_mimepart; /* Mime part context. */
2304
2305/* CURLMIMEOPT_ defines are for the CURLOPT_MIME_OPTIONS option. */
2306#define CURLMIMEOPT_FORMESCAPE (1<<0) /* Use backslash-escaping for forms. */
2307
2308/*
2309 * NAME curl_mime_init()
2310 *
2311 * DESCRIPTION
2312 *
2313 * Create a mime context and return its handle. The easy parameter is the
2314 * target handle.
2315 */
2317
2318/*
2319 * NAME curl_mime_free()
2320 *
2321 * DESCRIPTION
2323 * release a mime handle and its substructures.
2324 */
2326
2327/*
2328 * NAME curl_mime_addpart()
2329 *
2330 * DESCRIPTION
2331 *
2332 * Append a new empty part to the given mime context and return a handle to
2333 * the created part.
2334 */
2336
2337/*
2338 * NAME curl_mime_name()
2339 *
2340 * DESCRIPTION
2342 * Set mime/form part name.
2343 */
2345
2346/*
2347 * NAME curl_mime_filename()
2348 *
2349 * DESCRIPTION
2351 * Set mime part remote file name.
2352 */
2354 const char *filename);
2355
2356/*
2357 * NAME curl_mime_type()
2358 *
2359 * DESCRIPTION
2361 * Set mime part type.
2362 */
2363CURL_EXTERN CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype);
2364
2365/*
2366 * NAME curl_mime_encoder()
2367 *
2368 * DESCRIPTION
2370 * Set mime data transfer encoder.
2371 */
2373 const char *encoding);
2374
2375/*
2376 * NAME curl_mime_data()
2377 *
2378 * DESCRIPTION
2380 * Set mime part data source from memory data,
2381 */
2383 const char *data, size_t datasize);
2384
2385/*
2386 * NAME curl_mime_filedata()
2387 *
2388 * DESCRIPTION
2390 * Set mime part data source from named file.
2391 */
2393 const char *filename);
2394
2395/*
2396 * NAME curl_mime_data_cb()
2397 *
2398 * DESCRIPTION
2400 * Set mime part data source from callback function.
2401 */
2404 curl_read_callback readfunc,
2405 curl_seek_callback seekfunc,
2406 curl_free_callback freefunc,
2407 void *arg);
2408
2409/*
2410 * NAME curl_mime_subparts()
2411 *
2412 * DESCRIPTION
2414 * Set mime part data source from subparts.
2415 */
2417 curl_mime *subparts);
2418/*
2419 * NAME curl_mime_headers()
2420 *
2421 * DESCRIPTION
2423 * Set mime part headers.
2424 */
2427 int take_ownership);
2429typedef enum {
2430 CURLFORM_NOTHING, /********* the first one is unused ************/
2451
2453 CURLFORM_CONTENTLEN, /* added in 7.46.0, provide a curl_off_t length */
2454
2455 CURLFORM_LASTENTRY /* the last unused */
2458/* structure to be used as parameter for CURLFORM_ARRAY */
2459struct curl_forms {
2461 const char *value;
2462};
2463
2464/* use this for multipart formpost building */
2465/* Returns code for curl_formadd()
2466 *
2467 * Returns:
2468 * CURL_FORMADD_OK on success
2469 * CURL_FORMADD_MEMORY if the FormInfo allocation fails
2470 * CURL_FORMADD_OPTION_TWICE if one option is given twice for one Form
2471 * CURL_FORMADD_NULL if a null pointer was given for a char
2472 * CURL_FORMADD_MEMORY if the allocation of a FormInfo struct failed
2473 * CURL_FORMADD_UNKNOWN_OPTION if an unknown option was used
2474 * CURL_FORMADD_INCOMPLETE if the some FormInfo is not complete (or error)
2475 * CURL_FORMADD_MEMORY if a curl_httppost struct cannot be allocated
2476 * CURL_FORMADD_MEMORY if some allocation for string copying failed.
2477 * CURL_FORMADD_ILLEGAL_ARRAY if an illegal option is used in an array
2479 ***************************************************************************/
2480typedef enum {
2481 CURL_FORMADD_OK, /* first, no error */
2489 CURL_FORMADD_DISABLED, /* libcurl was built with this disabled */
2490
2491 CURL_FORMADD_LAST /* last */
2492} CURLFORMcode;
2493
2494/*
2495 * NAME curl_formadd()
2496 *
2497 * DESCRIPTION
2498 *
2499 * Pretty advanced function for building multi-part formposts. Each invoke
2500 * adds one part that together construct a full post. Then use
2501 * CURLOPT_HTTPPOST to send it off to libcurl.
2502 */
2504 struct curl_httppost **last_post,
2505 ...);
2506
2507/*
2508 * callback function for curl_formget()
2509 * The void *arg pointer will be the one passed as second argument to
2510 * curl_formget().
2511 * The character buffer passed to it must not be freed.
2512 * Should return the buffer length passed to it as the argument "len" on
2513 * success.
2514 */
2515typedef size_t (*curl_formget_callback)(void *arg, const char *buf,
2516 size_t len);
2517
2518/*
2519 * NAME curl_formget()
2520 *
2521 * DESCRIPTION
2522 *
2523 * Serialize a curl_httppost struct built with curl_formadd().
2524 * Accepts a void pointer as second argument which will be passed to
2525 * the curl_formget_callback function.
2526 * Returns 0 on success.
2527 */
2528CURL_EXTERN int curl_formget(struct curl_httppost *form, void *arg,
2530/*
2531 * NAME curl_formfree()
2532 *
2533 * DESCRIPTION
2535 * Free a multipart formpost previously built with curl_formadd().
2536 */
2538
2539/*
2540 * NAME curl_getenv()
2541 *
2542 * DESCRIPTION
2543 *
2544 * Returns a malloc()'ed string that MUST be curl_free()ed after usage is
2545 * complete. DEPRECATED - see lib/README.curlx
2546 */
2547CURL_EXTERN char *curl_getenv(const char *variable);
2548
2549/*
2550 * NAME curl_version()
2551 *
2552 * DESCRIPTION
2554 * Returns a static ascii string of the libcurl version.
2555 */
2556CURL_EXTERN char *curl_version(void);
2557
2558/*
2559 * NAME curl_easy_escape()
2560 *
2561 * DESCRIPTION
2562 *
2563 * Escapes URL strings (converts all letters consider illegal in URLs to their
2564 * %XX versions). This function returns a new allocated string or NULL if an
2565 * error occurred.
2566 */
2568 const char *string,
2570
2571/* the previous version: */
2572CURL_EXTERN char *curl_escape(const char *string,
2573 int length);
2574
2575
2576/*
2577 * NAME curl_easy_unescape()
2578 *
2579 * DESCRIPTION
2580 *
2581 * Unescapes URL encoding in strings (converts all %XX codes to their 8bit
2582 * versions). This function returns a new allocated string or NULL if an error
2583 * occurred.
2584 * Conversion Note: On non-ASCII platforms the ASCII %XX codes are
2585 * converted into the host encoding.
2586 */
2588 const char *string,
2589 int length,
2590 int *outlength);
2591
2592/* the previous version */
2593CURL_EXTERN char *curl_unescape(const char *string,
2594 int length);
2595
2596/*
2597 * NAME curl_free()
2598 *
2599 * DESCRIPTION
2600 *
2601 * Provided for de-allocation in the same translation unit that did the
2602 * allocation. Added in libcurl 7.10
2603 */
2604CURL_EXTERN void curl_free(void *p);
2605
2606/*
2607 * NAME curl_global_init()
2608 *
2609 * DESCRIPTION
2610 *
2611 * curl_global_init() should be invoked exactly once for each application that
2612 * uses libcurl and before any call of other libcurl functions.
2613
2614 * This function is thread-safe if CURL_VERSION_THREADSAFE is set in the
2615 * curl_version_info_data.features flag (fetch by curl_version_info()).
2616
2617 */
2619
2620/*
2621 * NAME curl_global_init_mem()
2622 *
2623 * DESCRIPTION
2624 *
2625 * curl_global_init() or curl_global_init_mem() should be invoked exactly once
2626 * for each application that uses libcurl. This function can be used to
2627 * initialize libcurl and set user defined memory management callback
2628 * functions. Users can implement memory management routines to check for
2629 * memory leaks, check for mis-use of the curl library etc. User registered
2630 * callback routines will be invoked by this library instead of the system
2631 * memory management routines like malloc, free etc.
2632 */
2639
2640/*
2641 * NAME curl_global_cleanup()
2642 *
2643 * DESCRIPTION
2644 *
2645 * curl_global_cleanup() should be invoked exactly once for each application
2646 * that uses libcurl
2647 */
2650/* linked-list structure for the CURLOPT_QUOTE option (and other) */
2651struct curl_slist {
2652 char *data;
2653 struct curl_slist *next;
2654};
2655
2656/*
2657 * NAME curl_global_sslset()
2658 *
2659 * DESCRIPTION
2660 *
2661 * When built with multiple SSL backends, curl_global_sslset() allows to
2662 * choose one. This function can only be called once, and it must be called
2663 * *before* curl_global_init().
2664 *
2665 * The backend can be identified by the id (e.g. CURLSSLBACKEND_OPENSSL). The
2666 * backend can also be specified via the name parameter (passing -1 as id).
2667 * If both id and name are specified, the name will be ignored. If neither id
2668 * nor name are specified, the function will fail with
2669 * CURLSSLSET_UNKNOWN_BACKEND and set the "avail" pointer to the
2670 * NULL-terminated list of available backends.
2671 *
2672 * Upon success, the function returns CURLSSLSET_OK.
2673 *
2674 * If the specified SSL backend is not available, the function returns
2675 * CURLSSLSET_UNKNOWN_BACKEND and sets the "avail" pointer to a NULL-terminated
2676 * list of available SSL backends.
2677 *
2678 * The SSL backend can be set only once. If it has already been set, a
2679 * subsequent attempt to change it will result in a CURLSSLSET_TOO_LATE.
2682struct curl_ssl_backend {
2684 const char *name;
2688typedef enum {
2689 CURLSSLSET_OK = 0,
2692 CURLSSLSET_NO_BACKENDS /* libcurl was built without any SSL support */
2693} CURLsslset;
2694
2696 const curl_ssl_backend ***avail);
2697
2698/*
2699 * NAME curl_slist_append()
2700 *
2701 * DESCRIPTION
2702 *
2703 * Appends a string to a linked list. If no list exists, it will be created
2704 * first. Returns the new list, after appending.
2705 */
2707 const char *);
2708
2709/*
2710 * NAME curl_slist_free_all()
2711 *
2712 * DESCRIPTION
2714 * free a previously built curl_slist.
2715 */
2717
2718/*
2719 * NAME curl_getdate()
2720 *
2721 * DESCRIPTION
2722 *
2723 * Returns the time, in seconds since 1 Jan 1970 of the time string given in
2724 * the first argument. The time argument in the second parameter is unused
2725 * and should be set to NULL.
2726 */
2727CURL_EXTERN time_t curl_getdate(const char *p, const time_t *unused);
2729/* info about the certificate chain, only for OpenSSL, GnuTLS, Schannel, NSS
2730 and GSKit builds. Asked for with CURLOPT_CERTINFO / CURLINFO_CERTINFO */
2731struct curl_certinfo {
2732 int num_of_certs; /* number of certificates with information */
2733 struct curl_slist **certinfo; /* for each index in this array, there's a
2734 linked list with textual information in the
2735 format "name: value" */
2736};
2737
2738/* Information about the SSL library used and the respective internal SSL
2739 handle, which can be used to obtain further information regarding the
2740 connection. Asked for with CURLINFO_TLS_SSL_PTR or CURLINFO_TLS_SESSION. */
2741struct curl_tlssessioninfo {
2746#define CURLINFO_STRING 0x100000
2747#define CURLINFO_LONG 0x200000
2748#define CURLINFO_DOUBLE 0x300000
2749#define CURLINFO_SLIST 0x400000
2750#define CURLINFO_PTR 0x400000 /* same as SLIST */
2751#define CURLINFO_SOCKET 0x500000
2752#define CURLINFO_OFF_T 0x600000
2753#define CURLINFO_MASK 0x0fffff
2754#define CURLINFO_TYPEMASK 0xf00000
2756typedef enum {
2757 CURLINFO_NONE, /* first, never use this */
2827 CURLINFO_LASTONE = 62
2828} CURLINFO;
2830/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
2831 CURLINFO_HTTP_CODE */
2832#define CURLINFO_HTTP_CODE CURLINFO_RESPONSE_CODE
2833
2834typedef enum {
2835 CURLCLOSEPOLICY_NONE, /* first, never use this */
2842
2843 CURLCLOSEPOLICY_LAST /* last, never use this */
2846#define CURL_GLOBAL_SSL (1<<0) /* no purpose since 7.57.0 */
2847#define CURL_GLOBAL_WIN32 (1<<1)
2848#define CURL_GLOBAL_ALL (CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32)
2849#define CURL_GLOBAL_NOTHING 0
2850#define CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL
2851#define CURL_GLOBAL_ACK_EINTR (1<<2)
2852
2853
2854/*****************************************************************************
2855 * Setup defines, protos etc for the sharing stuff.
2858/* Different data locks for a single share */
2859typedef enum {
2861 /* CURL_LOCK_DATA_SHARE is used internally to say that
2862 * the locking is just made to change the internal state of the share
2863 * itself.
2874/* Different lock access types */
2875typedef enum {
2876 CURL_LOCK_ACCESS_NONE = 0, /* unspecified action */
2877 CURL_LOCK_ACCESS_SHARED = 1, /* for read perhaps */
2878 CURL_LOCK_ACCESS_SINGLE = 2, /* for write perhaps */
2881
2884 curl_lock_access locktype,
2885 void *userptr);
2888 void *userptr);
2891typedef enum {
2892 CURLSHE_OK, /* all is fine */
2895 CURLSHE_INVALID, /* 3 */
2896 CURLSHE_NOMEM, /* 4 out of memory */
2897 CURLSHE_NOT_BUILT_IN, /* 5 feature not present in lib */
2898 CURLSHE_LAST /* never use */
2901typedef enum {
2902 CURLSHOPT_NONE, /* don't use */
2903 CURLSHOPT_SHARE, /* specify a data type to share */
2904 CURLSHOPT_UNSHARE, /* specify which data type to stop sharing */
2905 CURLSHOPT_LOCKFUNC, /* pass in a 'curl_lock_function' pointer */
2906 CURLSHOPT_UNLOCKFUNC, /* pass in a 'curl_unlock_function' pointer */
2907 CURLSHOPT_USERDATA, /* pass in a user data pointer used in the lock/unlock
2908 callback functions */
2909 CURLSHOPT_LAST /* never use */
2915
2916/****************************************************************************
2917 * Structures for querying information about the curl library at runtime.
2920typedef enum {
2931 CURLVERSION_LAST /* never actually use this */
2932} CURLversion;
2933
2934/* The 'CURLVERSION_NOW' is the symbolic name meant to be used by
2935 basically all programs ever that want to get version information. It is
2936 meant to be a built-in version number for what kind of struct the caller
2937 expects. If the struct ever changes, we redefine the NOW to another enum
2938 from above. */
2939#define CURLVERSION_NOW CURLVERSION_TENTH
2942 CURLversion age; /* age of the returned struct */
2943 const char *version; /* LIBCURL_VERSION */
2944 unsigned int version_num; /* LIBCURL_VERSION_NUM */
2945 const char *host; /* OS/host/cpu/machine when configured */
2946 int features; /* bitmask, see defines below */
2947 const char *ssl_version; /* human readable string */
2948 long ssl_version_num; /* not used anymore, always 0 */
2949 const char *libz_version; /* human readable string */
2950 /* protocols is terminated by an entry with a NULL protoname */
2951 const char * const *protocols;
2953 /* The fields below this were added in CURLVERSION_SECOND */
2954 const char *ares;
2956
2957 /* This field was added in CURLVERSION_THIRD */
2958 const char *libidn;
2959
2960 /* These field were added in CURLVERSION_FOURTH */
2961
2962 /* Same as '_libiconv_version' if built with HAVE_ICONV */
2963 int iconv_ver_num;
2964
2965 const char *libssh_version; /* human readable string */
2966
2967 /* These fields were added in CURLVERSION_FIFTH */
2968 unsigned int brotli_ver_num; /* Numeric Brotli version
2969 (MAJOR << 24) | (MINOR << 12) | PATCH */
2970 const char *brotli_version; /* human readable string. */
2971
2972 /* These fields were added in CURLVERSION_SIXTH */
2973 unsigned int nghttp2_ver_num; /* Numeric nghttp2 version
2974 (MAJOR << 16) | (MINOR << 8) | PATCH */
2975 const char *nghttp2_version; /* human readable string. */
2976 const char *quic_version; /* human readable quic (+ HTTP/3) library +
2977 version or NULL */
2978
2979 /* These fields were added in CURLVERSION_SEVENTH */
2980 const char *cainfo; /* the built-in default CURLOPT_CAINFO, might
2981 be NULL */
2982 const char *capath; /* the built-in default CURLOPT_CAPATH, might
2983 be NULL */
2984
2985 /* These fields were added in CURLVERSION_EIGHTH */
2986 unsigned int zstd_ver_num; /* Numeric Zstd version
2987 (MAJOR << 24) | (MINOR << 12) | PATCH */
2988 const char *zstd_version; /* human readable string. */
2989
2990 /* These fields were added in CURLVERSION_NINTH */
2991 const char *hyper_version; /* human readable string. */
2992
2993 /* These fields were added in CURLVERSION_TENTH */
2994 const char *gsasl_version; /* human readable string. */
2998#define CURL_VERSION_IPV6 (1<<0) /* IPv6-enabled */
2999#define CURL_VERSION_KERBEROS4 (1<<1) /* Kerberos V4 auth is supported
3000 (deprecated) */
3001#define CURL_VERSION_SSL (1<<2) /* SSL options are present */
3002#define CURL_VERSION_LIBZ (1<<3) /* libz features are present */
3003#define CURL_VERSION_NTLM (1<<4) /* NTLM auth is supported */
3004#define CURL_VERSION_GSSNEGOTIATE (1<<5) /* Negotiate auth is supported
3005 (deprecated) */
3006#define CURL_VERSION_DEBUG (1<<6) /* Built with debug capabilities */
3007#define CURL_VERSION_ASYNCHDNS (1<<7) /* Asynchronous DNS resolves */
3008#define CURL_VERSION_SPNEGO (1<<8) /* SPNEGO auth is supported */
3009#define CURL_VERSION_LARGEFILE (1<<9) /* Supports files larger than 2GB */
3010#define CURL_VERSION_IDN (1<<10) /* Internationized Domain Names are
3011 supported */
3012#define CURL_VERSION_SSPI (1<<11) /* Built against Windows SSPI */
3013#define CURL_VERSION_CONV (1<<12) /* Character conversions supported */
3014#define CURL_VERSION_CURLDEBUG (1<<13) /* Debug memory tracking supported */
3015#define CURL_VERSION_TLSAUTH_SRP (1<<14) /* TLS-SRP auth is supported */
3016#define CURL_VERSION_NTLM_WB (1<<15) /* NTLM delegation to winbind helper
3017 is supported */
3018#define CURL_VERSION_HTTP2 (1<<16) /* HTTP2 support built-in */
3019#define CURL_VERSION_GSSAPI (1<<17) /* Built against a GSS-API library */
3020#define CURL_VERSION_KERBEROS5 (1<<18) /* Kerberos V5 auth is supported */
3021#define CURL_VERSION_UNIX_SOCKETS (1<<19) /* Unix domain sockets support */
3022#define CURL_VERSION_PSL (1<<20) /* Mozilla's Public Suffix List, used
3023 for cookie domain verification */
3024#define CURL_VERSION_HTTPS_PROXY (1<<21) /* HTTPS-proxy support built-in */
3025#define CURL_VERSION_MULTI_SSL (1<<22) /* Multiple SSL backends available */
3026#define CURL_VERSION_BROTLI (1<<23) /* Brotli features are present. */
3027#define CURL_VERSION_ALTSVC (1<<24) /* Alt-Svc handling built-in */
3028#define CURL_VERSION_HTTP3 (1<<25) /* HTTP3 support built-in */
3029#define CURL_VERSION_ZSTD (1<<26) /* zstd features are present */
3030#define CURL_VERSION_UNICODE (1<<27) /* Unicode support on Windows */
3031#define CURL_VERSION_HSTS (1<<28) /* HSTS is supported */
3032#define CURL_VERSION_GSASL (1<<29) /* libgsasl is supported */
3033#define CURL_VERSION_THREADSAFE (1<<30) /* libcurl API is thread-safe */
3034
3036 * NAME curl_version_info()
3037 *
3038 * DESCRIPTION
3039 *
3040 * This function returns a pointer to a static copy of the version info
3041 * struct. See above.
3042 */
3044
3045/*
3046 * NAME curl_easy_strerror()
3047 *
3048 * DESCRIPTION
3049 *
3050 * The curl_easy_strerror function may be used to turn a CURLcode value
3051 * into the equivalent human readable error string. This is useful
3052 * for printing meaningful error messages.
3053 */
3055
3056/*
3057 * NAME curl_share_strerror()
3058 *
3059 * DESCRIPTION
3060 *
3061 * The curl_share_strerror function may be used to turn a CURLSHcode value
3062 * into the equivalent human readable error string. This is useful
3063 * for printing meaningful error messages.
3064 */
3066
3067/*
3068 * NAME curl_easy_pause()
3069 *
3070 * DESCRIPTION
3072 * The curl_easy_pause function pauses or unpauses transfers. Select the new
3073 * state by setting the bitmask, use the convenience defines below.
3075 */
3078#define CURLPAUSE_RECV (1<<0)
3079#define CURLPAUSE_RECV_CONT (0)
3080
3081#define CURLPAUSE_SEND (1<<2)
3082#define CURLPAUSE_SEND_CONT (0)
3083
3084#define CURLPAUSE_ALL (CURLPAUSE_RECV|CURLPAUSE_SEND)
3085#define CURLPAUSE_CONT (CURLPAUSE_RECV_CONT|CURLPAUSE_SEND_CONT)
3086
3087#ifdef __cplusplus
3088}
3089#endif
3090
3091/* unfortunately, the easy.h and multi.h include files need options and info
3092 stuff before they can be included! */
3093#include "easy.h" /* nothing in curl is fun without the easy stuff */
3094#include "multi.h"
3095#include "urlapi.h"
3096#include "options.h"
3097#include "header.h"
3098
3099/* the typechecker doesn't work in C++ (yet) */
3100#if defined(__GNUC__) && defined(__GNUC_MINOR__) && \
3101 ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && \
3102 !defined(__cplusplus) && !defined(CURL_DISABLE_TYPECHECK)
3103#include "typecheck-gcc.h"
3104#else
3105#if defined(__STDC__) && (__STDC__ >= 1)
3106/* This preprocessor magic that replaces a call with the exact same call is
3107 only done to make sure application authors pass exactly three arguments
3108 to these functions. */
3109#define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param)
3110#define curl_easy_getinfo(handle,info,arg) curl_easy_getinfo(handle,info,arg)
3111#define curl_share_setopt(share,opt,param) curl_share_setopt(share,opt,param)
3112#define curl_multi_setopt(handle,opt,param) curl_multi_setopt(handle,opt,param)
3113#endif /* __STDC__ >= 1 */
3114#endif /* gcc >= 4.3 && !__cplusplus */
3115
3116#endif /* CURLINC_CURL_H */
static int avail
Definition: adh-main.c:39
#define CURLINFO_SOCKET
Definition: curl.h:2748
curl_lock_access
Definition: curl.h:2872
@ CURL_LOCK_ACCESS_SINGLE
Definition: curl.h:2875
@ CURL_LOCK_ACCESS_LAST
Definition: curl.h:2876
@ CURL_LOCK_ACCESS_SHARED
Definition: curl.h:2874
@ CURL_LOCK_ACCESS_NONE
Definition: curl.h:2873
CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask)
CURL_EXTERN curl_mimepart * curl_mime_addpart(curl_mime *mime)
#define CURLINFO_PTR
Definition: curl.h:2747
CURL_EXTERN CURLcode curl_mime_name(curl_mimepart *part, const char *name)
#define CURLOPTTYPE_CBPOINT
Definition: curl.h:1066
#define CURLOPTTYPE_STRINGPOINT
Definition: curl.h:1060
curl_socket_t(* curl_opensocket_callback)(void *clientp, curlsocktype purpose, struct curl_sockaddr *address)
Definition: curl.h:410
int(* curl_fnmatch_callback)(void *ptr, const char *pattern, const char *string)
Definition: curl.h:349
CURLSTScode(* curl_hstsread_callback)(CURL *easy, struct curl_hstsentry *e, void *userp)
Definition: curl.h:998
curl_ftpmethod
Definition: curl.h:961
@ CURLFTPMETHOD_LAST
Definition: curl.h:966
@ CURLFTPMETHOD_SINGLECWD
Definition: curl.h:965
@ CURLFTPMETHOD_MULTICWD
Definition: curl.h:963
@ CURLFTPMETHOD_NOCWD
Definition: curl.h:964
@ CURLFTPMETHOD_DEFAULT
Definition: curl.h:962
CURL_TLSAUTH
Definition: curl.h:2262
@ CURL_TLSAUTH_NONE
Definition: curl.h:2263
@ CURL_TLSAUTH_SRP
Definition: curl.h:2264
@ CURL_TLSAUTH_LAST
Definition: curl.h:2265
void *(* curl_realloc_callback)(void *ptr, size_t size)
Definition: curl.h:443
CURL_EXTERN curl_version_info_data * curl_version_info(CURLversion)
#define CURLINFO_STRING
Definition: curl.h:2743
CURL_EXTERN const char * curl_share_strerror(CURLSHcode)
#define CURLINFO_OFF_T
Definition: curl.h:2749
char *(* curl_strdup_callback)(const char *str)
Definition: curl.h:444
#define CURLINFO_DOUBLE
Definition: curl.h:2745
curliocmd
Definition: curl.h:424
@ CURLIOCMD_RESTARTREAD
Definition: curl.h:426
@ CURLIOCMD_NOP
Definition: curl.h:425
@ CURLIOCMD_LAST
Definition: curl.h:427
CURL_EXTERN char * curl_getenv(const char *variable)
CURL_EXTERN void curl_formfree(struct curl_httppost *form)
CURL_EXTERN void curl_slist_free_all(struct curl_slist *)
#define CURL_EXTERN
Definition: curl.h:124
void(* curl_lock_function)(CURL *handle, curl_lock_data data, curl_lock_access locktype, void *userptr)
Definition: curl.h:2879
CURL_EXTERN char * curl_unescape(const char *string, int length)
@ CURL_RTSPREQ_ANNOUNCE
Definition: curl.h:2213
@ CURL_RTSPREQ_RECORD
Definition: curl.h:2220
@ CURL_RTSPREQ_NONE
Definition: curl.h:2210
@ CURL_RTSPREQ_PAUSE
Definition: curl.h:2216
@ CURL_RTSPREQ_OPTIONS
Definition: curl.h:2211
@ CURL_RTSPREQ_SET_PARAMETER
Definition: curl.h:2219
@ CURL_RTSPREQ_TEARDOWN
Definition: curl.h:2217
@ CURL_RTSPREQ_LAST
Definition: curl.h:2222
@ CURL_RTSPREQ_PLAY
Definition: curl.h:2215
@ CURL_RTSPREQ_RECEIVE
Definition: curl.h:2221
@ CURL_RTSPREQ_GET_PARAMETER
Definition: curl.h:2218
@ CURL_RTSPREQ_SETUP
Definition: curl.h:2214
@ CURL_RTSPREQ_DESCRIBE
Definition: curl.h:2212
#define CURLOPTTYPE_BLOB
Definition: curl.h:1049
curl_ftpccc
Definition: curl.h:934
@ CURLFTPSSL_CCC_PASSIVE
Definition: curl.h:936
@ CURLFTPSSL_CCC_ACTIVE
Definition: curl.h:937
@ CURLFTPSSL_CCC_LAST
Definition: curl.h:938
@ CURLFTPSSL_CCC_NONE
Definition: curl.h:935
int(* curl_sshhostkeycallback)(void *clientp, int keytype, const char *key, size_t keylen)
Definition: curl.h:863
#define CURLINFO_SLIST
Definition: curl.h:2746
CURL_EXTERN CURLSH * curl_share_init(void)
CURL_EXTERN void curl_global_cleanup(void)
CURLversion
Definition: curl.h:2917
@ CURLVERSION_SIXTH
Definition: curl.h:2923
@ CURLVERSION_EIGHTH
Definition: curl.h:2925
@ CURLVERSION_LAST
Definition: curl.h:2928
@ CURLVERSION_FIFTH
Definition: curl.h:2922
@ CURLVERSION_SECOND
Definition: curl.h:2919
@ CURLVERSION_FOURTH
Definition: curl.h:2921
@ CURLVERSION_THIRD
Definition: curl.h:2920
@ CURLVERSION_FIRST
Definition: curl.h:2918
@ CURLVERSION_SEVENTH
Definition: curl.h:2924
@ CURLVERSION_TENTH
Definition: curl.h:2927
@ CURLVERSION_NINTH
Definition: curl.h:2926
CURL_EXTERN CURLcode curl_mime_filedata(curl_mimepart *part, const char *filename)
CURL_EXTERN char * curl_easy_escape(CURL *handle, const char *string, int length)
CURLsslset
Definition: curl.h:2685
@ CURLSSLSET_UNKNOWN_BACKEND
Definition: curl.h:2687
@ CURLSSLSET_TOO_LATE
Definition: curl.h:2688
@ CURLSSLSET_NO_BACKENDS
Definition: curl.h:2689
@ CURLSSLSET_OK
Definition: curl.h:2686
CURL_EXTERN int curl_strnequal(const char *s1, const char *s2, size_t n)
long(* curl_chunk_bgn_callback)(const void *transfer_info, void *ptr, int remains)
Definition: curl.h:326
CURLoption
Definition: curl.h:1075
@ CURLOPT_LASTENTRY
Definition: curl.h:2144
int(* curl_sockopt_callback)(void *clientp, curl_socket_t curlfd, curlsocktype purpose)
Definition: curl.h:395
int(* curl_xferinfo_callback)(void *clientp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow)
Definition: curl.h:226
@ CURL_SSLVERSION_DEFAULT
Definition: curl.h:2238
@ CURL_SSLVERSION_SSLv2
Definition: curl.h:2240
@ CURL_SSLVERSION_SSLv3
Definition: curl.h:2241
@ CURL_SSLVERSION_TLSv1_1
Definition: curl.h:2243
@ CURL_SSLVERSION_TLSv1_3
Definition: curl.h:2245
@ CURL_SSLVERSION_LAST
Definition: curl.h:2247
@ CURL_SSLVERSION_TLSv1_0
Definition: curl.h:2242
@ CURL_SSLVERSION_TLSv1_2
Definition: curl.h:2244
@ CURL_SSLVERSION_TLSv1
Definition: curl.h:2239
CURL_EXTERN CURLcode curl_mime_data_cb(curl_mimepart *part, curl_off_t datasize, curl_read_callback readfunc, curl_seek_callback seekfunc, curl_free_callback freefunc, void *arg)
#define CURLOPTTYPE_SLISTPOINT
Definition: curl.h:1063
@ CURL_HTTP_VERSION_2TLS
Definition: curl.h:2193
@ CURL_HTTP_VERSION_3
Definition: curl.h:2196
@ CURL_HTTP_VERSION_1_1
Definition: curl.h:2191
@ CURL_HTTP_VERSION_NONE
Definition: curl.h:2187
@ CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE
Definition: curl.h:2194
@ CURL_HTTP_VERSION_LAST
Definition: curl.h:2198
@ CURL_HTTP_VERSION_1_0
Definition: curl.h:2190
@ CURL_HTTP_VERSION_2_0
Definition: curl.h:2192
CURL_EXTERN void curl_mime_free(curl_mime *mime)
void CURLSH
Definition: curl.h:104
curl_khstat
Definition: curl.h:835
@ CURLKHSTAT_LAST
Definition: curl.h:843
@ CURLKHSTAT_FINE
Definition: curl.h:837
@ CURLKHSTAT_REJECT
Definition: curl.h:838
@ CURLKHSTAT_FINE_ADD_TO_FILE
Definition: curl.h:836
@ CURLKHSTAT_FINE_REPLACE
Definition: curl.h:842
@ CURLKHSTAT_DEFER
Definition: curl.h:839
size_t(* curl_read_callback)(char *buffer, size_t size, size_t nitems, void *instream)
Definition: curl.h:375
int(* curl_trailer_callback)(struct curl_slist **list, void *userdata)
Definition: curl.h:380
curl_khmatch
Definition: curl.h:847
@ CURLKHMATCH_LAST
Definition: curl.h:851
@ CURLKHMATCH_OK
Definition: curl.h:848
@ CURLKHMATCH_MISSING
Definition: curl.h:850
@ CURLKHMATCH_MISMATCH
Definition: curl.h:849
CURL_EXTERN CURLFORMcode curl_formadd(struct curl_httppost **httppost, struct curl_httppost **last_post,...)
CURLSTScode
Definition: curl.h:992
@ CURLSTS_OK
Definition: curl.h:993
@ CURLSTS_FAIL
Definition: curl.h:995
@ CURLSTS_DONE
Definition: curl.h:994
curl_TimeCond
Definition: curl.h:2280
@ CURL_TIMECOND_LASTMOD
Definition: curl.h:2285
@ CURL_TIMECOND_IFUNMODSINCE
Definition: curl.h:2284
@ CURL_TIMECOND_IFMODSINCE
Definition: curl.h:2283
@ CURL_TIMECOND_LAST
Definition: curl.h:2287
@ CURL_TIMECOND_NONE
Definition: curl.h:2281
#define CURLOPTTYPE_FUNCTIONPOINT
Definition: curl.h:1047
int(* curl_closesocket_callback)(void *clientp, curl_socket_t item)
Definition: curl.h:415
CURL_EXTERN void curl_free(void *p)
#define CURLOPTTYPE_OBJECTPOINT
Definition: curl.h:1046
long(* curl_chunk_end_callback)(void *ptr)
Definition: curl.h:340
CURL_EXTERN CURLcode curl_global_init_mem(long flags, curl_malloc_callback m, curl_free_callback f, curl_realloc_callback r, curl_strdup_callback s, curl_calloc_callback c)
int(* curl_sshkeycallback)(CURL *easy, const struct curl_khkey *knownkey, const struct curl_khkey *foundkey, enum curl_khmatch, void *clientp)
Definition: curl.h:855
int(* curl_seek_callback)(void *instream, curl_off_t offset, int origin)
Definition: curl.h:357
curl_proxytype
Definition: curl.h:751
@ CURLPROXY_SOCKS5
Definition: curl.h:759
@ CURLPROXY_SOCKS4
Definition: curl.h:757
@ CURLPROXY_SOCKS4A
Definition: curl.h:760
@ CURLPROXY_HTTP_1_0
Definition: curl.h:754
@ CURLPROXY_HTTP
Definition: curl.h:752
@ CURLPROXY_SOCKS5_HOSTNAME
Definition: curl.h:761
@ CURLPROXY_HTTPS
Definition: curl.h:756
curl_ftpcreatedir
Definition: curl.h:950
@ CURLFTP_CREATE_DIR_LAST
Definition: curl.h:957
@ CURLFTP_CREATE_DIR
Definition: curl.h:952
@ CURLFTP_CREATE_DIR_RETRY
Definition: curl.h:955
@ CURLFTP_CREATE_DIR_NONE
Definition: curl.h:951
CURLSHoption
Definition: curl.h:2898
@ CURLSHOPT_UNLOCKFUNC
Definition: curl.h:2903
@ CURLSHOPT_LAST
Definition: curl.h:2906
@ CURLSHOPT_LOCKFUNC
Definition: curl.h:2902
@ CURLSHOPT_USERDATA
Definition: curl.h:2904
@ CURLSHOPT_UNSHARE
Definition: curl.h:2901
@ CURLSHOPT_NONE
Definition: curl.h:2899
@ CURLSHOPT_SHARE
Definition: curl.h:2900
CURL_EXTERN CURLSHcode curl_share_cleanup(CURLSH *)
curl_sslbackend
Definition: curl.h:140
@ CURLSSLBACKEND_GNUTLS
Definition: curl.h:143
@ CURLSSLBACKEND_NONE
Definition: curl.h:141
@ CURLSSLBACKEND_MBEDTLS
Definition: curl.h:152
@ CURLSSLBACKEND_MESALINK
Definition: curl.h:153
@ CURLSSLBACKEND_RUSTLS
Definition: curl.h:155
@ CURLSSLBACKEND_NSS
Definition: curl.h:144
@ CURLSSLBACKEND_GSKIT
Definition: curl.h:146
@ CURLSSLBACKEND_WOLFSSL
Definition: curl.h:148
@ CURLSSLBACKEND_POLARSSL
Definition: curl.h:147
@ CURLSSLBACKEND_BEARSSL
Definition: curl.h:154
@ CURLSSLBACKEND_SECURETRANSPORT
Definition: curl.h:150
@ CURLSSLBACKEND_OBSOLETE4
Definition: curl.h:145
@ CURLSSLBACKEND_OPENSSL
Definition: curl.h:142
@ CURLSSLBACKEND_AXTLS
Definition: curl.h:151
@ CURLSSLBACKEND_SCHANNEL
Definition: curl.h:149
CURL_EXTERN CURLcode curl_global_init(long flags)
curl_infotype
Definition: curl.h:451
@ CURLINFO_SSL_DATA_OUT
Definition: curl.h:458
@ CURLINFO_END
Definition: curl.h:459
@ CURLINFO_HEADER_OUT
Definition: curl.h:454
@ CURLINFO_DATA_IN
Definition: curl.h:455
@ CURLINFO_TEXT
Definition: curl.h:452
@ CURLINFO_DATA_OUT
Definition: curl.h:456
@ CURLINFO_HEADER_IN
Definition: curl.h:453
@ CURLINFO_SSL_DATA_IN
Definition: curl.h:457
curlfiletype
Definition: curl.h:268
@ CURLFILETYPE_DOOR
Definition: curl.h:276
@ CURLFILETYPE_SOCKET
Definition: curl.h:275
@ CURLFILETYPE_DEVICE_CHAR
Definition: curl.h:273
@ CURLFILETYPE_FILE
Definition: curl.h:269
@ CURLFILETYPE_DIRECTORY
Definition: curl.h:270
@ CURLFILETYPE_NAMEDPIPE
Definition: curl.h:274
@ CURLFILETYPE_DEVICE_BLOCK
Definition: curl.h:272
@ CURLFILETYPE_UNKNOWN
Definition: curl.h:278
@ CURLFILETYPE_SYMLINK
Definition: curl.h:271
CURL_EXTERN char * curl_escape(const char *string, int length)
int(* curl_resolver_start_callback)(void *resolver_state, void *reserved, void *userdata)
Definition: curl.h:264
CURLproxycode
Definition: curl.h:703
@ CURLPX_GSSAPI_PERMSG
Definition: curl.h:709
@ CURLPX_CLOSED
Definition: curl.h:707
@ CURLPX_BAD_VERSION
Definition: curl.h:706
@ CURLPX_GSSAPI
Definition: curl.h:708
@ CURLPX_REPLY_ADDRESS_TYPE_NOT_SUPPORTED
Definition: curl.h:721
@ CURLPX_UNKNOWN_MODE
Definition: curl.h:736
@ CURLPX_SEND_AUTH
Definition: curl.h:732
@ CURLPX_REPLY_GENERAL_SERVER_FAILURE
Definition: curl.h:724
@ CURLPX_REPLY_TTL_EXPIRED
Definition: curl.h:728
@ CURLPX_IDENTD_DIFFER
Definition: curl.h:712
@ CURLPX_REPLY_UNASSIGNED
Definition: curl.h:729
@ CURLPX_BAD_ADDRESS_TYPE
Definition: curl.h:705
@ CURLPX_RECV_ADDRESS
Definition: curl.h:717
@ CURLPX_REPLY_NETWORK_UNREACHABLE
Definition: curl.h:726
@ CURLPX_LONG_HOSTNAME
Definition: curl.h:713
@ CURLPX_SEND_REQUEST
Definition: curl.h:734
@ CURLPX_REPLY_COMMAND_NOT_SUPPORTED
Definition: curl.h:722
@ CURLPX_NO_AUTH
Definition: curl.h:716
@ CURLPX_IDENTD
Definition: curl.h:711
@ CURLPX_GSSAPI_PROTECTION
Definition: curl.h:710
@ CURLPX_REQUEST_FAILED
Definition: curl.h:730
@ CURLPX_LONG_PASSWD
Definition: curl.h:714
@ CURLPX_LAST
Definition: curl.h:738
@ CURLPX_LONG_USER
Definition: curl.h:715
@ CURLPX_RECV_AUTH
Definition: curl.h:718
@ CURLPX_RECV_REQACK
Definition: curl.h:720
@ CURLPX_UNKNOWN_FAIL
Definition: curl.h:735
@ CURLPX_REPLY_HOST_UNREACHABLE
Definition: curl.h:725
@ CURLPX_OK
Definition: curl.h:704
@ CURLPX_RESOLVE_HOST
Definition: curl.h:731
@ CURLPX_REPLY_NOT_ALLOWED
Definition: curl.h:727
@ CURLPX_REPLY_CONNECTION_REFUSED
Definition: curl.h:723
@ CURLPX_SEND_CONNECT
Definition: curl.h:733
@ CURLPX_USER_REJECTED
Definition: curl.h:737
@ CURLPX_RECV_CONNECT
Definition: curl.h:719
CURL_EXTERN int curl_formget(struct curl_httppost *form, void *arg, curl_formget_callback append)
curl_usessl
Definition: curl.h:873
@ CURLUSESSL_TRY
Definition: curl.h:875
@ CURLUSESSL_CONTROL
Definition: curl.h:876
@ CURLUSESSL_NONE
Definition: curl.h:874
@ CURLUSESSL_ALL
Definition: curl.h:877
@ CURLUSESSL_LAST
Definition: curl.h:878
#define CURLOPT(na, t, nu)
Definition: curl.h:1055
CURLINFO
Definition: curl.h:2753
@ CURLINFO_APPCONNECT_TIME_T
Definition: curl.h:2817
@ CURLINFO_SSL_ENGINES
Definition: curl.h:2788
@ CURLINFO_CERTINFO
Definition: curl.h:2795
@ CURLINFO_HEADER_SIZE
Definition: curl.h:2769
@ CURLINFO_STARTTRANSFER_TIME_T
Definition: curl.h:2815
@ CURLINFO_REDIRECT_URL
Definition: curl.h:2792
@ CURLINFO_FILETIME_T
Definition: curl.h:2773
@ CURLINFO_TLS_SSL_PTR
Definition: curl.h:2806
@ CURLINFO_PRETRANSFER_TIME_T
Definition: curl.h:2814
@ CURLINFO_HTTP_VERSION
Definition: curl.h:2807
@ CURLINFO_SIZE_DOWNLOAD
Definition: curl.h:2763
@ CURLINFO_SIZE_DOWNLOAD_T
Definition: curl.h:2764
@ CURLINFO_RTSP_CSEQ_RECV
Definition: curl.h:2800
@ CURLINFO_PROXY_SSL_VERIFYRESULT
Definition: curl.h:2808
@ CURLINFO_PRIVATE
Definition: curl.h:2782
@ CURLINFO_APPCONNECT_TIME
Definition: curl.h:2794
@ CURLINFO_RTSP_CLIENT_CSEQ
Definition: curl.h:2798
@ CURLINFO_RTSP_SESSION_ID
Definition: curl.h:2797
@ CURLINFO_HTTPAUTH_AVAIL
Definition: curl.h:2784
@ CURLINFO_PRIMARY_IP
Definition: curl.h:2793
@ CURLINFO_CONNECT_TIME
Definition: curl.h:2759
@ CURLINFO_COOKIELIST
Definition: curl.h:2789
@ CURLINFO_FILETIME
Definition: curl.h:2772
@ CURLINFO_TOTAL_TIME_T
Definition: curl.h:2811
@ CURLINFO_EFFECTIVE_METHOD
Definition: curl.h:2819
@ CURLINFO_LOCAL_PORT
Definition: curl.h:2803
@ CURLINFO_NUM_CONNECTS
Definition: curl.h:2787
@ CURLINFO_REQUEST_SIZE
Definition: curl.h:2770
@ CURLINFO_CONDITION_UNMET
Definition: curl.h:2796
@ CURLINFO_NONE
Definition: curl.h:2754
@ CURLINFO_SSL_VERIFYRESULT
Definition: curl.h:2771
@ CURLINFO_PRETRANSFER_TIME
Definition: curl.h:2760
@ CURLINFO_CONTENT_LENGTH_UPLOAD
Definition: curl.h:2776
@ CURLINFO_PRIMARY_PORT
Definition: curl.h:2801
@ CURLINFO_CONNECT_TIME_T
Definition: curl.h:2813
@ CURLINFO_OS_ERRNO
Definition: curl.h:2786
@ CURLINFO_SPEED_DOWNLOAD_T
Definition: curl.h:2766
@ CURLINFO_RETRY_AFTER
Definition: curl.h:2818
@ CURLINFO_LASTONE
Definition: curl.h:2824
@ CURLINFO_CONTENT_LENGTH_UPLOAD_T
Definition: curl.h:2777
@ CURLINFO_REFERER
Definition: curl.h:2821
@ CURLINFO_PROXYAUTH_AVAIL
Definition: curl.h:2785
@ CURLINFO_FTP_ENTRY_PATH
Definition: curl.h:2791
@ CURLINFO_NAMELOOKUP_TIME
Definition: curl.h:2758
@ CURLINFO_LASTSOCKET
Definition: curl.h:2790
@ CURLINFO_ACTIVESOCKET
Definition: curl.h:2805
@ CURLINFO_NAMELOOKUP_TIME_T
Definition: curl.h:2812
@ CURLINFO_SIZE_UPLOAD
Definition: curl.h:2761
@ CURLINFO_REDIRECT_COUNT
Definition: curl.h:2781
@ CURLINFO_REDIRECT_TIME_T
Definition: curl.h:2816
@ CURLINFO_CONTENT_TYPE
Definition: curl.h:2779
@ CURLINFO_CAINFO
Definition: curl.h:2822
@ CURLINFO_SPEED_UPLOAD
Definition: curl.h:2767
@ CURLINFO_HTTP_CONNECTCODE
Definition: curl.h:2783
@ CURLINFO_RTSP_SERVER_CSEQ
Definition: curl.h:2799
@ CURLINFO_REDIRECT_TIME
Definition: curl.h:2780
@ CURLINFO_CAPATH
Definition: curl.h:2823
@ CURLINFO_CONTENT_LENGTH_DOWNLOAD
Definition: curl.h:2774
@ CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
Definition: curl.h:2775
@ CURLINFO_EFFECTIVE_URL
Definition: curl.h:2755
@ CURLINFO_TOTAL_TIME
Definition: curl.h:2757
@ CURLINFO_SPEED_UPLOAD_T
Definition: curl.h:2768
@ CURLINFO_SIZE_UPLOAD_T
Definition: curl.h:2762
@ CURLINFO_PROTOCOL
Definition: curl.h:2809
@ CURLINFO_SPEED_DOWNLOAD
Definition: curl.h:2765
@ CURLINFO_TLS_SESSION
Definition: curl.h:2804
@ CURLINFO_LOCAL_IP
Definition: curl.h:2802
@ CURLINFO_RESPONSE_CODE
Definition: curl.h:2756
@ CURLINFO_SCHEME
Definition: curl.h:2810
@ CURLINFO_PROXY_ERROR
Definition: curl.h:2820
@ CURLINFO_STARTTRANSFER_TIME
Definition: curl.h:2778
void *(* curl_calloc_callback)(size_t nmemb, size_t size)
Definition: curl.h:445
curl_closepolicy
Definition: curl.h:2831
@ CURLCLOSEPOLICY_CALLBACK
Definition: curl.h:2838
@ CURLCLOSEPOLICY_SLOWEST
Definition: curl.h:2837
@ CURLCLOSEPOLICY_OLDEST
Definition: curl.h:2834
@ CURLCLOSEPOLICY_LAST
Definition: curl.h:2840
@ CURLCLOSEPOLICY_NONE
Definition: curl.h:2832
@ CURLCLOSEPOLICY_LEAST_TRAFFIC
Definition: curl.h:2836
@ CURLCLOSEPOLICY_LEAST_RECENTLY_USED
Definition: curl.h:2835
int(* curl_prereq_callback)(void *clientp, char *conn_primary_ip, char *conn_local_ip, int conn_primary_port, int conn_local_port)
Definition: curl.h:470
size_t(* curl_formget_callback)(void *arg, const char *buf, size_t len)
Definition: curl.h:2512
CURL_EXTERN struct curl_slist * curl_slist_append(struct curl_slist *, const char *)
CURL_EXTERN curl_mime * curl_mime_init(CURL *easy)
#define CURLOPTTYPE_LONG
Definition: curl.h:1045
CURLSHcode
Definition: curl.h:2888
@ CURLSHE_NOT_BUILT_IN
Definition: curl.h:2894
@ CURLSHE_OK
Definition: curl.h:2889
@ CURLSHE_INVALID
Definition: curl.h:2892
@ CURLSHE_BAD_OPTION
Definition: curl.h:2890
@ CURLSHE_LAST
Definition: curl.h:2895
@ CURLSHE_IN_USE
Definition: curl.h:2891
@ CURLSHE_NOMEM
Definition: curl.h:2893
struct curl_mimepart curl_mimepart
Definition: curl.h:2300
CURL_EXTERN char * curl_version(void)
CURL_EXTERN CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype)
void(* curl_unlock_function)(CURL *handle, curl_lock_data data, void *userptr)
Definition: curl.h:2883
#define CURLOPTTYPE_OFF_T
Definition: curl.h:1048
CURLSTScode(* curl_hstswrite_callback)(CURL *easy, struct curl_hstsentry *e, struct curl_index *i, void *userp)
Definition: curl.h:1001
CURLcode(* curl_conv_callback)(char *buffer, size_t length)
Definition: curl.h:742
CURL_EXTERN CURLcode curl_mime_subparts(curl_mimepart *part, curl_mime *subparts)
CURL_EXTERN CURLcode curl_mime_filename(curl_mimepart *part, const char *filename)
void CURL
Definition: curl.h:103
CURL_EXTERN int curl_strequal(const char *s1, const char *s2)
CURLFORMcode
Definition: curl.h:2477
@ CURL_FORMADD_LAST
Definition: curl.h:2488
@ CURL_FORMADD_MEMORY
Definition: curl.h:2480
@ CURL_FORMADD_ILLEGAL_ARRAY
Definition: curl.h:2485
@ CURL_FORMADD_INCOMPLETE
Definition: curl.h:2484
@ CURL_FORMADD_DISABLED
Definition: curl.h:2486
@ CURL_FORMADD_OPTION_TWICE
Definition: curl.h:2481
@ CURL_FORMADD_UNKNOWN_OPTION
Definition: curl.h:2483
@ CURL_FORMADD_OK
Definition: curl.h:2478
@ CURL_FORMADD_NULL
Definition: curl.h:2482
CURL_EXTERN CURLcode curl_mime_encoder(curl_mimepart *part, const char *encoding)
CURL_NETRC_OPTION
Definition: curl.h:2226
@ CURL_NETRC_OPTIONAL
Definition: curl.h:2229
@ CURL_NETRC_LAST
Definition: curl.h:2234
@ CURL_NETRC_REQUIRED
Definition: curl.h:2231
@ CURL_NETRC_IGNORED
Definition: curl.h:2227
CURL_EXTERN time_t curl_getdate(const char *p, const time_t *unused)
CURL_EXTERN char * curl_easy_unescape(CURL *handle, const char *string, int length, int *outlength)
size_t(* curl_write_callback)(char *buffer, size_t size, size_t nitems, void *outstream)
Definition: curl.h:258
struct curl_mime curl_mime
Definition: curl.h:2299
#define CURLINFO_LONG
Definition: curl.h:2744
void(* curl_free_callback)(void *ptr)
Definition: curl.h:442
int(* curl_debug_callback)(CURL *handle, curl_infotype type, char *data, size_t size, void *userptr)
Definition: curl.h:463
curl_khtype
Definition: curl.h:817
@ CURLKHTYPE_ECDSA
Definition: curl.h:822
@ CURLKHTYPE_ED25519
Definition: curl.h:823
@ CURLKHTYPE_DSS
Definition: curl.h:821
@ CURLKHTYPE_RSA1
Definition: curl.h:819
@ CURLKHTYPE_RSA
Definition: curl.h:820
@ CURLKHTYPE_UNKNOWN
Definition: curl.h:818
int curl_socket_t
Definition: curl.h:133
CURL_EXTERN CURLcode curl_mime_headers(curl_mimepart *part, struct curl_slist *headers, int take_ownership)
@ CURL_SSLVERSION_MAX_LAST
Definition: curl.h:2259
@ CURL_SSLVERSION_MAX_DEFAULT
Definition: curl.h:2252
@ CURL_SSLVERSION_MAX_TLSv1_0
Definition: curl.h:2253
@ CURL_SSLVERSION_MAX_TLSv1_3
Definition: curl.h:2256
@ CURL_SSLVERSION_MAX_TLSv1_1
Definition: curl.h:2254
@ CURL_SSLVERSION_MAX_TLSv1_2
Definition: curl.h:2255
@ CURL_SSLVERSION_MAX_NONE
Definition: curl.h:2251
curlioerr(* curl_ioctl_callback)(CURL *handle, int cmd, void *clientp)
Definition: curl.h:430
curlsocktype
Definition: curl.h:383
@ CURLSOCKTYPE_LAST
Definition: curl.h:386
@ CURLSOCKTYPE_IPCXN
Definition: curl.h:384
@ CURLSOCKTYPE_ACCEPT
Definition: curl.h:385
CURLformoption
Definition: curl.h:2426
@ CURLFORM_PTRNAME
Definition: curl.h:2429
@ CURLFORM_BUFFERLENGTH
Definition: curl.h:2441
@ CURLFORM_BUFFER
Definition: curl.h:2439
@ CURLFORM_FILENAME
Definition: curl.h:2445
@ CURLFORM_FILECONTENT
Definition: curl.h:2434
@ CURLFORM_NOTHING
Definition: curl.h:2427
@ CURLFORM_NAMELENGTH
Definition: curl.h:2430
@ CURLFORM_OBSOLETE
Definition: curl.h:2436
@ CURLFORM_COPYNAME
Definition: curl.h:2428
@ CURLFORM_CONTENTSLENGTH
Definition: curl.h:2433
@ CURLFORM_END
Definition: curl.h:2446
@ CURLFORM_OBSOLETE2
Definition: curl.h:2447
@ CURLFORM_PTRCONTENTS
Definition: curl.h:2432
@ CURLFORM_STREAM
Definition: curl.h:2449
@ CURLFORM_LASTENTRY
Definition: curl.h:2452
@ CURLFORM_ARRAY
Definition: curl.h:2435
@ CURLFORM_CONTENTHEADER
Definition: curl.h:2444
@ CURLFORM_FILE
Definition: curl.h:2437
@ CURLFORM_BUFFERPTR
Definition: curl.h:2440
@ CURLFORM_CONTENTTYPE
Definition: curl.h:2443
@ CURLFORM_CONTENTLEN
Definition: curl.h:2450
@ CURLFORM_COPYCONTENTS
Definition: curl.h:2431
#define CURLOPTTYPE_VALUES
Definition: curl.h:1069
curlioerr
Definition: curl.h:417
@ CURLIOE_LAST
Definition: curl.h:421
@ CURLIOE_FAILRESTART
Definition: curl.h:420
@ CURLIOE_UNKNOWNCMD
Definition: curl.h:419
@ CURLIOE_OK
Definition: curl.h:418
CURLcode
Definition: curl.h:490
@ CURLE_TFTP_UNKNOWNID
Definition: curl.h:575
@ CURLE_HTTP2
Definition: curl.h:513
@ CURLE_TFTP_PERM
Definition: curl.h:572
@ CURLE_BAD_FUNCTION_ARGUMENT
Definition: curl.h:542
@ CURLE_FTP_ACCEPT_FAILED
Definition: curl.h:504
@ CURLE_BAD_CONTENT_ENCODING
Definition: curl.h:562
@ CURLE_FTP_WEIRD_PASV_REPLY
Definition: curl.h:510
@ CURLE_SEND_FAIL_REWIND
Definition: curl.h:566
@ CURLE_AUTH_ERROR
Definition: curl.h:610
@ CURLE_HTTP_RETURNED_ERROR
Definition: curl.h:521
@ CURLE_SSL_CRL_BADFILE
Definition: curl.h:592
@ CURLE_OBSOLETE51
Definition: curl.h:550
@ CURLE_FTP_PORT_FAILED
Definition: curl.h:529
@ CURLE_OBSOLETE32
Definition: curl.h:531
@ CURLE_OBSOLETE50
Definition: curl.h:549
@ CURLE_ABORTED_BY_CALLBACK
Definition: curl.h:541
@ CURLE_HTTP_POST_ERROR
Definition: curl.h:533
@ CURLE_REMOTE_DISK_FULL
Definition: curl.h:573
@ CURLE_FUNCTION_NOT_FOUND
Definition: curl.h:540
@ CURLE_SSL_CIPHER
Definition: curl.h:559
@ CURLE_UPLOAD_FAILED
Definition: curl.h:524
@ CURLE_HTTP2_STREAM
Definition: curl.h:606
@ CURLE_FTP_COULDNT_USE_REST
Definition: curl.h:530
@ CURLE_FTP_ACCEPT_TIMEOUT
Definition: curl.h:507
@ CURLE_CONV_FAILED
Definition: curl.h:578
@ CURLE_OBSOLETE24
Definition: curl.h:523
@ CURLE_REMOTE_FILE_NOT_FOUND
Definition: curl.h:582
@ CURLE_SSL_ENGINE_NOTFOUND
Definition: curl.h:552
@ CURLE_SSL_ISSUER_ERROR
Definition: curl.h:594
@ CURLE_FILESIZE_EXCEEDED
Definition: curl.h:564
@ CURLE_SSL_INVALIDCERTSTATUS
Definition: curl.h:605
@ CURLE_QUIC_CONNECT_ERROR
Definition: curl.h:613
@ CURLE_SSL_CERTPROBLEM
Definition: curl.h:558
@ CURLE_LOGIN_DENIED
Definition: curl.h:569
@ CURLE_OBSOLETE57
Definition: curl.h:557
@ CURL_LAST
Definition: curl.h:617
@ CURLE_REMOTE_ACCESS_DENIED
Definition: curl.h:501
@ CURLE_HTTP3
Definition: curl.h:612
@ CURLE_RECURSIVE_API_CALL
Definition: curl.h:608
@ CURLE_FILE_COULDNT_READ_FILE
Definition: curl.h:536
@ CURLE_PEER_FAILED_VERIFICATION
Definition: curl.h:560
@ CURLE_OBSOLETE44
Definition: curl.h:543
@ CURLE_PROXY
Definition: curl.h:614
@ CURLE_SSL_PINNEDPUBKEYNOTMATCH
Definition: curl.h:603
@ CURLE_OBSOLETE46
Definition: curl.h:545
@ CURLE_OBSOLETE29
Definition: curl.h:528
@ CURLE_FAILED_INIT
Definition: curl.h:493
@ CURLE_QUOTE_ERROR
Definition: curl.h:520
@ CURLE_AGAIN
Definition: curl.h:589
@ CURLE_TOO_MANY_REDIRECTS
Definition: curl.h:546
@ CURLE_SSL_SHUTDOWN_FAILED
Definition: curl.h:587
@ CURLE_SSL_CACERT_BADFILE
Definition: curl.h:580
@ CURLE_COULDNT_CONNECT
Definition: curl.h:499
@ CURLE_TFTP_NOTFOUND
Definition: curl.h:571
@ CURLE_SSL_ENGINE_SETFAILED
Definition: curl.h:553
@ CURLE_CHUNK_FAILED
Definition: curl.h:600
@ CURLE_COULDNT_RESOLVE_PROXY
Definition: curl.h:497
@ CURLE_UNSUPPORTED_PROTOCOL
Definition: curl.h:492
@ CURLE_FTP_BAD_FILE_LIST
Definition: curl.h:599
@ CURLE_GOT_NOTHING
Definition: curl.h:551
@ CURLE_WEIRD_SERVER_REPLY
Definition: curl.h:500
@ CURLE_FTP_WEIRD_PASS_REPLY
Definition: curl.h:506
@ CURLE_SEND_ERROR
Definition: curl.h:555
@ CURLE_SSH
Definition: curl.h:583
@ CURLE_TFTP_NOSUCHUSER
Definition: curl.h:577
@ CURLE_SSL_ENGINE_INITFAILED
Definition: curl.h:568
@ CURLE_FTP_COULDNT_SET_TYPE
Definition: curl.h:516
@ CURLE_BAD_DOWNLOAD_RESUME
Definition: curl.h:535
@ CURLE_LDAP_SEARCH_FAILED
Definition: curl.h:538
@ CURLE_FTP_WEIRD_227_FORMAT
Definition: curl.h:511
@ CURLE_LDAP_CANNOT_BIND
Definition: curl.h:537
@ CURLE_OPERATION_TIMEDOUT
Definition: curl.h:527
@ CURLE_RANGE_ERROR
Definition: curl.h:532
@ CURLE_RTSP_SESSION_ERROR
Definition: curl.h:598
@ CURLE_URL_MALFORMAT
Definition: curl.h:494
@ CURLE_OUT_OF_MEMORY
Definition: curl.h:526
@ CURLE_TFTP_ILLEGAL
Definition: curl.h:574
@ CURLE_UNKNOWN_OPTION
Definition: curl.h:547
@ CURLE_INTERFACE_FAILED
Definition: curl.h:544
@ CURLE_FTP_COULDNT_RETR_FILE
Definition: curl.h:518
@ CURLE_OBSOLETE40
Definition: curl.h:539
@ CURLE_OBSOLETE76
Definition: curl.h:579
@ CURLE_PARTIAL_FILE
Definition: curl.h:517
@ CURLE_NOT_BUILT_IN
Definition: curl.h:495
@ CURLE_WRITE_ERROR
Definition: curl.h:522
@ CURLE_SETOPT_OPTION_SYNTAX
Definition: curl.h:548
@ CURLE_REMOTE_FILE_EXISTS
Definition: curl.h:576
@ CURLE_COULDNT_RESOLVE_HOST
Definition: curl.h:498
@ CURLE_OBSOLETE62
Definition: curl.h:563
@ CURLE_READ_ERROR
Definition: curl.h:525
@ CURLE_SSL_CLIENTCERT
Definition: curl.h:615
@ CURLE_OBSOLETE20
Definition: curl.h:519
@ CURLE_USE_SSL_FAILED
Definition: curl.h:565
@ CURLE_RECV_ERROR
Definition: curl.h:556
@ CURLE_UNRECOVERABLE_POLL
Definition: curl.h:616
@ CURLE_NO_CONNECTION_AVAILABLE
Definition: curl.h:601
@ CURLE_FTP_PRET_FAILED
Definition: curl.h:596
@ CURLE_OK
Definition: curl.h:491
@ CURLE_SSL_CONNECT_ERROR
Definition: curl.h:534
@ CURLE_FTP_CANT_GET_HOST
Definition: curl.h:512
@ CURLE_RTSP_CSEQ_ERROR
Definition: curl.h:597
int(* curl_progress_callback)(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)
Definition: curl.h:217
CURLcode(* curl_ssl_ctx_callback)(CURL *curl, void *ssl_ctx, void *userptr)
Definition: curl.h:744
CURL_EXTERN CURLsslset curl_global_sslset(curl_sslbackend id, const char *name, const curl_ssl_backend ***avail)
CURL_EXTERN const char * curl_easy_strerror(CURLcode)
curl_lock_data
Definition: curl.h:2856
@ CURL_LOCK_DATA_COOKIE
Definition: curl.h:2863
@ CURL_LOCK_DATA_LAST
Definition: curl.h:2868
@ CURL_LOCK_DATA_SHARE
Definition: curl.h:2862
@ CURL_LOCK_DATA_CONNECT
Definition: curl.h:2866
@ CURL_LOCK_DATA_NONE
Definition: curl.h:2857
@ CURL_LOCK_DATA_DNS
Definition: curl.h:2864
@ CURL_LOCK_DATA_SSL_SESSION
Definition: curl.h:2865
@ CURL_LOCK_DATA_PSL
Definition: curl.h:2867
curl_ftpauth
Definition: curl.h:942
@ CURLFTPAUTH_LAST
Definition: curl.h:946
@ CURLFTPAUTH_DEFAULT
Definition: curl.h:943
@ CURLFTPAUTH_SSL
Definition: curl.h:944
@ CURLFTPAUTH_TLS
Definition: curl.h:945
CURL_EXTERN CURLcode curl_mime_data(curl_mimepart *part, const char *data, size_t datasize)
void *(* curl_malloc_callback)(size_t size)
Definition: curl.h:441
static SIZE_T datasize
Definition: asm.c:30
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
r reserved
Definition: btrfs.c:3006
__kernel_size_t size_t
Definition: linux.h:237
__kernel_time_t time_t
Definition: linux.h:252
int form
Definition: main.c:89
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLdouble s
Definition: gl.h:2039
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLdouble n
Definition: glext.h:7729
GLuint address
Definition: glext.h:9393
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
GLintptr offset
Definition: glext.h:5920
const GLubyte * c
Definition: glext.h:8905
GLubyte * pattern
Definition: glext.h:7787
GLfloat f
Definition: glext.h:7540
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLbitfield flags
Definition: glext.h:7161
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
GLenum const GLvoid * addr
Definition: glext.h:9621
GLfloat GLfloat p
Definition: glext.h:8902
GLenum GLenum variable
Definition: glext.h:9031
GLenum GLsizei len
Definition: glext.h:6722
const GLfloat * m
Definition: glext.h:10848
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
const char * filename
Definition: ioapi.h:137
voidpf uLong int origin
Definition: ioapi.h:144
#define e
Definition: ke_i.h:82
struct S1 s1
const WCHAR * mime
Definition: mimefilter.c:512
static void append(struct dump_context *dc, const void *data, unsigned size)
Definition: minidump.c:397
char string[160]
Definition: util.h:11
static PVOID ptr
Definition: dispmode.c:27
static IStream instream
Definition: saxreader.c:2110
WORD unused[29]
Definition: crypt.c:1155
#define long
Definition: qsort.c:33
#define list
Definition: rosglue.h:35
const WCHAR * str
vector< Header * > headers
Definition: sdkparse.cpp:39
PCWSTR s2
Definition: shell32_main.h:38
Definition: ftp_var.h:139
int num_of_certs
Definition: curl.h:2729
struct curl_slist ** certinfo
Definition: curl.h:2730
curl_off_t size
Definition: curl.h:298
struct curl_fileinfo::@1763 strings
char * perm
Definition: curl.h:304
size_t b_used
Definition: curl.h:315
char * b_data
Definition: curl.h:313
size_t b_size
Definition: curl.h:314
unsigned int perm
Definition: curl.h:295
unsigned int flags
Definition: curl.h:310
time_t time
Definition: curl.h:294
char * target
Definition: curl.h:307
curlfiletype filetype
Definition: curl.h:293
char * group
Definition: curl.h:306
int uid
Definition: curl.h:296
char * time
Definition: curl.h:303
int gid
Definition: curl.h:297
long int hardlinks
Definition: curl.h:299
char * filename
Definition: curl.h:292
char * user
Definition: curl.h:305
CURLformoption option
Definition: curl.h:2457
const char * value
Definition: curl.h:2458
size_t namelen
Definition: curl.h:982
char expire[18]
Definition: curl.h:984
unsigned int includeSubDomains
Definition: curl.h:983
char * name
Definition: curl.h:981
struct curl_httppost * next
Definition: curl.h:167
char * buffer
Definition: curl.h:173
char * name
Definition: curl.h:168
long bufferlength
Definition: curl.h:174
curl_off_t contentlen
Definition: curl.h:205
char * showfilename
Definition: curl.h:200
struct curl_slist * contentheader
Definition: curl.h:176
long flags
Definition: curl.h:180
long namelength
Definition: curl.h:169
char * contents
Definition: curl.h:170
long contentslength
Definition: curl.h:171
void * userp
Definition: curl.h:203
struct curl_httppost * more
Definition: curl.h:177
char * contenttype
Definition: curl.h:175
size_t index
Definition: curl.h:988
size_t total
Definition: curl.h:989
const char * key
Definition: curl.h:827
size_t len
Definition: curl.h:829
enum curl_khtype keytype
Definition: curl.h:830
struct curl_slist * next
Definition: curl.h:2650
char * data
Definition: curl.h:2649
unsigned int addrlen
Definition: curl.h:403
int socktype
Definition: curl.h:401
int protocol
Definition: curl.h:402
int family
Definition: curl.h:400
curl_sslbackend id
Definition: curl.h:2680
const char * name
Definition: curl.h:2681
curl_sslbackend backend
Definition: curl.h:2739
void * internals
Definition: curl.h:2740
const char *const * protocols
Definition: curl.h:2948
const char * zstd_version
Definition: curl.h:2985
const char * libssh_version
Definition: curl.h:2962
const char * capath
Definition: curl.h:2979
const char * nghttp2_version
Definition: curl.h:2972
unsigned int version_num
Definition: curl.h:2941
unsigned int zstd_ver_num
Definition: curl.h:2983
const char * gsasl_version
Definition: curl.h:2991
const char * cainfo
Definition: curl.h:2977
unsigned int nghttp2_ver_num
Definition: curl.h:2970
unsigned int brotli_ver_num
Definition: curl.h:2965
const char * host
Definition: curl.h:2942
const char * version
Definition: curl.h:2940
const char * hyper_version
Definition: curl.h:2988
const char * brotli_version
Definition: curl.h:2967
const char * ssl_version
Definition: curl.h:2944
const char * quic_version
Definition: curl.h:2973
const char * ares
Definition: curl.h:2951
CURLversion age
Definition: curl.h:2939
const char * libz_version
Definition: curl.h:2946
const char * libidn
Definition: curl.h:2955
Definition: name.c:39
Definition: getopt.h:109
CURL_TYPEOF_CURL_OFF_T curl_off_t
Definition: system.h:439
#define curl_share_setopt(share, opt, param)
void * arg
Definition: msvc.h:10
UINT_PTR SOCKET
Definition: winsock.h:41
static char * encoding
Definition: xmllint.c:155