***************************************************************************/
#include "test.h"
+#include "testtrace.h"
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"
global_init(CURL_GLOBAL_ALL);
+ libtest_debug_config.nohex = 1;
+ libtest_debug_config.tracetime = 1;
+
easy_init(hnd);
easy_setopt(hnd, CURLOPT_URL, URL);
+ easy_setopt(hnd, CURLOPT_CONNECTTIMEOUT, 1L);
easy_setopt(hnd, CURLOPT_HSTSREADFUNCTION, hstsread);
easy_setopt(hnd, CURLOPT_HSTSREADDATA, &st);
easy_setopt(hnd, CURLOPT_HSTSWRITEFUNCTION, hstswrite);
easy_setopt(hnd, CURLOPT_HSTSWRITEDATA, &st);
easy_setopt(hnd, CURLOPT_HSTS_CTRL, CURLHSTS_ENABLE);
+ easy_setopt(hnd, CURLOPT_DEBUGDATA, &libtest_debug_config);
+ easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, libtest_debug_cb);
+ easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
res = curl_easy_perform(hnd);
curl_easy_cleanup(hnd);
hnd = NULL;
+ if(res == CURLE_OPERATION_TIMEDOUT) /* we expect that on Windows */
+ res = CURLE_COULDNT_CONNECT;
printf("First request returned %d\n", res);
res = CURLE_OK;
easy_init(hnd);
easy_setopt(hnd, CURLOPT_URL, URL);
+ easy_setopt(hnd, CURLOPT_CONNECTTIMEOUT, 1L);
easy_setopt(hnd, CURLOPT_HSTSREADFUNCTION, hstsreadfail);
easy_setopt(hnd, CURLOPT_HSTSREADDATA, &st);
easy_setopt(hnd, CURLOPT_HSTSWRITEFUNCTION, hstswrite);
easy_setopt(hnd, CURLOPT_HSTSWRITEDATA, &st);
easy_setopt(hnd, CURLOPT_HSTS_CTRL, CURLHSTS_ENABLE);
+ easy_setopt(hnd, CURLOPT_DEBUGDATA, &libtest_debug_config);
+ easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, libtest_debug_cb);
+ easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
res = curl_easy_perform(hnd);
curl_easy_cleanup(hnd);
hnd = NULL;