From 6e9ccf34512f878be1a98a6b007aa338e891180e Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sat, 21 Nov 2009 14:21:13 +0100 Subject: [PATCH 6/6] added option to make curl verbose With this patch, when the $XMLRPC_TRACE_CURL environment variable is set, verbose curl output/debugging will be enabled. Based upon a patch from John Dennis --- lib/curl_transport/curltransaction.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/curl_transport/curltransaction.c b/lib/curl_transport/curltransaction.c index 4239385..9089d04 100644 --- a/lib/curl_transport/curltransaction.c +++ b/lib/curl_transport/curltransaction.c @@ -503,6 +503,9 @@ setupCurlSession(xmlrpc_env * const envP, curl_easy_setopt(curlSessionP, CURLOPT_SSL_CIPHER_LIST, curlSetupP->sslCipherList); + if (getenv("XMLRPC_TRACE_CURL")) + curl_easy_setopt(curlSessionP, CURLOPT_VERBOSE, 1l); + if (curlSetupP->timeout) setCurlTimeout(curlSessionP, curlSetupP->timeout); -- 1.6.5.2