[sr-dev] git:master:1d63275f: http_client Investigate needs of improvements to the API and add some thoughts to the TODO document

Olle E. Johansson oej at edvina.net
Thu May 12 21:38:49 CEST 2016


Module: kamailio
Branch: master
Commit: 1d63275f4b1ec07bc554bc1fa77e82dc43159919
URL: https://github.com/kamailio/kamailio/commit/1d63275f4b1ec07bc554bc1fa77e82dc43159919

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date: 2016-05-12T21:38:10+02:00

http_client Investigate needs of improvements to the API and add some thoughts to the TODO document

---

Modified: modules/http_client/TODO.txt

---

Diff:  https://github.com/kamailio/kamailio/commit/1d63275f4b1ec07bc554bc1fa77e82dc43159919.diff
Patch: https://github.com/kamailio/kamailio/commit/1d63275f4b1ec07bc554bc1fa77e82dc43159919.patch

---

diff --git a/modules/http_client/TODO.txt b/modules/http_client/TODO.txt
index 17eb0b9..81bde1b 100644
--- a/modules/http_client/TODO.txt
+++ b/modules/http_client/TODO.txt
@@ -68,10 +68,33 @@ The http_client module - todo
 
 - Option to configure DNS resolvers for CURL to use
 
+
+Development API
+---------------
+- xcap_client needs to add headers:
+  char* hdr_name= NULL;
+
+                memset(buf, 0, 128* sizeof(char));
+                match_header= buf;
+
+                hdr_name= (match_type==IF_MATCH)?"If-Match":"If-None-Match";
+
+                len=sprintf(match_header, "%s: %s\n", hdr_name, match_etag);
+
+                match_header[len]= '\0';
+  https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html
+
+- It also does get a headers from the reply, which needs a callback
+- auth_identify sets the CURLOPT_CAINFO option
+  https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html
+  This can be set in the httpconf object
+
+
+
 Issues in the bug tracker
 -------------------------
-- https://github.com/kamailio/kamailio/issues/542  - open
-  Support connection reuse. Needs private memory structures to track connections
+
+- none
 
 
 Solved issues
@@ -87,4 +110,6 @@ Solved issues
   Support TLS client certificates
 - https://github.com/kamailio/kamailio/pull/435 - closed
   Pull request that fixed a lot of issues.
+- https://github.com/kamailio/kamailio/issues/542  - closed
+  Support connection reuse. Needs private memory structures to track connections
 




More information about the sr-dev mailing list