diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <prabowo@darapsa.org> | 2022-10-05 17:43:18 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <prabowo@darapsa.org> | 2022-10-05 17:43:18 +0800 |
commit | b7086a2580131680a74d4b56bbf0f26085c6bab6 (patch) | |
tree | f1c2243ca742e82ceb45d04060e92db1dbeab984 | |
parent | 0c9fa43eae3dcdbd6a22eef77d846122563da75d (diff) |
Verbose option
-rw-r--r-- | midtrans.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -25,6 +25,9 @@ void midtrans_init(_Bool production, const char *api_key, const char *cainfo) curl_global_init(CURL_GLOBAL_SSL); curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); +#ifdef DEBUG + curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); +#endif static const char *basic_tmpl = "%s:"; const size_t basic_len = strlen(basic_tmpl) - strlen("%s") |