Module: kamailio
Branch: master
Commit: 6cbc77a8048fa4c6e4c987b9bfaacad137db1255
URL:
https://github.com/kamailio/kamailio/commit/6cbc77a8048fa4c6e4c987b9bfaacad…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-09-19T11:40:34+01:00
curl Add information about return value of curl_connect
---
Modified: modules/curl/README
Modified: modules/curl/doc/curl_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/6cbc77a8048fa4c6e4c987b9bfaacad…
Patch:
https://github.com/kamailio/kamailio/commit/6cbc77a8048fa4c6e4c987b9bfaacad…
---
diff --git a/modules/curl/README b/modules/curl/README
index 58cf21b..1ce4575 100644
--- a/modules/curl/README
+++ b/modules/curl/README
@@ -294,6 +294,10 @@ content_type, data, result)
Sends HTTP GET or POST request to a given connection. For a POST
request, content-type can be specified.
+ The return value is the HTTP return code (if >=100) or the CURL error
+ code if below 100. See the $curlerror pseudovariable below for more
+ information about CURL error codes.
+
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, and BRANCH_ROUTE.
diff --git a/modules/curl/doc/curl_admin.xml b/modules/curl/doc/curl_admin.xml
index ce3eba7..3bd7c31 100644
--- a/modules/curl/doc/curl_admin.xml
+++ b/modules/curl/doc/curl_admin.xml
@@ -270,8 +270,13 @@ modparam("curl", "curlcon",
"apifour=>http://stockholm.example.com/api/getstuff;
<function moreinfo="none">curl_connect(connection, url, content_type,
data, result)</function>
</title>
<para>
- Sends HTTP GET or POST request to a given connection. For a
- POST request, content-type can be specified.
+ Sends HTTP GET or POST request to a given connection. For a
+ POST request, content-type can be specified.
+ </para>
+ <para>
+ The return value is the HTTP return code (if >=100) or the
+ CURL error code if below 100. See the $curlerror pseudovariable
+ below for more information about CURL error codes.
</para>
<para>
This function can be used from REQUEST_ROUTE,