浏览代码

curl Update documentation with a note about URL encoding

Olle E. Johansson 10 年之前
父节点
当前提交
c54d6ab650
共有 2 个文件被更改,包括 13 次插入4 次删除
  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
    and much more either using modparam settings or parameters to the
    connection definition.
    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
 2. Dependencies
 
 

+ 6 - 1
modules/curl/doc/curl_admin.xml

@@ -32,7 +32,12 @@
 	connection definition.
 	connection definition.
 	</para>
 	</para>
 	<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
 	request and get access to parts of the reply. This function has
 	been ported from the utils module and now use the same libcurl
 	been ported from the utils module and now use the same libcurl
 	functions.
 	functions.