Module: kamailio
Branch: master
Commit: c54d6ab6506bc2334c5a1f5a6cbd28633f4f4697
URL: https://github.com/kamailio/kamailio/commit/c54d6ab6506bc2334c5a1f5a6cbd286…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-11-03T09:39:01+01:00
curl Update documentation with a note about URL encoding
---
Modified: modules/curl/README
Modified: modules/curl/doc/curl_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/c54d6ab6506bc2334c5a1f5a6cbd286…
Patch: https://github.com/kamailio/kamailio/commit/c54d6ab6506bc2334c5a1f5a6cbd286…
---
diff --git a/modules/curl/README b/modules/curl/README
index 27a6b18..807efad 100644
--- a/modules/curl/README
+++ b/modules/curl/README
@@ -132,9 +132,13 @@ Chapter 1. Admin Guide
and much more either using modparam settings or parameters to the
connection definition.
- Function http_query allows Kamailio to issue an HTTP GET request and
- get access to parts of the reply. This function has been ported from
- the utils module and now use the same libcurl functions.
+ Like in SIP, the HTTP URL may need encoding to be transported safely
+ over the network. Check the string encoding functions in the
+ Transformation Cookbook (as used in the curl_http_query example below).
+
+ Function curl_http_query allows Kamailio to issue an HTTP GET request
+ and get access to parts of the reply. This function has been ported
+ from the utils module and now use the same libcurl functions.
2. Dependencies
diff --git a/modules/curl/doc/curl_admin.xml b/modules/curl/doc/curl_admin.xml
index 44f42dc..54e3e59 100644
--- a/modules/curl/doc/curl_admin.xml
+++ b/modules/curl/doc/curl_admin.xml
@@ -32,7 +32,12 @@
connection definition.
</para>
<para>
- Function http_query allows &kamailio; to issue an HTTP GET
+ Like in SIP, the HTTP URL may need encoding to be transported safely
+ over the network. Check the string encoding functions in the Transformation
+ Cookbook (as used in the curl_http_query example below).
+ </para>
+ <para>
+ Function curl_http_query allows &kamailio; to issue an HTTP GET
request and get access to parts of the reply. This function has
been ported from the utils module and now use the same libcurl
functions.
Kex module updated to also give some details about memory used by each module.
Changed f_*, q_* and tlsf_* memory stubs to also include the module name.
Added 2 new memory API functions(for each of the memory algos) which will
iterate throughout the memory fragments and agregate the memory size used by
each function in order to print it.
Tested with MEMMNG=0,1,2 and MEMDBG=0,1. Use "kamcmd mem.stat mod_name pkg/shm/all" to test
Updated doku.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/225
-- Commit Summary --
* kex: per module memory debugging
-- File Changes --
M events.c (25)
M events.h (4)
M mem/f_malloc.c (135)
M mem/f_malloc.h (47)
M mem/mem.h (32)
M mem/q_malloc.c (113)
M mem/q_malloc.h (40)
M mem/shm_mem.c (4)
M mem/shm_mem.h (32)
M mem/src_loc.h (2)
M mem/tlsf.c (105)
M mem/tlsf.h (32)
M modules/ctl/binrpc_run.c (12)
M modules/kex/doc/kex_admin.xml (76)
M modules/kex/kex_mod.c (7)
A modules/kex/mod_stats.c (288)
A modules/kex/mod_stats.h (37)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/225.patchhttps://github.com/kamailio/kamailio/pull/225.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/225