Skip to content

Commit

Permalink
curl Add information about return value of curl_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
oej committed Sep 19, 2015
1 parent dd19f2f commit 6cbc77a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions modules/curl/README
Expand Up @@ -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.

Expand Down
9 changes: 7 additions & 2 deletions modules/curl/doc/curl_admin.xml
Expand Up @@ -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,
Expand Down

0 comments on commit 6cbc77a

Please sign in to comment.