[sr-dev] git:master:19708f20: http_client Add some debugging

Olle E. Johansson oej at edvina.net
Sat Apr 2 08:39:21 CEST 2016


Module: kamailio
Branch: master
Commit: 19708f20373f70ad2915caed7fa8d8c98913fb5b
URL: https://github.com/kamailio/kamailio/commit/19708f20373f70ad2915caed7fa8d8c98913fb5b

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2016-04-02T08:28:22+02:00

http_client Add some debugging

---

Modified: modules/http_client/functions.c

---

Diff:  https://github.com/kamailio/kamailio/commit/19708f20373f70ad2915caed7fa8d8c98913fb5b.diff
Patch: https://github.com/kamailio/kamailio/commit/19708f20373f70ad2915caed7fa8d8c98913fb5b.patch

---

diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c
index 8a60e88..3757c98 100644
--- a/modules/http_client/functions.c
+++ b/modules/http_client/functions.c
@@ -211,6 +211,9 @@ static int curL_query_url(struct sip_msg* _m, const char* _url, str* _dst, const
     res |= curl_easy_setopt(curl, CURLOPT_NOSIGNAL, (long) 1);
     res |= curl_easy_setopt(curl, CURLOPT_TIMEOUT, (long) params->timeout);
     res |= curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, (long) params->http_follow_redirect);
+    if (params->http_follow_redirect) {
+	LM_DBG("****** ##### Following redirects for this request! \n");
+    }
 
 
     res |= curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_function);




More information about the sr-dev mailing list