1 #ifndef HEADER_CURL_TOOL_CFGABLE_H
2 #define HEADER_CURL_TOOL_CFGABLE_H
3 /***************************************************************************
5 * Project ___| | | | _ \| |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
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 http://curl.haxx.se/docs/copyright.html.
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.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 ***************************************************************************/
26 #include "tool_sdecls.h"
29 CURL *easy; /* once we have one, we keep it here */
34 char *cookie; /* single line with specified cookies */
35 char *cookiejar; /* write to this file */
36 char *cookiefile; /* read from this file */
37 bool cookiesession; /* new session? */
38 bool encoding; /* Accept-Encoding please */
39 bool tr_encoding; /* Transfer-Encoding please */
40 long authtype; /* auth bitmask */
42 bool resume_from_current;
49 bool proto_redir_present;
50 curl_off_t resume_from;
52 curl_off_t postfieldsize;
57 curl_off_t max_filesize;
63 unsigned short porttouse;
67 int showerror; /* -1 == unset, default => show errors
68 0 => -s is used to NOT show errors
69 1 => -S has been used to show errors */
76 int proxyver; /* set to CURLPROXY_HTTP* define */
79 struct curl_slist *mail_rcpt;
82 bool ftp_append; /* APPE on ftp */
83 bool mute; /* don't show messages, --silent given */
84 bool use_ascii; /* select ascii or text transfer */
85 bool autoreferer; /* automatically set referer */
86 bool failonerror; /* fail on (HTTP) errors */
87 bool include_headers; /* send headers to data output */
88 bool no_body; /* don't get the body */
89 bool dirlistonly; /* only get the FTP dir list */
90 bool followlocation; /* follow http redirects */
91 bool unrestricted_auth; /* Continue to send authentication (user+password)
92 when following ocations, even when hostname
97 bool noprogress; /* don't show progress meter, --silent given */
98 bool isatty; /* updated internally only if output is a tty */
99 struct getout *url_list; /* point to the first node */
100 struct getout *url_last; /* point to the last/current node */
101 struct getout *url_get; /* point to the node to fill in URL */
102 struct getout *url_out; /* point to the node to fill in outfile */
119 char *trace_dump; /* file to dump the network trace to, or NULL */
123 bool tracetime; /* include timestamp? */
125 int progressmode; /* CURL_PROGRESS_BAR or CURL_PROGRESS_STATS */
127 bool readbusy; /* set when reading input returns EAGAIN */
130 bool insecure_ok; /* set TRUE to allow insecure SSL connects */
132 bool ftp_create_dirs;
139 char *writeout; /* %-styled format string to output */
140 bool writeenv; /* write results to environment, if available */
141 FILE *errors; /* errors stream, defaults to stderr */
142 bool errors_fopened; /* whether errors stream isn't stderr */
143 struct curl_slist *quote;
144 struct curl_slist *postquote;
145 struct curl_slist *prequote;
148 curl_TimeCond timecond;
150 struct curl_slist *headers;
151 struct curl_httppost *httppost;
152 struct curl_httppost *last_post;
153 struct curl_slist *telnet_options;
154 struct curl_slist *resolve;
157 /* for bandwidth limiting features: */
158 curl_off_t sendpersecond; /* send to peer */
159 curl_off_t recvpersecond; /* receive from peer */
163 bool ftp_ssl_control;
165 int ftp_ssl_ccc_mode;
167 char *socksproxy; /* set to server string */
168 int socksver; /* set to CURLPROXY_SOCKS* define */
169 char *socks5_gssapi_service; /* set service name for gssapi principal
171 int socks5_gssapi_nec ; /* The NEC reference server does not protect
172 * the encryption type exchange */
175 long req_retry; /* number of retries */
176 long retry_delay; /* delay between retries (in seconds) */
177 long retry_maxtime; /* maximum time to keep retrying */
179 char *ftp_account; /* for ACCT */
180 char *ftp_alternative_to_user; /* send command if USER/PASS fails */
182 long tftp_blksize; /* TFTP BLKSIZE option */
183 bool ignorecl; /* --ignore-content-length */
184 bool disable_sessionid;
186 char *libcurl; /* output libcurl code to this file name */
191 bool nokeepalive; /* for keepalive needs */
193 bool content_disposition; /* use Content-disposition filename */
195 int default_node_flags; /* default flags to search for each 'node', which
196 is basically each given URL to transfer */
198 bool xattr; /* store metadata in extended attributes */
199 long gssapi_delegation;
200 bool ssl_allow_beast; /* allow this SSL vulnerability */
201 }; /* struct Configurable */
203 void free_config_fields(struct Configurable *config);
205 #endif /* HEADER_CURL_TOOL_CFGABLE_H */