[sr-dev] git:master:c54d6ab6: curl Update documentation with a note about URL encoding

Olle E. Johansson oej at edvina.net
Tue Nov 3 09:39:33 CET 2015


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

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at 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/c54d6ab6506bc2334c5a1f5a6cbd28633f4f4697.diff
Patch: https://github.com/kamailio/kamailio/commit/c54d6ab6506bc2334c5a1f5a6cbd28633f4f4697.patch

---

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.




More information about the sr-dev mailing list