1/***************************************************************************
2 *                                  _   _ ____  _
3 *  Project                     ___| | | |  _ \| |
4 *                             / __| | | | |_) | |
5 *                            | (__| |_| |  _ <| |___
6 *                             \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) 2017, Daniel Stenberg, <daniel.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.haxx.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 ***************************************************************************/
22#include "test.h"
23#include "memdebug.h"
24#include <limits.h>
25
26/* This source code is generated by mk-lib1521.pl ! */
27
28struct data {
29    char *blaha;
30};
31
32#define LO LONG_MIN
33#define HI LONG_MAX
34#define OFF_LO (curl_off_t) LO
35#define OFF_HI (curl_off_t) ULONG_MAX
36#define OFF_NO (curl_off_t) 0
37
38/* Unexpected error.
39    CURLE_NOT_BUILT_IN   - means disabled at build
40    CURLE_UNKNOWN_OPTION - means no such option (anymore?)
41    CURLE_SSL_ENGINE_NOTFOUND - set unkown ssl engine
42    CURLE_UNSUPPORTED_PROTOCOL - set bad HTTP version
43    CURLE_BAD_FUNCTION_ARGUMENT - unsupported value
44   */
45#define UNEX(x) ((x) && \
46                 ((x) != CURLE_NOT_BUILT_IN) && \
47                 ((x) != CURLE_UNKNOWN_OPTION) && \
48                 ((x) != CURLE_SSL_ENGINE_NOTFOUND) && \
49                 ((x) != CURLE_UNSUPPORTED_PROTOCOL) && \
50                 ((x) != CURLE_BAD_FUNCTION_ARGUMENT) )
51
52static size_t writecb(char *buffer, size_t size, size_t nitems,
53                      void *outstream)
54{
55  (void)buffer;
56  (void)size;
57  (void)nitems;
58  (void)outstream;
59  return 0;
60}
61
62static size_t readcb(char *buffer,
63              size_t size,
64              size_t nitems,
65              void *instream)
66{
67  (void)buffer;
68  (void)size;
69  (void)nitems;
70  (void)instream;
71  return 0;
72}
73
74static int err(const char *name, CURLcode val, int lineno)
75{
76  printf("CURLOPT_%s returned %d, \"%s\" on line %d\n",
77         name, val, curl_easy_strerror(val), lineno);
78  return (int)val;
79}
80
81static int geterr(const char *name, CURLcode val, int lineno)
82{
83  printf("CURLINFO_%s returned %d, \"%s\" on line %d\n",
84         name, val, curl_easy_strerror(val), lineno);
85  return (int)val;
86}
87
88static curl_progress_callback progresscb;
89static curl_write_callback headercb;
90static curl_debug_callback debugcb;
91static curl_ssl_ctx_callback ssl_ctx_cb;
92static curl_ioctl_callback ioctlcb;
93static curl_sockopt_callback sockoptcb;
94static curl_opensocket_callback opensocketcb;
95static curl_seek_callback seekcb;
96static curl_sshkeycallback ssh_keycb;
97static curl_chunk_bgn_callback chunk_bgn_cb;
98static curl_chunk_end_callback chunk_end_cb;
99static curl_fnmatch_callback fnmatch_cb;
100static curl_closesocket_callback closesocketcb;
101static curl_xferinfo_callback xferinfocb;
102
103int test(char *URL)
104{
105  CURL *curl = NULL;
106  CURL *dep = NULL;
107  CURLSH *share = NULL;
108  char errorbuffer[CURL_ERROR_SIZE];
109  void *conv_from_network_cb = NULL;
110  void *conv_to_network_cb = NULL;
111  void *conv_from_utf8_cb = NULL;
112  void *interleavecb = NULL;
113  char *stringpointerextra = (char *)"moooo";
114  struct curl_slist *slist = NULL;
115  struct curl_httppost *httppost = NULL;
116  curl_mime *mimepost = NULL;
117  FILE *stream = stderr;
118  struct data object;
119  char *charp;
120  long val;
121  curl_off_t oval;
122  double dval;
123  curl_socket_t sockfd;
124  struct curl_certinfo *certinfo;
125  struct curl_tlssessioninfo *tlssession;
126  CURLcode res = CURLE_OK;
127  (void)URL; /* not used */
128  global_init(CURL_GLOBAL_ALL);
129  easy_init(dep);
130  easy_init(curl);
131  share = curl_share_init();
132  if(!share) {
133    res = CURLE_OUT_OF_MEMORY;
134    goto test_cleanup;
135  }
136
137  res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, &object);
138  if(UNEX(res)) {
139    err("WRITEDATA", res, __LINE__); goto test_cleanup; }
140  res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, NULL);
141  if(UNEX(res)) {
142    err("WRITEDATA", res, __LINE__); goto test_cleanup; }
143  res = curl_easy_setopt(curl, CURLOPT_URL, "string");
144  if(UNEX(res)) {
145    err("URL", res, __LINE__); goto test_cleanup; }
146  res = curl_easy_setopt(curl, CURLOPT_URL, NULL);
147  if(UNEX(res)) {
148    err("URL", res, __LINE__); goto test_cleanup; }
149  res = curl_easy_setopt(curl, CURLOPT_PORT, 0L);
150  if(UNEX(res)) {
151    err("PORT", res, __LINE__); goto test_cleanup; }
152  res = curl_easy_setopt(curl, CURLOPT_PORT, 22L);
153  if(UNEX(res)) {
154    err("PORT", res, __LINE__); goto test_cleanup; }
155  res = curl_easy_setopt(curl, CURLOPT_PORT, LO);
156  if(UNEX(res)) {
157    err("PORT", res, __LINE__); goto test_cleanup; }
158  res = curl_easy_setopt(curl, CURLOPT_PORT, HI);
159  if(UNEX(res)) {
160    err("PORT", res, __LINE__); goto test_cleanup; }
161  res = curl_easy_setopt(curl, CURLOPT_PROXY, "string");
162  if(UNEX(res)) {
163    err("PROXY", res, __LINE__); goto test_cleanup; }
164  res = curl_easy_setopt(curl, CURLOPT_PROXY, NULL);
165  if(UNEX(res)) {
166    err("PROXY", res, __LINE__); goto test_cleanup; }
167  res = curl_easy_setopt(curl, CURLOPT_USERPWD, "string");
168  if(UNEX(res)) {
169    err("USERPWD", res, __LINE__); goto test_cleanup; }
170  res = curl_easy_setopt(curl, CURLOPT_USERPWD, NULL);
171  if(UNEX(res)) {
172    err("USERPWD", res, __LINE__); goto test_cleanup; }
173  res = curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, "string");
174  if(UNEX(res)) {
175    err("PROXYUSERPWD", res, __LINE__); goto test_cleanup; }
176  res = curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, NULL);
177  if(UNEX(res)) {
178    err("PROXYUSERPWD", res, __LINE__); goto test_cleanup; }
179  res = curl_easy_setopt(curl, CURLOPT_RANGE, "string");
180  if(UNEX(res)) {
181    err("RANGE", res, __LINE__); goto test_cleanup; }
182  res = curl_easy_setopt(curl, CURLOPT_RANGE, NULL);
183  if(UNEX(res)) {
184    err("RANGE", res, __LINE__); goto test_cleanup; }
185  res = curl_easy_setopt(curl, CURLOPT_READDATA, &object);
186  if(UNEX(res)) {
187    err("READDATA", res, __LINE__); goto test_cleanup; }
188  res = curl_easy_setopt(curl, CURLOPT_READDATA, NULL);
189  if(UNEX(res)) {
190    err("READDATA", res, __LINE__); goto test_cleanup; }
191  res = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorbuffer);
192  if(UNEX(res)) {
193    err("ERRORBUFFER", res, __LINE__); goto test_cleanup; }
194  res = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, NULL);
195  if(UNEX(res)) {
196    err("ERRORBUFFER", res, __LINE__); goto test_cleanup; }
197  res = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
198                         writecb);
199  if(UNEX(res)) {
200    err("WRITEFUNCTION", res, __LINE__); goto test_cleanup; }
201  res = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);
202  if(UNEX(res)) {
203    err("WRITEFUNCTION", res, __LINE__); goto test_cleanup; }
204  res = curl_easy_setopt(curl, CURLOPT_READFUNCTION,
205                         readcb);
206  if(UNEX(res)) {
207    err("READFUNCTION", res, __LINE__); goto test_cleanup; }
208  res = curl_easy_setopt(curl, CURLOPT_READFUNCTION, NULL);
209  if(UNEX(res)) {
210    err("READFUNCTION", res, __LINE__); goto test_cleanup; }
211  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 0L);
212  if(UNEX(res)) {
213    err("TIMEOUT", res, __LINE__); goto test_cleanup; }
214  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 22L);
215  if(UNEX(res)) {
216    err("TIMEOUT", res, __LINE__); goto test_cleanup; }
217  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, LO);
218  if(UNEX(res)) {
219    err("TIMEOUT", res, __LINE__); goto test_cleanup; }
220  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, HI);
221  if(UNEX(res)) {
222    err("TIMEOUT", res, __LINE__); goto test_cleanup; }
223  res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, 0L);
224  if(UNEX(res)) {
225    err("INFILESIZE", res, __LINE__); goto test_cleanup; }
226  res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, 22L);
227  if(UNEX(res)) {
228    err("INFILESIZE", res, __LINE__); goto test_cleanup; }
229  res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, LO);
230  if(UNEX(res)) {
231    err("INFILESIZE", res, __LINE__); goto test_cleanup; }
232  res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, HI);
233  if(UNEX(res)) {
234    err("INFILESIZE", res, __LINE__); goto test_cleanup; }
235  (void)curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
236  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDS, stringpointerextra);
237  if(UNEX(res)) {
238    err("POSTFIELDS", res, __LINE__); goto test_cleanup; }
239  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDS, NULL);
240  if(UNEX(res)) {
241    err("POSTFIELDS", res, __LINE__); goto test_cleanup; }
242  res = curl_easy_setopt(curl, CURLOPT_REFERER, "string");
243  if(UNEX(res)) {
244    err("REFERER", res, __LINE__); goto test_cleanup; }
245  res = curl_easy_setopt(curl, CURLOPT_REFERER, NULL);
246  if(UNEX(res)) {
247    err("REFERER", res, __LINE__); goto test_cleanup; }
248  res = curl_easy_setopt(curl, CURLOPT_FTPPORT, "string");
249  if(UNEX(res)) {
250    err("FTPPORT", res, __LINE__); goto test_cleanup; }
251  res = curl_easy_setopt(curl, CURLOPT_FTPPORT, NULL);
252  if(UNEX(res)) {
253    err("FTPPORT", res, __LINE__); goto test_cleanup; }
254  res = curl_easy_setopt(curl, CURLOPT_USERAGENT, "string");
255  if(UNEX(res)) {
256    err("USERAGENT", res, __LINE__); goto test_cleanup; }
257  res = curl_easy_setopt(curl, CURLOPT_USERAGENT, NULL);
258  if(UNEX(res)) {
259    err("USERAGENT", res, __LINE__); goto test_cleanup; }
260  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 0L);
261  if(UNEX(res)) {
262    err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
263  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 22L);
264  if(UNEX(res)) {
265    err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
266  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, LO);
267  if(UNEX(res)) {
268    err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
269  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, HI);
270  if(UNEX(res)) {
271    err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
272  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 0L);
273  if(UNEX(res)) {
274    err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
275  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 22L);
276  if(UNEX(res)) {
277    err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
278  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, LO);
279  if(UNEX(res)) {
280    err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
281  res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, HI);
282  if(UNEX(res)) {
283    err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
284  res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, 0L);
285  if(UNEX(res)) {
286    err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
287  res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, 22L);
288  if(UNEX(res)) {
289    err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
290  res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, LO);
291  if(UNEX(res)) {
292    err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
293  res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, HI);
294  if(UNEX(res)) {
295    err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
296  res = curl_easy_setopt(curl, CURLOPT_COOKIE, "string");
297  if(UNEX(res)) {
298    err("COOKIE", res, __LINE__); goto test_cleanup; }
299  res = curl_easy_setopt(curl, CURLOPT_COOKIE, NULL);
300  if(UNEX(res)) {
301    err("COOKIE", res, __LINE__); goto test_cleanup; }
302  res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist);
303  if(UNEX(res)) {
304    err("HTTPHEADER", res, __LINE__); goto test_cleanup; }
305  res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, NULL);
306  if(UNEX(res)) {
307    err("HTTPHEADER", res, __LINE__); goto test_cleanup; }
308  res = curl_easy_setopt(curl, CURLOPT_HTTPPOST, httppost);
309  if(UNEX(res)) {
310    err("HTTPPOST", res, __LINE__); goto test_cleanup; }
311  res = curl_easy_setopt(curl, CURLOPT_HTTPPOST, NULL);
312  if(UNEX(res)) {
313    err("HTTPPOST", res, __LINE__); goto test_cleanup; }
314  res = curl_easy_setopt(curl, CURLOPT_SSLCERT, "string");
315  if(UNEX(res)) {
316    err("SSLCERT", res, __LINE__); goto test_cleanup; }
317  res = curl_easy_setopt(curl, CURLOPT_SSLCERT, NULL);
318  if(UNEX(res)) {
319    err("SSLCERT", res, __LINE__); goto test_cleanup; }
320  res = curl_easy_setopt(curl, CURLOPT_KEYPASSWD, "string");
321  if(UNEX(res)) {
322    err("KEYPASSWD", res, __LINE__); goto test_cleanup; }
323  res = curl_easy_setopt(curl, CURLOPT_KEYPASSWD, NULL);
324  if(UNEX(res)) {
325    err("KEYPASSWD", res, __LINE__); goto test_cleanup; }
326  res = curl_easy_setopt(curl, CURLOPT_CRLF, 0L);
327  if(UNEX(res)) {
328    err("CRLF", res, __LINE__); goto test_cleanup; }
329  res = curl_easy_setopt(curl, CURLOPT_CRLF, 22L);
330  if(UNEX(res)) {
331    err("CRLF", res, __LINE__); goto test_cleanup; }
332  res = curl_easy_setopt(curl, CURLOPT_CRLF, LO);
333  if(UNEX(res)) {
334    err("CRLF", res, __LINE__); goto test_cleanup; }
335  res = curl_easy_setopt(curl, CURLOPT_CRLF, HI);
336  if(UNEX(res)) {
337    err("CRLF", res, __LINE__); goto test_cleanup; }
338  res = curl_easy_setopt(curl, CURLOPT_QUOTE, slist);
339  if(UNEX(res)) {
340    err("QUOTE", res, __LINE__); goto test_cleanup; }
341  res = curl_easy_setopt(curl, CURLOPT_QUOTE, NULL);
342  if(UNEX(res)) {
343    err("QUOTE", res, __LINE__); goto test_cleanup; }
344  res = curl_easy_setopt(curl, CURLOPT_HEADERDATA, &object);
345  if(UNEX(res)) {
346    err("HEADERDATA", res, __LINE__); goto test_cleanup; }
347  res = curl_easy_setopt(curl, CURLOPT_HEADERDATA, NULL);
348  if(UNEX(res)) {
349    err("HEADERDATA", res, __LINE__); goto test_cleanup; }
350  res = curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "string");
351  if(UNEX(res)) {
352    err("COOKIEFILE", res, __LINE__); goto test_cleanup; }
353  res = curl_easy_setopt(curl, CURLOPT_COOKIEFILE, NULL);
354  if(UNEX(res)) {
355    err("COOKIEFILE", res, __LINE__); goto test_cleanup; }
356  res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, 0L);
357  if(UNEX(res)) {
358    err("SSLVERSION", res, __LINE__); goto test_cleanup; }
359  res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, 22L);
360  if(UNEX(res)) {
361    err("SSLVERSION", res, __LINE__); goto test_cleanup; }
362  res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, LO);
363  if(UNEX(res)) {
364    err("SSLVERSION", res, __LINE__); goto test_cleanup; }
365  res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, HI);
366  if(UNEX(res)) {
367    err("SSLVERSION", res, __LINE__); goto test_cleanup; }
368  res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, 0L);
369  if(UNEX(res)) {
370    err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
371  res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, 22L);
372  if(UNEX(res)) {
373    err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
374  res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, LO);
375  if(UNEX(res)) {
376    err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
377  res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, HI);
378  if(UNEX(res)) {
379    err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
380  res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 0L);
381  if(UNEX(res)) {
382    err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
383  res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 22L);
384  if(UNEX(res)) {
385    err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
386  res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, LO);
387  if(UNEX(res)) {
388    err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
389  res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, HI);
390  if(UNEX(res)) {
391    err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
392  res = curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "string");
393  if(UNEX(res)) {
394    err("CUSTOMREQUEST", res, __LINE__); goto test_cleanup; }
395  res = curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, NULL);
396  if(UNEX(res)) {
397    err("CUSTOMREQUEST", res, __LINE__); goto test_cleanup; }
398  res = curl_easy_setopt(curl, CURLOPT_STDERR, stream);
399  if(UNEX(res)) {
400    err("STDERR", res, __LINE__); goto test_cleanup; }
401  res = curl_easy_setopt(curl, CURLOPT_STDERR, NULL);
402  if(UNEX(res)) {
403    err("STDERR", res, __LINE__); goto test_cleanup; }
404  res = curl_easy_setopt(curl, CURLOPT_POSTQUOTE, slist);
405  if(UNEX(res)) {
406    err("POSTQUOTE", res, __LINE__); goto test_cleanup; }
407  res = curl_easy_setopt(curl, CURLOPT_POSTQUOTE, NULL);
408  if(UNEX(res)) {
409    err("POSTQUOTE", res, __LINE__); goto test_cleanup; }
410  res = curl_easy_setopt(curl, CURLOPT_OBSOLETE40, &object);
411  if(UNEX(res)) {
412    err("OBSOLETE40", res, __LINE__); goto test_cleanup; }
413  res = curl_easy_setopt(curl, CURLOPT_OBSOLETE40, NULL);
414  if(UNEX(res)) {
415    err("OBSOLETE40", res, __LINE__); goto test_cleanup; }
416  res = curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
417  if(UNEX(res)) {
418    err("VERBOSE", res, __LINE__); goto test_cleanup; }
419  res = curl_easy_setopt(curl, CURLOPT_VERBOSE, 22L);
420  if(UNEX(res)) {
421    err("VERBOSE", res, __LINE__); goto test_cleanup; }
422  res = curl_easy_setopt(curl, CURLOPT_VERBOSE, LO);
423  if(UNEX(res)) {
424    err("VERBOSE", res, __LINE__); goto test_cleanup; }
425  res = curl_easy_setopt(curl, CURLOPT_VERBOSE, HI);
426  if(UNEX(res)) {
427    err("VERBOSE", res, __LINE__); goto test_cleanup; }
428  res = curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
429  if(UNEX(res)) {
430    err("HEADER", res, __LINE__); goto test_cleanup; }
431  res = curl_easy_setopt(curl, CURLOPT_HEADER, 22L);
432  if(UNEX(res)) {
433    err("HEADER", res, __LINE__); goto test_cleanup; }
434  res = curl_easy_setopt(curl, CURLOPT_HEADER, LO);
435  if(UNEX(res)) {
436    err("HEADER", res, __LINE__); goto test_cleanup; }
437  res = curl_easy_setopt(curl, CURLOPT_HEADER, HI);
438  if(UNEX(res)) {
439    err("HEADER", res, __LINE__); goto test_cleanup; }
440  res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
441  if(UNEX(res)) {
442    err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
443  res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 22L);
444  if(UNEX(res)) {
445    err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
446  res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, LO);
447  if(UNEX(res)) {
448    err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
449  res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, HI);
450  if(UNEX(res)) {
451    err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
452  res = curl_easy_setopt(curl, CURLOPT_NOBODY, 0L);
453  if(UNEX(res)) {
454    err("NOBODY", res, __LINE__); goto test_cleanup; }
455  res = curl_easy_setopt(curl, CURLOPT_NOBODY, 22L);
456  if(UNEX(res)) {
457    err("NOBODY", res, __LINE__); goto test_cleanup; }
458  res = curl_easy_setopt(curl, CURLOPT_NOBODY, LO);
459  if(UNEX(res)) {
460    err("NOBODY", res, __LINE__); goto test_cleanup; }
461  res = curl_easy_setopt(curl, CURLOPT_NOBODY, HI);
462  if(UNEX(res)) {
463    err("NOBODY", res, __LINE__); goto test_cleanup; }
464  res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, 0L);
465  if(UNEX(res)) {
466    err("FAILONERROR", res, __LINE__); goto test_cleanup; }
467  res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, 22L);
468  if(UNEX(res)) {
469    err("FAILONERROR", res, __LINE__); goto test_cleanup; }
470  res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, LO);
471  if(UNEX(res)) {
472    err("FAILONERROR", res, __LINE__); goto test_cleanup; }
473  res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, HI);
474  if(UNEX(res)) {
475    err("FAILONERROR", res, __LINE__); goto test_cleanup; }
476  res = curl_easy_setopt(curl, CURLOPT_UPLOAD, 0L);
477  if(UNEX(res)) {
478    err("UPLOAD", res, __LINE__); goto test_cleanup; }
479  res = curl_easy_setopt(curl, CURLOPT_UPLOAD, 22L);
480  if(UNEX(res)) {
481    err("UPLOAD", res, __LINE__); goto test_cleanup; }
482  res = curl_easy_setopt(curl, CURLOPT_UPLOAD, LO);
483  if(UNEX(res)) {
484    err("UPLOAD", res, __LINE__); goto test_cleanup; }
485  res = curl_easy_setopt(curl, CURLOPT_UPLOAD, HI);
486  if(UNEX(res)) {
487    err("UPLOAD", res, __LINE__); goto test_cleanup; }
488  res = curl_easy_setopt(curl, CURLOPT_POST, 0L);
489  if(UNEX(res)) {
490    err("POST", res, __LINE__); goto test_cleanup; }
491  res = curl_easy_setopt(curl, CURLOPT_POST, 22L);
492  if(UNEX(res)) {
493    err("POST", res, __LINE__); goto test_cleanup; }
494  res = curl_easy_setopt(curl, CURLOPT_POST, LO);
495  if(UNEX(res)) {
496    err("POST", res, __LINE__); goto test_cleanup; }
497  res = curl_easy_setopt(curl, CURLOPT_POST, HI);
498  if(UNEX(res)) {
499    err("POST", res, __LINE__); goto test_cleanup; }
500  res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, 0L);
501  if(UNEX(res)) {
502    err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
503  res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, 22L);
504  if(UNEX(res)) {
505    err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
506  res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, LO);
507  if(UNEX(res)) {
508    err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
509  res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, HI);
510  if(UNEX(res)) {
511    err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
512  res = curl_easy_setopt(curl, CURLOPT_APPEND, 0L);
513  if(UNEX(res)) {
514    err("APPEND", res, __LINE__); goto test_cleanup; }
515  res = curl_easy_setopt(curl, CURLOPT_APPEND, 22L);
516  if(UNEX(res)) {
517    err("APPEND", res, __LINE__); goto test_cleanup; }
518  res = curl_easy_setopt(curl, CURLOPT_APPEND, LO);
519  if(UNEX(res)) {
520    err("APPEND", res, __LINE__); goto test_cleanup; }
521  res = curl_easy_setopt(curl, CURLOPT_APPEND, HI);
522  if(UNEX(res)) {
523    err("APPEND", res, __LINE__); goto test_cleanup; }
524  res = curl_easy_setopt(curl, CURLOPT_NETRC, 0L);
525  if(UNEX(res)) {
526    err("NETRC", res, __LINE__); goto test_cleanup; }
527  res = curl_easy_setopt(curl, CURLOPT_NETRC, 22L);
528  if(UNEX(res)) {
529    err("NETRC", res, __LINE__); goto test_cleanup; }
530  res = curl_easy_setopt(curl, CURLOPT_NETRC, LO);
531  if(UNEX(res)) {
532    err("NETRC", res, __LINE__); goto test_cleanup; }
533  res = curl_easy_setopt(curl, CURLOPT_NETRC, HI);
534  if(UNEX(res)) {
535    err("NETRC", res, __LINE__); goto test_cleanup; }
536  res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 0L);
537  if(UNEX(res)) {
538    err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
539  res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 22L);
540  if(UNEX(res)) {
541    err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
542  res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, LO);
543  if(UNEX(res)) {
544    err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
545  res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, HI);
546  if(UNEX(res)) {
547    err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
548  res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 0L);
549  if(UNEX(res)) {
550    err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
551  res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 22L);
552  if(UNEX(res)) {
553    err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
554  res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, LO);
555  if(UNEX(res)) {
556    err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
557  res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, HI);
558  if(UNEX(res)) {
559    err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
560  res = curl_easy_setopt(curl, CURLOPT_PUT, 0L);
561  if(UNEX(res)) {
562    err("PUT", res, __LINE__); goto test_cleanup; }
563  res = curl_easy_setopt(curl, CURLOPT_PUT, 22L);
564  if(UNEX(res)) {
565    err("PUT", res, __LINE__); goto test_cleanup; }
566  res = curl_easy_setopt(curl, CURLOPT_PUT, LO);
567  if(UNEX(res)) {
568    err("PUT", res, __LINE__); goto test_cleanup; }
569  res = curl_easy_setopt(curl, CURLOPT_PUT, HI);
570  if(UNEX(res)) {
571    err("PUT", res, __LINE__); goto test_cleanup; }
572  res = curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION,
573                         progresscb);
574  if(UNEX(res)) {
575    err("PROGRESSFUNCTION", res, __LINE__); goto test_cleanup; }
576  res = curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, NULL);
577  if(UNEX(res)) {
578    err("PROGRESSFUNCTION", res, __LINE__); goto test_cleanup; }
579  res = curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &object);
580  if(UNEX(res)) {
581    err("PROGRESSDATA", res, __LINE__); goto test_cleanup; }
582  res = curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, NULL);
583  if(UNEX(res)) {
584    err("PROGRESSDATA", res, __LINE__); goto test_cleanup; }
585  res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 0L);
586  if(UNEX(res)) {
587    err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
588  res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 22L);
589  if(UNEX(res)) {
590    err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
591  res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, LO);
592  if(UNEX(res)) {
593    err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
594  res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, HI);
595  if(UNEX(res)) {
596    err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
597  res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, 0L);
598  if(UNEX(res)) {
599    err("PROXYPORT", res, __LINE__); goto test_cleanup; }
600  res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, 22L);
601  if(UNEX(res)) {
602    err("PROXYPORT", res, __LINE__); goto test_cleanup; }
603  res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, LO);
604  if(UNEX(res)) {
605    err("PROXYPORT", res, __LINE__); goto test_cleanup; }
606  res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, HI);
607  if(UNEX(res)) {
608    err("PROXYPORT", res, __LINE__); goto test_cleanup; }
609  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0L);
610  if(UNEX(res)) {
611    err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
612  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 22L);
613  if(UNEX(res)) {
614    err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
615  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, LO);
616  if(UNEX(res)) {
617    err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
618  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, HI);
619  if(UNEX(res)) {
620    err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
621  res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 0L);
622  if(UNEX(res)) {
623    err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
624  res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 22L);
625  if(UNEX(res)) {
626    err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
627  res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, LO);
628  if(UNEX(res)) {
629    err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
630  res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, HI);
631  if(UNEX(res)) {
632    err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
633  res = curl_easy_setopt(curl, CURLOPT_INTERFACE, "string");
634  if(UNEX(res)) {
635    err("INTERFACE", res, __LINE__); goto test_cleanup; }
636  res = curl_easy_setopt(curl, CURLOPT_INTERFACE, NULL);
637  if(UNEX(res)) {
638    err("INTERFACE", res, __LINE__); goto test_cleanup; }
639  res = curl_easy_setopt(curl, CURLOPT_KRBLEVEL, "string");
640  if(UNEX(res)) {
641    err("KRBLEVEL", res, __LINE__); goto test_cleanup; }
642  res = curl_easy_setopt(curl, CURLOPT_KRBLEVEL, NULL);
643  if(UNEX(res)) {
644    err("KRBLEVEL", res, __LINE__); goto test_cleanup; }
645  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
646  if(UNEX(res)) {
647    err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
648  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 22L);
649  if(UNEX(res)) {
650    err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
651  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, LO);
652  if(UNEX(res)) {
653    err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
654  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, HI);
655  if(UNEX(res)) {
656    err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
657  res = curl_easy_setopt(curl, CURLOPT_CAINFO, "string");
658  if(UNEX(res)) {
659    err("CAINFO", res, __LINE__); goto test_cleanup; }
660  res = curl_easy_setopt(curl, CURLOPT_CAINFO, NULL);
661  if(UNEX(res)) {
662    err("CAINFO", res, __LINE__); goto test_cleanup; }
663  res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 0L);
664  if(UNEX(res)) {
665    err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
666  res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 22L);
667  if(UNEX(res)) {
668    err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
669  res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, LO);
670  if(UNEX(res)) {
671    err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
672  res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, HI);
673  if(UNEX(res)) {
674    err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
675  res = curl_easy_setopt(curl, CURLOPT_FILETIME, 0L);
676  if(UNEX(res)) {
677    err("FILETIME", res, __LINE__); goto test_cleanup; }
678  res = curl_easy_setopt(curl, CURLOPT_FILETIME, 22L);
679  if(UNEX(res)) {
680    err("FILETIME", res, __LINE__); goto test_cleanup; }
681  res = curl_easy_setopt(curl, CURLOPT_FILETIME, LO);
682  if(UNEX(res)) {
683    err("FILETIME", res, __LINE__); goto test_cleanup; }
684  res = curl_easy_setopt(curl, CURLOPT_FILETIME, HI);
685  if(UNEX(res)) {
686    err("FILETIME", res, __LINE__); goto test_cleanup; }
687  res = curl_easy_setopt(curl, CURLOPT_TELNETOPTIONS, slist);
688  if(UNEX(res)) {
689    err("TELNETOPTIONS", res, __LINE__); goto test_cleanup; }
690  res = curl_easy_setopt(curl, CURLOPT_TELNETOPTIONS, NULL);
691  if(UNEX(res)) {
692    err("TELNETOPTIONS", res, __LINE__); goto test_cleanup; }
693  res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, 0L);
694  if(UNEX(res)) {
695    err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
696  res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, 22L);
697  if(UNEX(res)) {
698    err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
699  res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, LO);
700  if(UNEX(res)) {
701    err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
702  res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, HI);
703  if(UNEX(res)) {
704    err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
705  res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, 0L);
706  if(UNEX(res)) {
707    err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
708  res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, 22L);
709  if(UNEX(res)) {
710    err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
711  res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, LO);
712  if(UNEX(res)) {
713    err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
714  res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, HI);
715  if(UNEX(res)) {
716    err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
717  res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 0L);
718  if(UNEX(res)) {
719    err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
720  res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 22L);
721  if(UNEX(res)) {
722    err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
723  res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, LO);
724  if(UNEX(res)) {
725    err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
726  res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, HI);
727  if(UNEX(res)) {
728    err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
729  res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 0L);
730  if(UNEX(res)) {
731    err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
732  res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 22L);
733  if(UNEX(res)) {
734    err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
735  res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, LO);
736  if(UNEX(res)) {
737    err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
738  res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, HI);
739  if(UNEX(res)) {
740    err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
741  res = curl_easy_setopt(curl, CURLOPT_RANDOM_FILE, "string");
742  if(UNEX(res)) {
743    err("RANDOM_FILE", res, __LINE__); goto test_cleanup; }
744  res = curl_easy_setopt(curl, CURLOPT_RANDOM_FILE, NULL);
745  if(UNEX(res)) {
746    err("RANDOM_FILE", res, __LINE__); goto test_cleanup; }
747  res = curl_easy_setopt(curl, CURLOPT_EGDSOCKET, "string");
748  if(UNEX(res)) {
749    err("EGDSOCKET", res, __LINE__); goto test_cleanup; }
750  res = curl_easy_setopt(curl, CURLOPT_EGDSOCKET, NULL);
751  if(UNEX(res)) {
752    err("EGDSOCKET", res, __LINE__); goto test_cleanup; }
753  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 0L);
754  if(UNEX(res)) {
755    err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
756  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 22L);
757  if(UNEX(res)) {
758    err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
759  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, LO);
760  if(UNEX(res)) {
761    err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
762  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, HI);
763  if(UNEX(res)) {
764    err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
765  res = curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION,
766                         headercb);
767  if(UNEX(res)) {
768    err("HEADERFUNCTION", res, __LINE__); goto test_cleanup; }
769  res = curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, NULL);
770  if(UNEX(res)) {
771    err("HEADERFUNCTION", res, __LINE__); goto test_cleanup; }
772  res = curl_easy_setopt(curl, CURLOPT_HTTPGET, 0L);
773  if(UNEX(res)) {
774    err("HTTPGET", res, __LINE__); goto test_cleanup; }
775  res = curl_easy_setopt(curl, CURLOPT_HTTPGET, 22L);
776  if(UNEX(res)) {
777    err("HTTPGET", res, __LINE__); goto test_cleanup; }
778  res = curl_easy_setopt(curl, CURLOPT_HTTPGET, LO);
779  if(UNEX(res)) {
780    err("HTTPGET", res, __LINE__); goto test_cleanup; }
781  res = curl_easy_setopt(curl, CURLOPT_HTTPGET, HI);
782  if(UNEX(res)) {
783    err("HTTPGET", res, __LINE__); goto test_cleanup; }
784  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
785  if(UNEX(res)) {
786    err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
787  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 22L);
788  if(UNEX(res)) {
789    err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
790  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, LO);
791  if(UNEX(res)) {
792    err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
793  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, HI);
794  if(UNEX(res)) {
795    err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
796  res = curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "string");
797  if(UNEX(res)) {
798    err("COOKIEJAR", res, __LINE__); goto test_cleanup; }
799  res = curl_easy_setopt(curl, CURLOPT_COOKIEJAR, NULL);
800  if(UNEX(res)) {
801    err("COOKIEJAR", res, __LINE__); goto test_cleanup; }
802  res = curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, "string");
803  if(UNEX(res)) {
804    err("SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
805  res = curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, NULL);
806  if(UNEX(res)) {
807    err("SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
808  res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, 0L);
809  if(UNEX(res)) {
810    err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
811  res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, 22L);
812  if(UNEX(res)) {
813    err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
814  res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, LO);
815  if(UNEX(res)) {
816    err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
817  res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, HI);
818  if(UNEX(res)) {
819    err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
820  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, 0L);
821  if(UNEX(res)) {
822    err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
823  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, 22L);
824  if(UNEX(res)) {
825    err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
826  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, LO);
827  if(UNEX(res)) {
828    err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
829  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, HI);
830  if(UNEX(res)) {
831    err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
832  res = curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "string");
833  if(UNEX(res)) {
834    err("SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
835  res = curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, NULL);
836  if(UNEX(res)) {
837    err("SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
838  res = curl_easy_setopt(curl, CURLOPT_SSLKEY, "string");
839  if(UNEX(res)) {
840    err("SSLKEY", res, __LINE__); goto test_cleanup; }
841  res = curl_easy_setopt(curl, CURLOPT_SSLKEY, NULL);
842  if(UNEX(res)) {
843    err("SSLKEY", res, __LINE__); goto test_cleanup; }
844  res = curl_easy_setopt(curl, CURLOPT_SSLKEYTYPE, "string");
845  if(UNEX(res)) {
846    err("SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
847  res = curl_easy_setopt(curl, CURLOPT_SSLKEYTYPE, NULL);
848  if(UNEX(res)) {
849    err("SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
850  res = curl_easy_setopt(curl, CURLOPT_SSLENGINE, "string");
851  if(UNEX(res)) {
852    err("SSLENGINE", res, __LINE__); goto test_cleanup; }
853  res = curl_easy_setopt(curl, CURLOPT_SSLENGINE, NULL);
854  if(UNEX(res)) {
855    err("SSLENGINE", res, __LINE__); goto test_cleanup; }
856  res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 0L);
857  if(UNEX(res)) {
858    err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
859  res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 22L);
860  if(UNEX(res)) {
861    err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
862  res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, LO);
863  if(UNEX(res)) {
864    err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
865  res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, HI);
866  if(UNEX(res)) {
867    err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
868  res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, 0L);
869  if(UNEX(res)) {
870    err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
871  res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, 22L);
872  if(UNEX(res)) {
873    err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
874  res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, LO);
875  if(UNEX(res)) {
876    err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
877  res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, HI);
878  if(UNEX(res)) {
879    err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
880  res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 0L);
881  if(UNEX(res)) {
882    err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
883  res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 22L);
884  if(UNEX(res)) {
885    err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
886  res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, LO);
887  if(UNEX(res)) {
888    err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
889  res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, HI);
890  if(UNEX(res)) {
891    err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
892  res = curl_easy_setopt(curl, CURLOPT_PREQUOTE, slist);
893  if(UNEX(res)) {
894    err("PREQUOTE", res, __LINE__); goto test_cleanup; }
895  res = curl_easy_setopt(curl, CURLOPT_PREQUOTE, NULL);
896  if(UNEX(res)) {
897    err("PREQUOTE", res, __LINE__); goto test_cleanup; }
898  res = curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION,
899                         debugcb);
900  if(UNEX(res)) {
901    err("DEBUGFUNCTION", res, __LINE__); goto test_cleanup; }
902  res = curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, NULL);
903  if(UNEX(res)) {
904    err("DEBUGFUNCTION", res, __LINE__); goto test_cleanup; }
905  res = curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &object);
906  if(UNEX(res)) {
907    err("DEBUGDATA", res, __LINE__); goto test_cleanup; }
908  res = curl_easy_setopt(curl, CURLOPT_DEBUGDATA, NULL);
909  if(UNEX(res)) {
910    err("DEBUGDATA", res, __LINE__); goto test_cleanup; }
911  res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, 0L);
912  if(UNEX(res)) {
913    err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
914  res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, 22L);
915  if(UNEX(res)) {
916    err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
917  res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, LO);
918  if(UNEX(res)) {
919    err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
920  res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, HI);
921  if(UNEX(res)) {
922    err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
923  res = curl_easy_setopt(curl, CURLOPT_CAPATH, "string");
924  if(UNEX(res)) {
925    err("CAPATH", res, __LINE__); goto test_cleanup; }
926  res = curl_easy_setopt(curl, CURLOPT_CAPATH, NULL);
927  if(UNEX(res)) {
928    err("CAPATH", res, __LINE__); goto test_cleanup; }
929  res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 0L);
930  if(UNEX(res)) {
931    err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
932  res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 22L);
933  if(UNEX(res)) {
934    err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
935  res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, LO);
936  if(UNEX(res)) {
937    err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
938  res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, HI);
939  if(UNEX(res)) {
940    err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
941  res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 0L);
942  if(UNEX(res)) {
943    err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
944  res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 22L);
945  if(UNEX(res)) {
946    err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
947  res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, LO);
948  if(UNEX(res)) {
949    err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
950  res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, HI);
951  if(UNEX(res)) {
952    err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
953  res = curl_easy_setopt(curl, CURLOPT_SHARE, share);
954  if(UNEX(res)) {
955    err("SHARE", res, __LINE__); goto test_cleanup; }
956  res = curl_easy_setopt(curl, CURLOPT_SHARE, NULL);
957  if(UNEX(res)) {
958    err("SHARE", res, __LINE__); goto test_cleanup; }
959  res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, 0L);
960  if(UNEX(res)) {
961    err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
962  res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, 22L);
963  if(UNEX(res)) {
964    err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
965  res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, LO);
966  if(UNEX(res)) {
967    err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
968  res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, HI);
969  if(UNEX(res)) {
970    err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
971  res = curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "string");
972  if(UNEX(res)) {
973    err("ACCEPT_ENCODING", res, __LINE__); goto test_cleanup; }
974  res = curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, NULL);
975  if(UNEX(res)) {
976    err("ACCEPT_ENCODING", res, __LINE__); goto test_cleanup; }
977  res = curl_easy_setopt(curl, CURLOPT_PRIVATE, &object);
978  if(UNEX(res)) {
979    err("PRIVATE", res, __LINE__); goto test_cleanup; }
980  res = curl_easy_setopt(curl, CURLOPT_PRIVATE, NULL);
981  if(UNEX(res)) {
982    err("PRIVATE", res, __LINE__); goto test_cleanup; }
983  res = curl_easy_setopt(curl, CURLOPT_HTTP200ALIASES, slist);
984  if(UNEX(res)) {
985    err("HTTP200ALIASES", res, __LINE__); goto test_cleanup; }
986  res = curl_easy_setopt(curl, CURLOPT_HTTP200ALIASES, NULL);
987  if(UNEX(res)) {
988    err("HTTP200ALIASES", res, __LINE__); goto test_cleanup; }
989  res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 0L);
990  if(UNEX(res)) {
991    err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
992  res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 22L);
993  if(UNEX(res)) {
994    err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
995  res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, LO);
996  if(UNEX(res)) {
997    err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
998  res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, HI);
999  if(UNEX(res)) {
1000    err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
1001  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, 0L);
1002  if(UNEX(res)) {
1003    err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
1004  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, 22L);
1005  if(UNEX(res)) {
1006    err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
1007  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, LO);
1008  if(UNEX(res)) {
1009    err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
1010  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, HI);
1011  if(UNEX(res)) {
1012    err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
1013  res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, 0L);
1014  if(UNEX(res)) {
1015    err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1016  res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, 22L);
1017  if(UNEX(res)) {
1018    err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1019  res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, LO);
1020  if(UNEX(res)) {
1021    err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1022  res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, HI);
1023  if(UNEX(res)) {
1024    err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1025  res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_FUNCTION,
1026                         ssl_ctx_cb);
1027  if(UNEX(res)) {
1028    err("SSL_CTX_FUNCTION", res, __LINE__); goto test_cleanup; }
1029  res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_FUNCTION, NULL);
1030  if(UNEX(res)) {
1031    err("SSL_CTX_FUNCTION", res, __LINE__); goto test_cleanup; }
1032  res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_DATA, &object);
1033  if(UNEX(res)) {
1034    err("SSL_CTX_DATA", res, __LINE__); goto test_cleanup; }
1035  res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_DATA, NULL);
1036  if(UNEX(res)) {
1037    err("SSL_CTX_DATA", res, __LINE__); goto test_cleanup; }
1038  res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, 0L);
1039  if(UNEX(res)) {
1040    err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1041  res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, 22L);
1042  if(UNEX(res)) {
1043    err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1044  res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, LO);
1045  if(UNEX(res)) {
1046    err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1047  res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, HI);
1048  if(UNEX(res)) {
1049    err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1050  res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, 0L);
1051  if(UNEX(res)) {
1052    err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1053  res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, 22L);
1054  if(UNEX(res)) {
1055    err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1056  res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, LO);
1057  if(UNEX(res)) {
1058    err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1059  res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, HI);
1060  if(UNEX(res)) {
1061    err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1062  res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, 0L);
1063  if(UNEX(res)) {
1064    err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1065  res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, 22L);
1066  if(UNEX(res)) {
1067    err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1068  res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, LO);
1069  if(UNEX(res)) {
1070    err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1071  res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, HI);
1072  if(UNEX(res)) {
1073    err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1074  res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, 0L);
1075  if(UNEX(res)) {
1076    err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1077  res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, 22L);
1078  if(UNEX(res)) {
1079    err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1080  res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, LO);
1081  if(UNEX(res)) {
1082    err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1083  res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, HI);
1084  if(UNEX(res)) {
1085    err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1086  res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, 0L);
1087  if(UNEX(res)) {
1088    err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1089  res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, 22L);
1090  if(UNEX(res)) {
1091    err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1092  res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, LO);
1093  if(UNEX(res)) {
1094    err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1095  res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, HI);
1096  if(UNEX(res)) {
1097    err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1098  res = curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, OFF_NO);
1099  if(UNEX(res)) {
1100    err("INFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1101  res = curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, OFF_HI);
1102  if(UNEX(res)) {
1103    err("INFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1104  res = curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, OFF_LO);
1105  if(UNEX(res)) {
1106    err("INFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1107  res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM_LARGE, OFF_NO);
1108  if(UNEX(res)) {
1109    err("RESUME_FROM_LARGE", res, __LINE__); goto test_cleanup; }
1110  res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM_LARGE, OFF_HI);
1111  if(UNEX(res)) {
1112    err("RESUME_FROM_LARGE", res, __LINE__); goto test_cleanup; }
1113  res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM_LARGE, OFF_LO);
1114  if(UNEX(res)) {
1115    err("RESUME_FROM_LARGE", res, __LINE__); goto test_cleanup; }
1116  res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, OFF_NO);
1117  if(UNEX(res)) {
1118    err("MAXFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1119  res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, OFF_HI);
1120  if(UNEX(res)) {
1121    err("MAXFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1122  res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, OFF_LO);
1123  if(UNEX(res)) {
1124    err("MAXFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1125  res = curl_easy_setopt(curl, CURLOPT_NETRC_FILE, "string");
1126  if(UNEX(res)) {
1127    err("NETRC_FILE", res, __LINE__); goto test_cleanup; }
1128  res = curl_easy_setopt(curl, CURLOPT_NETRC_FILE, NULL);
1129  if(UNEX(res)) {
1130    err("NETRC_FILE", res, __LINE__); goto test_cleanup; }
1131  res = curl_easy_setopt(curl, CURLOPT_USE_SSL, 0L);
1132  if(UNEX(res)) {
1133    err("USE_SSL", res, __LINE__); goto test_cleanup; }
1134  res = curl_easy_setopt(curl, CURLOPT_USE_SSL, 22L);
1135  if(UNEX(res)) {
1136    err("USE_SSL", res, __LINE__); goto test_cleanup; }
1137  res = curl_easy_setopt(curl, CURLOPT_USE_SSL, LO);
1138  if(UNEX(res)) {
1139    err("USE_SSL", res, __LINE__); goto test_cleanup; }
1140  res = curl_easy_setopt(curl, CURLOPT_USE_SSL, HI);
1141  if(UNEX(res)) {
1142    err("USE_SSL", res, __LINE__); goto test_cleanup; }
1143  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, OFF_NO);
1144  if(UNEX(res)) {
1145    err("POSTFIELDSIZE_LARGE", res, __LINE__); goto test_cleanup; }
1146  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, OFF_HI);
1147  if(UNEX(res)) {
1148    err("POSTFIELDSIZE_LARGE", res, __LINE__); goto test_cleanup; }
1149  res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, OFF_LO);
1150  if(UNEX(res)) {
1151    err("POSTFIELDSIZE_LARGE", res, __LINE__); goto test_cleanup; }
1152  res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 0L);
1153  if(UNEX(res)) {
1154    err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1155  res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 22L);
1156  if(UNEX(res)) {
1157    err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1158  res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, LO);
1159  if(UNEX(res)) {
1160    err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1161  res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, HI);
1162  if(UNEX(res)) {
1163    err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1164  res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, 0L);
1165  if(UNEX(res)) {
1166    err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1167  res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, 22L);
1168  if(UNEX(res)) {
1169    err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1170  res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, LO);
1171  if(UNEX(res)) {
1172    err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1173  res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, HI);
1174  if(UNEX(res)) {
1175    err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1176  res = curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION,
1177                         ioctlcb);
1178  if(UNEX(res)) {
1179    err("IOCTLFUNCTION", res, __LINE__); goto test_cleanup; }
1180  res = curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, NULL);
1181  if(UNEX(res)) {
1182    err("IOCTLFUNCTION", res, __LINE__); goto test_cleanup; }
1183  res = curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &object);
1184  if(UNEX(res)) {
1185    err("IOCTLDATA", res, __LINE__); goto test_cleanup; }
1186  res = curl_easy_setopt(curl, CURLOPT_IOCTLDATA, NULL);
1187  if(UNEX(res)) {
1188    err("IOCTLDATA", res, __LINE__); goto test_cleanup; }
1189  res = curl_easy_setopt(curl, CURLOPT_FTP_ACCOUNT, "string");
1190  if(UNEX(res)) {
1191    err("FTP_ACCOUNT", res, __LINE__); goto test_cleanup; }
1192  res = curl_easy_setopt(curl, CURLOPT_FTP_ACCOUNT, NULL);
1193  if(UNEX(res)) {
1194    err("FTP_ACCOUNT", res, __LINE__); goto test_cleanup; }
1195  res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, "string");
1196  if(UNEX(res)) {
1197    err("COOKIELIST", res, __LINE__); goto test_cleanup; }
1198  res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, NULL);
1199  if(UNEX(res)) {
1200    err("COOKIELIST", res, __LINE__); goto test_cleanup; }
1201  res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 0L);
1202  if(UNEX(res)) {
1203    err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1204  res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 22L);
1205  if(UNEX(res)) {
1206    err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1207  res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, LO);
1208  if(UNEX(res)) {
1209    err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1210  res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, HI);
1211  if(UNEX(res)) {
1212    err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1213  res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, 0L);
1214  if(UNEX(res)) {
1215    err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1216  res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, 22L);
1217  if(UNEX(res)) {
1218    err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1219  res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, LO);
1220  if(UNEX(res)) {
1221    err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1222  res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, HI);
1223  if(UNEX(res)) {
1224    err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1225  res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, 0L);
1226  if(UNEX(res)) {
1227    err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1228  res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, 22L);
1229  if(UNEX(res)) {
1230    err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1231  res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, LO);
1232  if(UNEX(res)) {
1233    err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1234  res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, HI);
1235  if(UNEX(res)) {
1236    err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1237  res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, 0L);
1238  if(UNEX(res)) {
1239    err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1240  res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, 22L);
1241  if(UNEX(res)) {
1242    err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1243  res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, LO);
1244  if(UNEX(res)) {
1245    err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1246  res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, HI);
1247  if(UNEX(res)) {
1248    err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1249  res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, 0L);
1250  if(UNEX(res)) {
1251    err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1252  res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, 22L);
1253  if(UNEX(res)) {
1254    err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1255  res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, LO);
1256  if(UNEX(res)) {
1257    err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1258  res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, HI);
1259  if(UNEX(res)) {
1260    err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1261  res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 0L);
1262  if(UNEX(res)) {
1263    err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1264  res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 22L);
1265  if(UNEX(res)) {
1266    err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1267  res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, LO);
1268  if(UNEX(res)) {
1269    err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1270  res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, HI);
1271  if(UNEX(res)) {
1272    err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1273  res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_NETWORK_FUNCTION,
1274                         conv_from_network_cb);
1275  if(UNEX(res)) {
1276    err("CONV_FROM_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1277  res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_NETWORK_FUNCTION, NULL);
1278  if(UNEX(res)) {
1279    err("CONV_FROM_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1280  res = curl_easy_setopt(curl, CURLOPT_CONV_TO_NETWORK_FUNCTION,
1281                         conv_to_network_cb);
1282  if(UNEX(res)) {
1283    err("CONV_TO_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1284  res = curl_easy_setopt(curl, CURLOPT_CONV_TO_NETWORK_FUNCTION, NULL);
1285  if(UNEX(res)) {
1286    err("CONV_TO_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1287  res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_UTF8_FUNCTION,
1288                         conv_from_utf8_cb);
1289  if(UNEX(res)) {
1290    err("CONV_FROM_UTF8_FUNCTION", res, __LINE__); goto test_cleanup; }
1291  res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_UTF8_FUNCTION, NULL);
1292  if(UNEX(res)) {
1293    err("CONV_FROM_UTF8_FUNCTION", res, __LINE__); goto test_cleanup; }
1294  res = curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, OFF_NO);
1295  if(UNEX(res)) {
1296    err("MAX_SEND_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1297  res = curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, OFF_HI);
1298  if(UNEX(res)) {
1299    err("MAX_SEND_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1300  res = curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, OFF_LO);
1301  if(UNEX(res)) {
1302    err("MAX_SEND_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1303  res = curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, OFF_NO);
1304  if(UNEX(res)) {
1305    err("MAX_RECV_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1306  res = curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, OFF_HI);
1307  if(UNEX(res)) {
1308    err("MAX_RECV_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1309  res = curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, OFF_LO);
1310  if(UNEX(res)) {
1311    err("MAX_RECV_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1312  res = curl_easy_setopt(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER, "string");
1313  if(UNEX(res)) {
1314    err("FTP_ALTERNATIVE_TO_USER", res, __LINE__); goto test_cleanup; }
1315  res = curl_easy_setopt(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER, NULL);
1316  if(UNEX(res)) {
1317    err("FTP_ALTERNATIVE_TO_USER", res, __LINE__); goto test_cleanup; }
1318  res = curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION,
1319                         sockoptcb);
1320  if(UNEX(res)) {
1321    err("SOCKOPTFUNCTION", res, __LINE__); goto test_cleanup; }
1322  res = curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, NULL);
1323  if(UNEX(res)) {
1324    err("SOCKOPTFUNCTION", res, __LINE__); goto test_cleanup; }
1325  res = curl_easy_setopt(curl, CURLOPT_SOCKOPTDATA, &object);
1326  if(UNEX(res)) {
1327    err("SOCKOPTDATA", res, __LINE__); goto test_cleanup; }
1328  res = curl_easy_setopt(curl, CURLOPT_SOCKOPTDATA, NULL);
1329  if(UNEX(res)) {
1330    err("SOCKOPTDATA", res, __LINE__); goto test_cleanup; }
1331  res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
1332  if(UNEX(res)) {
1333    err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1334  res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 22L);
1335  if(UNEX(res)) {
1336    err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1337  res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, LO);
1338  if(UNEX(res)) {
1339    err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1340  res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, HI);
1341  if(UNEX(res)) {
1342    err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1343  res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, 0L);
1344  if(UNEX(res)) {
1345    err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1346  res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, 22L);
1347  if(UNEX(res)) {
1348    err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1349  res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, LO);
1350  if(UNEX(res)) {
1351    err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1352  res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, HI);
1353  if(UNEX(res)) {
1354    err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1355  res = curl_easy_setopt(curl, CURLOPT_SSH_PUBLIC_KEYFILE, "string");
1356  if(UNEX(res)) {
1357    err("SSH_PUBLIC_KEYFILE", res, __LINE__); goto test_cleanup; }
1358  res = curl_easy_setopt(curl, CURLOPT_SSH_PUBLIC_KEYFILE, NULL);
1359  if(UNEX(res)) {
1360    err("SSH_PUBLIC_KEYFILE", res, __LINE__); goto test_cleanup; }
1361  res = curl_easy_setopt(curl, CURLOPT_SSH_PRIVATE_KEYFILE, "string");
1362  if(UNEX(res)) {
1363    err("SSH_PRIVATE_KEYFILE", res, __LINE__); goto test_cleanup; }
1364  res = curl_easy_setopt(curl, CURLOPT_SSH_PRIVATE_KEYFILE, NULL);
1365  if(UNEX(res)) {
1366    err("SSH_PRIVATE_KEYFILE", res, __LINE__); goto test_cleanup; }
1367  res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, 0L);
1368  if(UNEX(res)) {
1369    err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1370  res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, 22L);
1371  if(UNEX(res)) {
1372    err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1373  res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, LO);
1374  if(UNEX(res)) {
1375    err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1376  res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, HI);
1377  if(UNEX(res)) {
1378    err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1379  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 0L);
1380  if(UNEX(res)) {
1381    err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1382  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 22L);
1383  if(UNEX(res)) {
1384    err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1385  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, LO);
1386  if(UNEX(res)) {
1387    err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1388  res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, HI);
1389  if(UNEX(res)) {
1390    err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1391  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 0L);
1392  if(UNEX(res)) {
1393    err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1394  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 22L);
1395  if(UNEX(res)) {
1396    err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1397  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, LO);
1398  if(UNEX(res)) {
1399    err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1400  res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, HI);
1401  if(UNEX(res)) {
1402    err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1403  res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 0L);
1404  if(UNEX(res)) {
1405    err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1406  res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 22L);
1407  if(UNEX(res)) {
1408    err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1409  res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, LO);
1410  if(UNEX(res)) {
1411    err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1412  res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, HI);
1413  if(UNEX(res)) {
1414    err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1415  res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 0L);
1416  if(UNEX(res)) {
1417    err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1418  res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 22L);
1419  if(UNEX(res)) {
1420    err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1421  res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, LO);
1422  if(UNEX(res)) {
1423    err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1424  res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, HI);
1425  if(UNEX(res)) {
1426    err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1427  res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, 0L);
1428  if(UNEX(res)) {
1429    err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1430  res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, 22L);
1431  if(UNEX(res)) {
1432    err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1433  res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, LO);
1434  if(UNEX(res)) {
1435    err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1436  res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, HI);
1437  if(UNEX(res)) {
1438    err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1439  res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, 0L);
1440  if(UNEX(res)) {
1441    err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1442  res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, 22L);
1443  if(UNEX(res)) {
1444    err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1445  res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, LO);
1446  if(UNEX(res)) {
1447    err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1448  res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, HI);
1449  if(UNEX(res)) {
1450    err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1451  res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, 0L);
1452  if(UNEX(res)) {
1453    err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1454  res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, 22L);
1455  if(UNEX(res)) {
1456    err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1457  res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, LO);
1458  if(UNEX(res)) {
1459    err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1460  res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, HI);
1461  if(UNEX(res)) {
1462    err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1463  res = curl_easy_setopt(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, "string");
1464  if(UNEX(res)) {
1465    err("SSH_HOST_PUBLIC_KEY_MD5", res, __LINE__); goto test_cleanup; }
1466  res = curl_easy_setopt(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, NULL);
1467  if(UNEX(res)) {
1468    err("SSH_HOST_PUBLIC_KEY_MD5", res, __LINE__); goto test_cleanup; }
1469  res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION,
1470                         opensocketcb);
1471  if(UNEX(res)) {
1472    err("OPENSOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1473  res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, NULL);
1474  if(UNEX(res)) {
1475    err("OPENSOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1476  res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, &object);
1477  if(UNEX(res)) {
1478    err("OPENSOCKETDATA", res, __LINE__); goto test_cleanup; }
1479  res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, NULL);
1480  if(UNEX(res)) {
1481    err("OPENSOCKETDATA", res, __LINE__); goto test_cleanup; }
1482  (void)curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
1483  res = curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, stringpointerextra);
1484  if(UNEX(res)) {
1485    err("COPYPOSTFIELDS", res, __LINE__); goto test_cleanup; }
1486  res = curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, NULL);
1487  if(UNEX(res)) {
1488    err("COPYPOSTFIELDS", res, __LINE__); goto test_cleanup; }
1489  res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 0L);
1490  if(UNEX(res)) {
1491    err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1492  res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 22L);
1493  if(UNEX(res)) {
1494    err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1495  res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, LO);
1496  if(UNEX(res)) {
1497    err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1498  res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, HI);
1499  if(UNEX(res)) {
1500    err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1501  res = curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION,
1502                         seekcb);
1503  if(UNEX(res)) {
1504    err("SEEKFUNCTION", res, __LINE__); goto test_cleanup; }
1505  res = curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION, NULL);
1506  if(UNEX(res)) {
1507    err("SEEKFUNCTION", res, __LINE__); goto test_cleanup; }
1508  res = curl_easy_setopt(curl, CURLOPT_SEEKDATA, &object);
1509  if(UNEX(res)) {
1510    err("SEEKDATA", res, __LINE__); goto test_cleanup; }
1511  res = curl_easy_setopt(curl, CURLOPT_SEEKDATA, NULL);
1512  if(UNEX(res)) {
1513    err("SEEKDATA", res, __LINE__); goto test_cleanup; }
1514  res = curl_easy_setopt(curl, CURLOPT_CRLFILE, "string");
1515  if(UNEX(res)) {
1516    err("CRLFILE", res, __LINE__); goto test_cleanup; }
1517  res = curl_easy_setopt(curl, CURLOPT_CRLFILE, NULL);
1518  if(UNEX(res)) {
1519    err("CRLFILE", res, __LINE__); goto test_cleanup; }
1520  res = curl_easy_setopt(curl, CURLOPT_ISSUERCERT, "string");
1521  if(UNEX(res)) {
1522    err("ISSUERCERT", res, __LINE__); goto test_cleanup; }
1523  res = curl_easy_setopt(curl, CURLOPT_ISSUERCERT, NULL);
1524  if(UNEX(res)) {
1525    err("ISSUERCERT", res, __LINE__); goto test_cleanup; }
1526  res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, 0L);
1527  if(UNEX(res)) {
1528    err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1529  res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, 22L);
1530  if(UNEX(res)) {
1531    err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1532  res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, LO);
1533  if(UNEX(res)) {
1534    err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1535  res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, HI);
1536  if(UNEX(res)) {
1537    err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1538  res = curl_easy_setopt(curl, CURLOPT_CERTINFO, 0L);
1539  if(UNEX(res)) {
1540    err("CERTINFO", res, __LINE__); goto test_cleanup; }
1541  res = curl_easy_setopt(curl, CURLOPT_CERTINFO, 22L);
1542  if(UNEX(res)) {
1543    err("CERTINFO", res, __LINE__); goto test_cleanup; }
1544  res = curl_easy_setopt(curl, CURLOPT_CERTINFO, LO);
1545  if(UNEX(res)) {
1546    err("CERTINFO", res, __LINE__); goto test_cleanup; }
1547  res = curl_easy_setopt(curl, CURLOPT_CERTINFO, HI);
1548  if(UNEX(res)) {
1549    err("CERTINFO", res, __LINE__); goto test_cleanup; }
1550  res = curl_easy_setopt(curl, CURLOPT_USERNAME, "string");
1551  if(UNEX(res)) {
1552    err("USERNAME", res, __LINE__); goto test_cleanup; }
1553  res = curl_easy_setopt(curl, CURLOPT_USERNAME, NULL);
1554  if(UNEX(res)) {
1555    err("USERNAME", res, __LINE__); goto test_cleanup; }
1556  res = curl_easy_setopt(curl, CURLOPT_PASSWORD, "string");
1557  if(UNEX(res)) {
1558    err("PASSWORD", res, __LINE__); goto test_cleanup; }
1559  res = curl_easy_setopt(curl, CURLOPT_PASSWORD, NULL);
1560  if(UNEX(res)) {
1561    err("PASSWORD", res, __LINE__); goto test_cleanup; }
1562  res = curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, "string");
1563  if(UNEX(res)) {
1564    err("PROXYUSERNAME", res, __LINE__); goto test_cleanup; }
1565  res = curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, NULL);
1566  if(UNEX(res)) {
1567    err("PROXYUSERNAME", res, __LINE__); goto test_cleanup; }
1568  res = curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, "string");
1569  if(UNEX(res)) {
1570    err("PROXYPASSWORD", res, __LINE__); goto test_cleanup; }
1571  res = curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, NULL);
1572  if(UNEX(res)) {
1573    err("PROXYPASSWORD", res, __LINE__); goto test_cleanup; }
1574  res = curl_easy_setopt(curl, CURLOPT_NOPROXY, "string");
1575  if(UNEX(res)) {
1576    err("NOPROXY", res, __LINE__); goto test_cleanup; }
1577  res = curl_easy_setopt(curl, CURLOPT_NOPROXY, NULL);
1578  if(UNEX(res)) {
1579    err("NOPROXY", res, __LINE__); goto test_cleanup; }
1580  res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, 0L);
1581  if(UNEX(res)) {
1582    err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1583  res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, 22L);
1584  if(UNEX(res)) {
1585    err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1586  res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, LO);
1587  if(UNEX(res)) {
1588    err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1589  res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, HI);
1590  if(UNEX(res)) {
1591    err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1592  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE, "string");
1593  if(UNEX(res)) {
1594    err("SOCKS5_GSSAPI_SERVICE", res, __LINE__); goto test_cleanup; }
1595  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE, NULL);
1596  if(UNEX(res)) {
1597    err("SOCKS5_GSSAPI_SERVICE", res, __LINE__); goto test_cleanup; }
1598  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 0L);
1599  if(UNEX(res)) {
1600    err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1601  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 22L);
1602  if(UNEX(res)) {
1603    err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1604  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, LO);
1605  if(UNEX(res)) {
1606    err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1607  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, HI);
1608  if(UNEX(res)) {
1609    err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1610  res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, 0L);
1611  if(UNEX(res)) {
1612    err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1613  res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, 22L);
1614  if(UNEX(res)) {
1615    err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1616  res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, LO);
1617  if(UNEX(res)) {
1618    err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1619  res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, HI);
1620  if(UNEX(res)) {
1621    err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1622  res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, 0L);
1623  if(UNEX(res)) {
1624    err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1625  res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, 22L);
1626  if(UNEX(res)) {
1627    err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1628  res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, LO);
1629  if(UNEX(res)) {
1630    err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1631  res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, HI);
1632  if(UNEX(res)) {
1633    err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1634  res = curl_easy_setopt(curl, CURLOPT_SSH_KNOWNHOSTS, "string");
1635  if(UNEX(res)) {
1636    err("SSH_KNOWNHOSTS", res, __LINE__); goto test_cleanup; }
1637  res = curl_easy_setopt(curl, CURLOPT_SSH_KNOWNHOSTS, NULL);
1638  if(UNEX(res)) {
1639    err("SSH_KNOWNHOSTS", res, __LINE__); goto test_cleanup; }
1640  res = curl_easy_setopt(curl, CURLOPT_SSH_KEYFUNCTION,
1641                         ssh_keycb);
1642  if(UNEX(res)) {
1643    err("SSH_KEYFUNCTION", res, __LINE__); goto test_cleanup; }
1644  res = curl_easy_setopt(curl, CURLOPT_SSH_KEYFUNCTION, NULL);
1645  if(UNEX(res)) {
1646    err("SSH_KEYFUNCTION", res, __LINE__); goto test_cleanup; }
1647  res = curl_easy_setopt(curl, CURLOPT_SSH_KEYDATA, &object);
1648  if(UNEX(res)) {
1649    err("SSH_KEYDATA", res, __LINE__); goto test_cleanup; }
1650  res = curl_easy_setopt(curl, CURLOPT_SSH_KEYDATA, NULL);
1651  if(UNEX(res)) {
1652    err("SSH_KEYDATA", res, __LINE__); goto test_cleanup; }
1653  res = curl_easy_setopt(curl, CURLOPT_MAIL_FROM, "string");
1654  if(UNEX(res)) {
1655    err("MAIL_FROM", res, __LINE__); goto test_cleanup; }
1656  res = curl_easy_setopt(curl, CURLOPT_MAIL_FROM, NULL);
1657  if(UNEX(res)) {
1658    err("MAIL_FROM", res, __LINE__); goto test_cleanup; }
1659  res = curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, slist);
1660  if(UNEX(res)) {
1661    err("MAIL_RCPT", res, __LINE__); goto test_cleanup; }
1662  res = curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, NULL);
1663  if(UNEX(res)) {
1664    err("MAIL_RCPT", res, __LINE__); goto test_cleanup; }
1665  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, 0L);
1666  if(UNEX(res)) {
1667    err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1668  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, 22L);
1669  if(UNEX(res)) {
1670    err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1671  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, LO);
1672  if(UNEX(res)) {
1673    err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1674  res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, HI);
1675  if(UNEX(res)) {
1676    err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1677  res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, 0L);
1678  if(UNEX(res)) {
1679    err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1680  res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, 22L);
1681  if(UNEX(res)) {
1682    err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1683  res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, LO);
1684  if(UNEX(res)) {
1685    err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1686  res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, HI);
1687  if(UNEX(res)) {
1688    err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1689  res = curl_easy_setopt(curl, CURLOPT_RTSP_SESSION_ID, "string");
1690  if(UNEX(res)) {
1691    err("RTSP_SESSION_ID", res, __LINE__); goto test_cleanup; }
1692  res = curl_easy_setopt(curl, CURLOPT_RTSP_SESSION_ID, NULL);
1693  if(UNEX(res)) {
1694    err("RTSP_SESSION_ID", res, __LINE__); goto test_cleanup; }
1695  res = curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, "string");
1696  if(UNEX(res)) {
1697    err("RTSP_STREAM_URI", res, __LINE__); goto test_cleanup; }
1698  res = curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, NULL);
1699  if(UNEX(res)) {
1700    err("RTSP_STREAM_URI", res, __LINE__); goto test_cleanup; }
1701  res = curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, "string");
1702  if(UNEX(res)) {
1703    err("RTSP_TRANSPORT", res, __LINE__); goto test_cleanup; }
1704  res = curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, NULL);
1705  if(UNEX(res)) {
1706    err("RTSP_TRANSPORT", res, __LINE__); goto test_cleanup; }
1707  res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 0L);
1708  if(UNEX(res)) {
1709    err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1710  res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 22L);
1711  if(UNEX(res)) {
1712    err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1713  res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, LO);
1714  if(UNEX(res)) {
1715    err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1716  res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, HI);
1717  if(UNEX(res)) {
1718    err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1719  res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, 0L);
1720  if(UNEX(res)) {
1721    err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1722  res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, 22L);
1723  if(UNEX(res)) {
1724    err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1725  res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, LO);
1726  if(UNEX(res)) {
1727    err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1728  res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, HI);
1729  if(UNEX(res)) {
1730    err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1731  res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, &object);
1732  if(UNEX(res)) {
1733    err("INTERLEAVEDATA", res, __LINE__); goto test_cleanup; }
1734  res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, NULL);
1735  if(UNEX(res)) {
1736    err("INTERLEAVEDATA", res, __LINE__); goto test_cleanup; }
1737  res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION,
1738                         interleavecb);
1739  if(UNEX(res)) {
1740    err("INTERLEAVEFUNCTION", res, __LINE__); goto test_cleanup; }
1741  res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, NULL);
1742  if(UNEX(res)) {
1743    err("INTERLEAVEFUNCTION", res, __LINE__); goto test_cleanup; }
1744  res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, 0L);
1745  if(UNEX(res)) {
1746    err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1747  res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, 22L);
1748  if(UNEX(res)) {
1749    err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1750  res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, LO);
1751  if(UNEX(res)) {
1752    err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1753  res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, HI);
1754  if(UNEX(res)) {
1755    err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1756  res = curl_easy_setopt(curl, CURLOPT_CHUNK_BGN_FUNCTION,
1757                         chunk_bgn_cb);
1758  if(UNEX(res)) {
1759    err("CHUNK_BGN_FUNCTION", res, __LINE__); goto test_cleanup; }
1760  res = curl_easy_setopt(curl, CURLOPT_CHUNK_BGN_FUNCTION, NULL);
1761  if(UNEX(res)) {
1762    err("CHUNK_BGN_FUNCTION", res, __LINE__); goto test_cleanup; }
1763  res = curl_easy_setopt(curl, CURLOPT_CHUNK_END_FUNCTION,
1764                         chunk_end_cb);
1765  if(UNEX(res)) {
1766    err("CHUNK_END_FUNCTION", res, __LINE__); goto test_cleanup; }
1767  res = curl_easy_setopt(curl, CURLOPT_CHUNK_END_FUNCTION, NULL);
1768  if(UNEX(res)) {
1769    err("CHUNK_END_FUNCTION", res, __LINE__); goto test_cleanup; }
1770  res = curl_easy_setopt(curl, CURLOPT_FNMATCH_FUNCTION,
1771                         fnmatch_cb);
1772  if(UNEX(res)) {
1773    err("FNMATCH_FUNCTION", res, __LINE__); goto test_cleanup; }
1774  res = curl_easy_setopt(curl, CURLOPT_FNMATCH_FUNCTION, NULL);
1775  if(UNEX(res)) {
1776    err("FNMATCH_FUNCTION", res, __LINE__); goto test_cleanup; }
1777  res = curl_easy_setopt(curl, CURLOPT_CHUNK_DATA, &object);
1778  if(UNEX(res)) {
1779    err("CHUNK_DATA", res, __LINE__); goto test_cleanup; }
1780  res = curl_easy_setopt(curl, CURLOPT_CHUNK_DATA, NULL);
1781  if(UNEX(res)) {
1782    err("CHUNK_DATA", res, __LINE__); goto test_cleanup; }
1783  res = curl_easy_setopt(curl, CURLOPT_FNMATCH_DATA, &object);
1784  if(UNEX(res)) {
1785    err("FNMATCH_DATA", res, __LINE__); goto test_cleanup; }
1786  res = curl_easy_setopt(curl, CURLOPT_FNMATCH_DATA, NULL);
1787  if(UNEX(res)) {
1788    err("FNMATCH_DATA", res, __LINE__); goto test_cleanup; }
1789  res = curl_easy_setopt(curl, CURLOPT_RESOLVE, slist);
1790  if(UNEX(res)) {
1791    err("RESOLVE", res, __LINE__); goto test_cleanup; }
1792  res = curl_easy_setopt(curl, CURLOPT_RESOLVE, NULL);
1793  if(UNEX(res)) {
1794    err("RESOLVE", res, __LINE__); goto test_cleanup; }
1795  res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_USERNAME, "string");
1796  if(UNEX(res)) {
1797    err("TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
1798  res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_USERNAME, NULL);
1799  if(UNEX(res)) {
1800    err("TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
1801  res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_PASSWORD, "string");
1802  if(UNEX(res)) {
1803    err("TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
1804  res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_PASSWORD, NULL);
1805  if(UNEX(res)) {
1806    err("TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
1807  res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_TYPE, "string");
1808  if(UNEX(res)) {
1809    err("TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
1810  res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_TYPE, NULL);
1811  if(UNEX(res)) {
1812    err("TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
1813  res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 0L);
1814  if(UNEX(res)) {
1815    err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1816  res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 22L);
1817  if(UNEX(res)) {
1818    err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1819  res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, LO);
1820  if(UNEX(res)) {
1821    err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1822  res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, HI);
1823  if(UNEX(res)) {
1824    err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1825  res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION,
1826                         closesocketcb);
1827  if(UNEX(res)) {
1828    err("CLOSESOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1829  res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, NULL);
1830  if(UNEX(res)) {
1831    err("CLOSESOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1832  res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETDATA, &object);
1833  if(UNEX(res)) {
1834    err("CLOSESOCKETDATA", res, __LINE__); goto test_cleanup; }
1835  res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETDATA, NULL);
1836  if(UNEX(res)) {
1837    err("CLOSESOCKETDATA", res, __LINE__); goto test_cleanup; }
1838  res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, 0L);
1839  if(UNEX(res)) {
1840    err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1841  res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, 22L);
1842  if(UNEX(res)) {
1843    err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1844  res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, LO);
1845  if(UNEX(res)) {
1846    err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1847  res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, HI);
1848  if(UNEX(res)) {
1849    err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1850  res = curl_easy_setopt(curl, CURLOPT_DNS_SERVERS, "string");
1851  if(UNEX(res)) {
1852    err("DNS_SERVERS", res, __LINE__); goto test_cleanup; }
1853  res = curl_easy_setopt(curl, CURLOPT_DNS_SERVERS, NULL);
1854  if(UNEX(res)) {
1855    err("DNS_SERVERS", res, __LINE__); goto test_cleanup; }
1856  res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, 0L);
1857  if(UNEX(res)) {
1858    err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1859  res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, 22L);
1860  if(UNEX(res)) {
1861    err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1862  res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, LO);
1863  if(UNEX(res)) {
1864    err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1865  res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, HI);
1866  if(UNEX(res)) {
1867    err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1868  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 0L);
1869  if(UNEX(res)) {
1870    err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1871  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 22L);
1872  if(UNEX(res)) {
1873    err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1874  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, LO);
1875  if(UNEX(res)) {
1876    err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1877  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, HI);
1878  if(UNEX(res)) {
1879    err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1880  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 0L);
1881  if(UNEX(res)) {
1882    err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1883  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 22L);
1884  if(UNEX(res)) {
1885    err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1886  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, LO);
1887  if(UNEX(res)) {
1888    err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1889  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, HI);
1890  if(UNEX(res)) {
1891    err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1892  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 0L);
1893  if(UNEX(res)) {
1894    err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1895  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 22L);
1896  if(UNEX(res)) {
1897    err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1898  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, LO);
1899  if(UNEX(res)) {
1900    err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1901  res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, HI);
1902  if(UNEX(res)) {
1903    err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1904  res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, 0L);
1905  if(UNEX(res)) {
1906    err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1907  res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, 22L);
1908  if(UNEX(res)) {
1909    err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1910  res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, LO);
1911  if(UNEX(res)) {
1912    err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1913  res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, HI);
1914  if(UNEX(res)) {
1915    err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1916  res = curl_easy_setopt(curl, CURLOPT_MAIL_AUTH, "string");
1917  if(UNEX(res)) {
1918    err("MAIL_AUTH", res, __LINE__); goto test_cleanup; }
1919  res = curl_easy_setopt(curl, CURLOPT_MAIL_AUTH, NULL);
1920  if(UNEX(res)) {
1921    err("MAIL_AUTH", res, __LINE__); goto test_cleanup; }
1922  res = curl_easy_setopt(curl, CURLOPT_SASL_IR, 0L);
1923  if(UNEX(res)) {
1924    err("SASL_IR", res, __LINE__); goto test_cleanup; }
1925  res = curl_easy_setopt(curl, CURLOPT_SASL_IR, 22L);
1926  if(UNEX(res)) {
1927    err("SASL_IR", res, __LINE__); goto test_cleanup; }
1928  res = curl_easy_setopt(curl, CURLOPT_SASL_IR, LO);
1929  if(UNEX(res)) {
1930    err("SASL_IR", res, __LINE__); goto test_cleanup; }
1931  res = curl_easy_setopt(curl, CURLOPT_SASL_IR, HI);
1932  if(UNEX(res)) {
1933    err("SASL_IR", res, __LINE__); goto test_cleanup; }
1934  res = curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION,
1935                         xferinfocb);
1936  if(UNEX(res)) {
1937    err("XFERINFOFUNCTION", res, __LINE__); goto test_cleanup; }
1938  res = curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, NULL);
1939  if(UNEX(res)) {
1940    err("XFERINFOFUNCTION", res, __LINE__); goto test_cleanup; }
1941  res = curl_easy_setopt(curl, CURLOPT_XOAUTH2_BEARER, "string");
1942  if(UNEX(res)) {
1943    err("XOAUTH2_BEARER", res, __LINE__); goto test_cleanup; }
1944  res = curl_easy_setopt(curl, CURLOPT_XOAUTH2_BEARER, NULL);
1945  if(UNEX(res)) {
1946    err("XOAUTH2_BEARER", res, __LINE__); goto test_cleanup; }
1947  res = curl_easy_setopt(curl, CURLOPT_DNS_INTERFACE, "string");
1948  if(UNEX(res)) {
1949    err("DNS_INTERFACE", res, __LINE__); goto test_cleanup; }
1950  res = curl_easy_setopt(curl, CURLOPT_DNS_INTERFACE, NULL);
1951  if(UNEX(res)) {
1952    err("DNS_INTERFACE", res, __LINE__); goto test_cleanup; }
1953  res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP4, "string");
1954  if(UNEX(res)) {
1955    err("DNS_LOCAL_IP4", res, __LINE__); goto test_cleanup; }
1956  res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP4, NULL);
1957  if(UNEX(res)) {
1958    err("DNS_LOCAL_IP4", res, __LINE__); goto test_cleanup; }
1959  res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP6, "string");
1960  if(UNEX(res)) {
1961    err("DNS_LOCAL_IP6", res, __LINE__); goto test_cleanup; }
1962  res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP6, NULL);
1963  if(UNEX(res)) {
1964    err("DNS_LOCAL_IP6", res, __LINE__); goto test_cleanup; }
1965  res = curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "string");
1966  if(UNEX(res)) {
1967    err("LOGIN_OPTIONS", res, __LINE__); goto test_cleanup; }
1968  res = curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, NULL);
1969  if(UNEX(res)) {
1970    err("LOGIN_OPTIONS", res, __LINE__); goto test_cleanup; }
1971  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, 0L);
1972  if(UNEX(res)) {
1973    err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1974  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, 22L);
1975  if(UNEX(res)) {
1976    err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1977  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, LO);
1978  if(UNEX(res)) {
1979    err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1980  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, HI);
1981  if(UNEX(res)) {
1982    err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1983  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L);
1984  if(UNEX(res)) {
1985    err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1986  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 22L);
1987  if(UNEX(res)) {
1988    err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1989  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, LO);
1990  if(UNEX(res)) {
1991    err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1992  res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, HI);
1993  if(UNEX(res)) {
1994    err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1995  res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, 0L);
1996  if(UNEX(res)) {
1997    err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1998  res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, 22L);
1999  if(UNEX(res)) {
2000    err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
2001  res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, LO);
2002  if(UNEX(res)) {
2003    err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
2004  res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, HI);
2005  if(UNEX(res)) {
2006    err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
2007  res = curl_easy_setopt(curl, CURLOPT_PROXYHEADER, slist);
2008  if(UNEX(res)) {
2009    err("PROXYHEADER", res, __LINE__); goto test_cleanup; }
2010  res = curl_easy_setopt(curl, CURLOPT_PROXYHEADER, NULL);
2011  if(UNEX(res)) {
2012    err("PROXYHEADER", res, __LINE__); goto test_cleanup; }
2013  res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, 0L);
2014  if(UNEX(res)) {
2015    err("HEADEROPT", res, __LINE__); goto test_cleanup; }
2016  res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, 22L);
2017  if(UNEX(res)) {
2018    err("HEADEROPT", res, __LINE__); goto test_cleanup; }
2019  res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, LO);
2020  if(UNEX(res)) {
2021    err("HEADEROPT", res, __LINE__); goto test_cleanup; }
2022  res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, HI);
2023  if(UNEX(res)) {
2024    err("HEADEROPT", res, __LINE__); goto test_cleanup; }
2025  res = curl_easy_setopt(curl, CURLOPT_PINNEDPUBLICKEY, "string");
2026  if(UNEX(res)) {
2027    err("PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2028  res = curl_easy_setopt(curl, CURLOPT_PINNEDPUBLICKEY, NULL);
2029  if(UNEX(res)) {
2030    err("PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2031  res = curl_easy_setopt(curl, CURLOPT_UNIX_SOCKET_PATH, "string");
2032  if(UNEX(res)) {
2033    err("UNIX_SOCKET_PATH", res, __LINE__); goto test_cleanup; }
2034  res = curl_easy_setopt(curl, CURLOPT_UNIX_SOCKET_PATH, NULL);
2035  if(UNEX(res)) {
2036    err("UNIX_SOCKET_PATH", res, __LINE__); goto test_cleanup; }
2037  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 0L);
2038  if(UNEX(res)) {
2039    err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2040  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 22L);
2041  if(UNEX(res)) {
2042    err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2043  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, LO);
2044  if(UNEX(res)) {
2045    err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2046  res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, HI);
2047  if(UNEX(res)) {
2048    err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2049  res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, 0L);
2050  if(UNEX(res)) {
2051    err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2052  res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, 22L);
2053  if(UNEX(res)) {
2054    err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2055  res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, LO);
2056  if(UNEX(res)) {
2057    err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2058  res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, HI);
2059  if(UNEX(res)) {
2060    err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2061  res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, 0L);
2062  if(UNEX(res)) {
2063    err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2064  res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, 22L);
2065  if(UNEX(res)) {
2066    err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2067  res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, LO);
2068  if(UNEX(res)) {
2069    err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2070  res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, HI);
2071  if(UNEX(res)) {
2072    err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2073  res = curl_easy_setopt(curl, CURLOPT_PROXY_SERVICE_NAME, "string");
2074  if(UNEX(res)) {
2075    err("PROXY_SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2076  res = curl_easy_setopt(curl, CURLOPT_PROXY_SERVICE_NAME, NULL);
2077  if(UNEX(res)) {
2078    err("PROXY_SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2079  res = curl_easy_setopt(curl, CURLOPT_SERVICE_NAME, "string");
2080  if(UNEX(res)) {
2081    err("SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2082  res = curl_easy_setopt(curl, CURLOPT_SERVICE_NAME, NULL);
2083  if(UNEX(res)) {
2084    err("SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2085  res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, 0L);
2086  if(UNEX(res)) {
2087    err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2088  res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, 22L);
2089  if(UNEX(res)) {
2090    err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2091  res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, LO);
2092  if(UNEX(res)) {
2093    err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2094  res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, HI);
2095  if(UNEX(res)) {
2096    err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2097  res = curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "string");
2098  if(UNEX(res)) {
2099    err("DEFAULT_PROTOCOL", res, __LINE__); goto test_cleanup; }
2100  res = curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, NULL);
2101  if(UNEX(res)) {
2102    err("DEFAULT_PROTOCOL", res, __LINE__); goto test_cleanup; }
2103  res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, 0L);
2104  if(UNEX(res)) {
2105    err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2106  res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, 22L);
2107  if(UNEX(res)) {
2108    err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2109  res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, LO);
2110  if(UNEX(res)) {
2111    err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2112  res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, HI);
2113  if(UNEX(res)) {
2114    err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2115  res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS, dep);
2116  if(UNEX(res)) {
2117    err("STREAM_DEPENDS", res, __LINE__); goto test_cleanup; }
2118  res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS, NULL);
2119  if(UNEX(res)) {
2120    err("STREAM_DEPENDS", res, __LINE__); goto test_cleanup; }
2121  res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS_E, dep);
2122  if(UNEX(res)) {
2123    err("STREAM_DEPENDS_E", res, __LINE__); goto test_cleanup; }
2124  res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS_E, NULL);
2125  if(UNEX(res)) {
2126    err("STREAM_DEPENDS_E", res, __LINE__); goto test_cleanup; }
2127  res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, 0L);
2128  if(UNEX(res)) {
2129    err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2130  res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, 22L);
2131  if(UNEX(res)) {
2132    err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2133  res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, LO);
2134  if(UNEX(res)) {
2135    err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2136  res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, HI);
2137  if(UNEX(res)) {
2138    err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2139  res = curl_easy_setopt(curl, CURLOPT_CONNECT_TO, &object);
2140  if(UNEX(res)) {
2141    err("CONNECT_TO", res, __LINE__); goto test_cleanup; }
2142  res = curl_easy_setopt(curl, CURLOPT_CONNECT_TO, NULL);
2143  if(UNEX(res)) {
2144    err("CONNECT_TO", res, __LINE__); goto test_cleanup; }
2145  res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, 0L);
2146  if(UNEX(res)) {
2147    err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2148  res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, 22L);
2149  if(UNEX(res)) {
2150    err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2151  res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, LO);
2152  if(UNEX(res)) {
2153    err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2154  res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, HI);
2155  if(UNEX(res)) {
2156    err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2157  res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 0L);
2158  if(UNEX(res)) {
2159    err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2160  res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 22L);
2161  if(UNEX(res)) {
2162    err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2163  res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, LO);
2164  if(UNEX(res)) {
2165    err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2166  res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, HI);
2167  if(UNEX(res)) {
2168    err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2169  res = curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO, "string");
2170  if(UNEX(res)) {
2171    err("PROXY_CAINFO", res, __LINE__); goto test_cleanup; }
2172  res = curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO, NULL);
2173  if(UNEX(res)) {
2174    err("PROXY_CAINFO", res, __LINE__); goto test_cleanup; }
2175  res = curl_easy_setopt(curl, CURLOPT_PROXY_CAPATH, "string");
2176  if(UNEX(res)) {
2177    err("PROXY_CAPATH", res, __LINE__); goto test_cleanup; }
2178  res = curl_easy_setopt(curl, CURLOPT_PROXY_CAPATH, NULL);
2179  if(UNEX(res)) {
2180    err("PROXY_CAPATH", res, __LINE__); goto test_cleanup; }
2181  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 0L);
2182  if(UNEX(res)) {
2183    err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2184  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 22L);
2185  if(UNEX(res)) {
2186    err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2187  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, LO);
2188  if(UNEX(res)) {
2189    err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2190  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, HI);
2191  if(UNEX(res)) {
2192    err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2193  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, 0L);
2194  if(UNEX(res)) {
2195    err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2196  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, 22L);
2197  if(UNEX(res)) {
2198    err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2199  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, LO);
2200  if(UNEX(res)) {
2201    err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2202  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, HI);
2203  if(UNEX(res)) {
2204    err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2205  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, 0L);
2206  if(UNEX(res)) {
2207    err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2208  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, 22L);
2209  if(UNEX(res)) {
2210    err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2211  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, LO);
2212  if(UNEX(res)) {
2213    err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2214  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, HI);
2215  if(UNEX(res)) {
2216    err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2217  res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "string");
2218  if(UNEX(res)) {
2219    err("PROXY_TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
2220  res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, NULL);
2221  if(UNEX(res)) {
2222    err("PROXY_TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
2223  res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "string");
2224  if(UNEX(res)) {
2225    err("PROXY_TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
2226  res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, NULL);
2227  if(UNEX(res)) {
2228    err("PROXY_TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
2229  res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "string");
2230  if(UNEX(res)) {
2231    err("PROXY_TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
2232  res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, NULL);
2233  if(UNEX(res)) {
2234    err("PROXY_TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
2235  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "string");
2236  if(UNEX(res)) {
2237    err("PROXY_SSLCERT", res, __LINE__); goto test_cleanup; }
2238  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, NULL);
2239  if(UNEX(res)) {
2240    err("PROXY_SSLCERT", res, __LINE__); goto test_cleanup; }
2241  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "string");
2242  if(UNEX(res)) {
2243    err("PROXY_SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
2244  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, NULL);
2245  if(UNEX(res)) {
2246    err("PROXY_SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
2247  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "string");
2248  if(UNEX(res)) {
2249    err("PROXY_SSLKEY", res, __LINE__); goto test_cleanup; }
2250  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, NULL);
2251  if(UNEX(res)) {
2252    err("PROXY_SSLKEY", res, __LINE__); goto test_cleanup; }
2253  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, "string");
2254  if(UNEX(res)) {
2255    err("PROXY_SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
2256  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, NULL);
2257  if(UNEX(res)) {
2258    err("PROXY_SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
2259  res = curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "string");
2260  if(UNEX(res)) {
2261    err("PROXY_KEYPASSWD", res, __LINE__); goto test_cleanup; }
2262  res = curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, NULL);
2263  if(UNEX(res)) {
2264    err("PROXY_KEYPASSWD", res, __LINE__); goto test_cleanup; }
2265  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_CIPHER_LIST, "string");
2266  if(UNEX(res)) {
2267    err("PROXY_SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
2268  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_CIPHER_LIST, NULL);
2269  if(UNEX(res)) {
2270    err("PROXY_SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
2271  res = curl_easy_setopt(curl, CURLOPT_PROXY_CRLFILE, "string");
2272  if(UNEX(res)) {
2273    err("PROXY_CRLFILE", res, __LINE__); goto test_cleanup; }
2274  res = curl_easy_setopt(curl, CURLOPT_PROXY_CRLFILE, NULL);
2275  if(UNEX(res)) {
2276    err("PROXY_CRLFILE", res, __LINE__); goto test_cleanup; }
2277  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, 0L);
2278  if(UNEX(res)) {
2279    err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2280  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, 22L);
2281  if(UNEX(res)) {
2282    err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2283  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, LO);
2284  if(UNEX(res)) {
2285    err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2286  res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, HI);
2287  if(UNEX(res)) {
2288    err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2289  res = curl_easy_setopt(curl, CURLOPT_PRE_PROXY, "string");
2290  if(UNEX(res)) {
2291    err("PRE_PROXY", res, __LINE__); goto test_cleanup; }
2292  res = curl_easy_setopt(curl, CURLOPT_PRE_PROXY, NULL);
2293  if(UNEX(res)) {
2294    err("PRE_PROXY", res, __LINE__); goto test_cleanup; }
2295  res = curl_easy_setopt(curl, CURLOPT_PROXY_PINNEDPUBLICKEY, "string");
2296  if(UNEX(res)) {
2297    err("PROXY_PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2298  res = curl_easy_setopt(curl, CURLOPT_PROXY_PINNEDPUBLICKEY, NULL);
2299  if(UNEX(res)) {
2300    err("PROXY_PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2301  res = curl_easy_setopt(curl, CURLOPT_ABSTRACT_UNIX_SOCKET, "string");
2302  if(UNEX(res)) {
2303    err("ABSTRACT_UNIX_SOCKET", res, __LINE__); goto test_cleanup; }
2304  res = curl_easy_setopt(curl, CURLOPT_ABSTRACT_UNIX_SOCKET, NULL);
2305  if(UNEX(res)) {
2306    err("ABSTRACT_UNIX_SOCKET", res, __LINE__); goto test_cleanup; }
2307  res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, 0L);
2308  if(UNEX(res)) {
2309    err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2310  res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, 22L);
2311  if(UNEX(res)) {
2312    err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2313  res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, LO);
2314  if(UNEX(res)) {
2315    err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2316  res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, HI);
2317  if(UNEX(res)) {
2318    err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2319  res = curl_easy_setopt(curl, CURLOPT_REQUEST_TARGET, "string");
2320  if(UNEX(res)) {
2321    err("REQUEST_TARGET", res, __LINE__); goto test_cleanup; }
2322  res = curl_easy_setopt(curl, CURLOPT_REQUEST_TARGET, NULL);
2323  if(UNEX(res)) {
2324    err("REQUEST_TARGET", res, __LINE__); goto test_cleanup; }
2325  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, 0L);
2326  if(UNEX(res)) {
2327    err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2328  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, 22L);
2329  if(UNEX(res)) {
2330    err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2331  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, LO);
2332  if(UNEX(res)) {
2333    err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2334  res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, HI);
2335  if(UNEX(res)) {
2336    err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2337  res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, 0L);
2338  if(UNEX(res)) {
2339    err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2340  res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, 22L);
2341  if(UNEX(res)) {
2342    err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2343  res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, LO);
2344  if(UNEX(res)) {
2345    err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2346  res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, HI);
2347  if(UNEX(res)) {
2348    err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2349  res = curl_easy_setopt(curl, CURLOPT_MIMEPOST, mimepost);
2350  if(UNEX(res)) {
2351    err("MIMEPOST", res, __LINE__); goto test_cleanup; }
2352  res = curl_easy_setopt(curl, CURLOPT_MIMEPOST, NULL);
2353  if(UNEX(res)) {
2354    err("MIMEPOST", res, __LINE__); goto test_cleanup; }
2355  res = curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &charp);
2356  if(UNEX(res)) {
2357    geterr("EFFECTIVE_URL", res, __LINE__); goto test_cleanup; }
2358  res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &val);
2359  if(UNEX(res)) {
2360    geterr("RESPONSE_CODE", res, __LINE__); goto test_cleanup; }
2361  res = curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &dval);
2362  if(UNEX(res)) {
2363    geterr("TOTAL_TIME", res, __LINE__); goto test_cleanup; }
2364  res = curl_easy_getinfo(curl, CURLINFO_NAMELOOKUP_TIME, &dval);
2365  if(UNEX(res)) {
2366    geterr("NAMELOOKUP_TIME", res, __LINE__); goto test_cleanup; }
2367  res = curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME, &dval);
2368  if(UNEX(res)) {
2369    geterr("CONNECT_TIME", res, __LINE__); goto test_cleanup; }
2370  res = curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME, &dval);
2371  if(UNEX(res)) {
2372    geterr("PRETRANSFER_TIME", res, __LINE__); goto test_cleanup; }
2373  res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &dval);
2374  if(UNEX(res)) {
2375    geterr("SIZE_UPLOAD", res, __LINE__); goto test_cleanup; }
2376  res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD_T, &oval);
2377  if(UNEX(res)) {
2378    geterr("SIZE_UPLOAD_T", res, __LINE__); goto test_cleanup; }
2379  res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &dval);
2380  if(UNEX(res)) {
2381    geterr("SIZE_DOWNLOAD", res, __LINE__); goto test_cleanup; }
2382  res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD_T, &oval);
2383  if(UNEX(res)) {
2384    geterr("SIZE_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
2385  res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD, &dval);
2386  if(UNEX(res)) {
2387    geterr("SPEED_DOWNLOAD", res, __LINE__); goto test_cleanup; }
2388  res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD_T, &oval);
2389  if(UNEX(res)) {
2390    geterr("SPEED_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
2391  res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &dval);
2392  if(UNEX(res)) {
2393    geterr("SPEED_UPLOAD", res, __LINE__); goto test_cleanup; }
2394  res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD_T, &oval);
2395  if(UNEX(res)) {
2396    geterr("SPEED_UPLOAD_T", res, __LINE__); goto test_cleanup; }
2397  res = curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &val);
2398  if(UNEX(res)) {
2399    geterr("HEADER_SIZE", res, __LINE__); goto test_cleanup; }
2400  res = curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &val);
2401  if(UNEX(res)) {
2402    geterr("REQUEST_SIZE", res, __LINE__); goto test_cleanup; }
2403  res = curl_easy_getinfo(curl, CURLINFO_SSL_VERIFYRESULT, &val);
2404  if(UNEX(res)) {
2405    geterr("SSL_VERIFYRESULT", res, __LINE__); goto test_cleanup; }
2406  res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &val);
2407  if(UNEX(res)) {
2408    geterr("FILETIME", res, __LINE__); goto test_cleanup; }
2409  res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &dval);
2410  if(UNEX(res)) {
2411    geterr("CONTENT_LENGTH_DOWNLOAD", res, __LINE__); goto test_cleanup; }
2412  res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &oval);
2413  if(UNEX(res)) {
2414    geterr("CONTENT_LENGTH_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
2415  res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_UPLOAD, &dval);
2416  if(UNEX(res)) {
2417    geterr("CONTENT_LENGTH_UPLOAD", res, __LINE__); goto test_cleanup; }
2418  res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_UPLOAD_T, &oval);
2419  if(UNEX(res)) {
2420    geterr("CONTENT_LENGTH_UPLOAD_T", res, __LINE__); goto test_cleanup; }
2421  res = curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME, &dval);
2422  if(UNEX(res)) {
2423    geterr("STARTTRANSFER_TIME", res, __LINE__); goto test_cleanup; }
2424  res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &charp);
2425  if(UNEX(res)) {
2426    geterr("CONTENT_TYPE", res, __LINE__); goto test_cleanup; }
2427  res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_TIME, &dval);
2428  if(UNEX(res)) {
2429    geterr("REDIRECT_TIME", res, __LINE__); goto test_cleanup; }
2430  res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_COUNT, &val);
2431  if(UNEX(res)) {
2432    geterr("REDIRECT_COUNT", res, __LINE__); goto test_cleanup; }
2433  res = curl_easy_getinfo(curl, CURLINFO_PRIVATE, &charp);
2434  if(UNEX(res)) {
2435    geterr("PRIVATE", res, __LINE__); goto test_cleanup; }
2436  res = curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, &val);
2437  if(UNEX(res)) {
2438    geterr("HTTP_CONNECTCODE", res, __LINE__); goto test_cleanup; }
2439  res = curl_easy_getinfo(curl, CURLINFO_HTTPAUTH_AVAIL, &val);
2440  if(UNEX(res)) {
2441    geterr("HTTPAUTH_AVAIL", res, __LINE__); goto test_cleanup; }
2442  res = curl_easy_getinfo(curl, CURLINFO_PROXYAUTH_AVAIL, &val);
2443  if(UNEX(res)) {
2444    geterr("PROXYAUTH_AVAIL", res, __LINE__); goto test_cleanup; }
2445  res = curl_easy_getinfo(curl, CURLINFO_OS_ERRNO, &val);
2446  if(UNEX(res)) {
2447    geterr("OS_ERRNO", res, __LINE__); goto test_cleanup; }
2448  res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &val);
2449  if(UNEX(res)) {
2450    geterr("NUM_CONNECTS", res, __LINE__); goto test_cleanup; }
2451  res = curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &slist);
2452  if(UNEX(res)) {
2453    geterr("SSL_ENGINES", res, __LINE__); goto test_cleanup; }
2454  if(slist)
2455    curl_slist_free_all(slist);
2456  res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &slist);
2457  if(UNEX(res)) {
2458    geterr("COOKIELIST", res, __LINE__); goto test_cleanup; }
2459  if(slist)
2460    curl_slist_free_all(slist);
2461  res = curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &val);
2462  if(UNEX(res)) {
2463    geterr("LASTSOCKET", res, __LINE__); goto test_cleanup; }
2464  res = curl_easy_getinfo(curl, CURLINFO_FTP_ENTRY_PATH, &charp);
2465  if(UNEX(res)) {
2466    geterr("FTP_ENTRY_PATH", res, __LINE__); goto test_cleanup; }
2467  res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &charp);
2468  if(UNEX(res)) {
2469    geterr("REDIRECT_URL", res, __LINE__); goto test_cleanup; }
2470  res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &charp);
2471  if(UNEX(res)) {
2472    geterr("PRIMARY_IP", res, __LINE__); goto test_cleanup; }
2473  res = curl_easy_getinfo(curl, CURLINFO_APPCONNECT_TIME, &dval);
2474  if(UNEX(res)) {
2475    geterr("APPCONNECT_TIME", res, __LINE__); goto test_cleanup; }
2476  res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &certinfo);
2477  if(UNEX(res)) {
2478    geterr("CERTINFO", res, __LINE__); goto test_cleanup; }
2479  res = curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &val);
2480  if(UNEX(res)) {
2481    geterr("CONDITION_UNMET", res, __LINE__); goto test_cleanup; }
2482  res = curl_easy_getinfo(curl, CURLINFO_RTSP_SESSION_ID, &charp);
2483  if(UNEX(res)) {
2484    geterr("RTSP_SESSION_ID", res, __LINE__); goto test_cleanup; }
2485  res = curl_easy_getinfo(curl, CURLINFO_RTSP_CLIENT_CSEQ, &val);
2486  if(UNEX(res)) {
2487    geterr("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
2488  res = curl_easy_getinfo(curl, CURLINFO_RTSP_SERVER_CSEQ, &val);
2489  if(UNEX(res)) {
2490    geterr("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
2491  res = curl_easy_getinfo(curl, CURLINFO_RTSP_CSEQ_RECV, &val);
2492  if(UNEX(res)) {
2493    geterr("RTSP_CSEQ_RECV", res, __LINE__); goto test_cleanup; }
2494  res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_PORT, &val);
2495  if(UNEX(res)) {
2496    geterr("PRIMARY_PORT", res, __LINE__); goto test_cleanup; }
2497  res = curl_easy_getinfo(curl, CURLINFO_LOCAL_IP, &charp);
2498  if(UNEX(res)) {
2499    geterr("LOCAL_IP", res, __LINE__); goto test_cleanup; }
2500  res = curl_easy_getinfo(curl, CURLINFO_LOCAL_PORT, &val);
2501  if(UNEX(res)) {
2502    geterr("LOCAL_PORT", res, __LINE__); goto test_cleanup; }
2503  res = curl_easy_getinfo(curl, CURLINFO_TLS_SESSION, &tlssession);
2504  if(UNEX(res)) {
2505    geterr("TLS_SESSION", res, __LINE__); goto test_cleanup; }
2506  res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockfd);
2507  if(UNEX(res)) {
2508    geterr("ACTIVESOCKET", res, __LINE__); goto test_cleanup; }
2509  res = curl_easy_getinfo(curl, CURLINFO_TLS_SSL_PTR, &tlssession);
2510  if(UNEX(res)) {
2511    geterr("TLS_SSL_PTR", res, __LINE__); goto test_cleanup; }
2512  res = curl_easy_getinfo(curl, CURLINFO_HTTP_VERSION, &val);
2513  if(UNEX(res)) {
2514    geterr("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
2515  res = curl_easy_getinfo(curl, CURLINFO_PROXY_SSL_VERIFYRESULT, &val);
2516  if(UNEX(res)) {
2517    geterr("PROXY_SSL_VERIFYRESULT", res, __LINE__); goto test_cleanup; }
2518  res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &val);
2519  if(UNEX(res)) {
2520    geterr("PROTOCOL", res, __LINE__); goto test_cleanup; }
2521  res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &charp);
2522  if(UNEX(res)) {
2523    geterr("SCHEME", res, __LINE__); goto test_cleanup; }
2524  curl_easy_setopt(curl, 1, 0);
2525  res = CURLE_OK;
2526test_cleanup:
2527  curl_easy_cleanup(curl);
2528  curl_easy_cleanup(dep);
2529  curl_share_cleanup(share);
2530  curl_global_cleanup();
2531
2532  return (int)res;
2533}
2534