From 126c9c341af5f7cf74279d1a6e757f7602ce7d99 Mon Sep 17 00:00:00 2001 From: "Olle E. Johansson" Date: Mon, 28 Mar 2016 20:54:17 +0200 Subject: [PATCH] http_client Limit protocols to HTTP and HTTPS --- modules/http_client/functions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/http_client/functions.c b/modules/http_client/functions.c index 3d1b5760120..919839b62ef 100644 --- a/modules/http_client/functions.c +++ b/modules/http_client/functions.c @@ -130,6 +130,9 @@ static int curL_query_url(struct sip_msg* _m, const char* _url, str* _dst, const LM_DBG("****** ##### CURL URL [%s] \n", _url); res = curl_easy_setopt(curl, CURLOPT_URL, _url); + /* Limit to HTTP and HTTPS protocols */ + res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); + if (params->post) { char ctype[256];