From 6cbc77a8048fa4c6e4c987b9bfaacad137db1255 Mon Sep 17 00:00:00 2001 From: "Olle E. Johansson" Date: Sat, 19 Sep 2015 11:40:34 +0100 Subject: [PATCH] curl Add information about return value of curl_connect --- modules/curl/README | 4 ++++ modules/curl/doc/curl_admin.xml | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/curl/README b/modules/curl/README index 58cf21bb3b5..1ce45753a11 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 ce3eba7af8d..3bd7c31a09f 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; curl_connect(connection, url, content_type, data, result) - 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. + + + 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,