Browse Source

curl Update documentation with a note about URL encoding

Olle E. Johansson 10 years ago
parent
commit
c54d6ab650
2 changed files with 13 additions and 4 deletions
  1. 7 3
      modules/curl/README
  2. 6 1
      modules/curl/doc/curl_admin.xml

+ 7 - 3
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
 

+ 6 - 1
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.