[sr-dev] [kamailio/kamailio] extensions to lost and http_client modules (#2675)

Wolfgang Kampichler notifications at github.com
Wed Mar 31 21:37:57 CEST 2021


@wkampich commented on this pull request.



> +
+	/* clean up */
+	if(rtype != NULL) {
+		pkg_free(rtype);
+	}
+
+	if(heldreq != NULL && len == 0) {
+		LM_ERR("could not create POST request\n");
+		goto err;
+	}
+
+	LM_DBG("POST request: [%.*s]\n", len, heldreq);
+
+	/* curl doesn't like str */
+	len = 0;
+	lisurl = lost_copy_string(url, &len);

curl requires a zero terminated string as url, which is not added by the http_client API query function `http_client_query_c`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2675#discussion_r605169131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210331/3acf9317/attachment.htm>


More information about the sr-dev mailing list