Browse code

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

Olle E. Johansson authored on 12/05/2016 19:38:10
Showing 1 changed files
... ...
@@ -68,10 +68,33 @@ The http_client module - todo
68 68
 
69 69
 - Option to configure DNS resolvers for CURL to use
70 70
 
71
+
72
+Development API
73
+---------------
74
+- xcap_client needs to add headers:
75
+  char* hdr_name= NULL;
76
+
77
+                memset(buf, 0, 128* sizeof(char));
78
+                match_header= buf;
79
+
80
+                hdr_name= (match_type==IF_MATCH)?"If-Match":"If-None-Match";
81
+
82
+                len=sprintf(match_header, "%s: %s\n", hdr_name, match_etag);
83
+
84
+                match_header[len]= '\0';
85
+  https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html
86
+
87
+- It also does get a headers from the reply, which needs a callback
88
+- auth_identify sets the CURLOPT_CAINFO option
89
+  https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html
90
+  This can be set in the httpconf object
91
+
92
+
93
+
71 94
 Issues in the bug tracker
72 95
 -------------------------
73
-- https://github.com/kamailio/kamailio/issues/542  - open
74
-  Support connection reuse. Needs private memory structures to track connections
96
+
97
+- none
75 98
 
76 99
 
77 100
 Solved issues
... ...
@@ -87,4 +110,6 @@ Solved issues
87 110
   Support TLS client certificates
88 111
 - https://github.com/kamailio/kamailio/pull/435 - closed
89 112
   Pull request that fixed a lot of issues.
113
+- https://github.com/kamailio/kamailio/issues/542  - closed
114
+  Support connection reuse. Needs private memory structures to track connections
90 115