cURL
Developer
3rd Party (Commercial)
EE Version Support
- ExpressionEngine 1.x
- ExpressionEngine 2
Compatibility
If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.
- Updater
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Content Elements
- Better Workflow
- Matrix
- Grid
- Webservice
- Publisher
Requirements
- jQuery for the Control Panel
Add-On Type(s)
Plugin
Tags
Allows you to use the cURL library to safely fetch data from remote sites.
PARAMETERS
1) url - required. Alows you to specify URL of the web page you want to fetch using cURL library.
2) post_vars - optional. Alows you to specify names of $_POST variables which will be sent
while fetching the web page. You may specify several $_POST variable names using pipe operator.
Any $_POST variable name can then be used as parameter of exp:curl tag to set variable’s value.
E.g. post_vars=“var_name1|var_name2” var_name1=“yes” var_name2=“no”
3) connect_timeout - optional. Alows you to specify the number of seconds to wait
while trying to connect. Use 0 to wait indefinitely. Default value for this parameter is “2”.
4) timeout - optional. Alows you to specify the maximum number of seconds to allow cURL functions to execute.
Default value for this parameter is “10”.
5) setopt_vars - optional. Alows you to specify names of parameters of curl_setopt() function.
About curl_setopt() function look at http://www.php.net/manual/en/function.curl-setopt.php
You may specify several parameter names of curl_setopt() function using pipe operator.
Any parameter name can then be used as parameter of exp:curl tag to set variable’s value.
E.g. setopt_vars=“CURLOPT_NOBODY|CURLOPT_FOLLOWLOCATION|CURLOPT_MAXREDIRS”
CURLOPT_NOBODY=“TRUE” CURLOPT_FOLLOWLOCATION=“TRUE” CURLOPT_MAXREDIRS=“1”
6) string_param_convert - optional. Set this parameter to “yes” in case you get PHP error
curl_setopt() expects parameter 2 to be long, string given
USAGE
{exp:curl url="http://www.example.com" post_vars="var_name|var_name2" var_name="yes" var_name2="no" connect_timeout="5" timeout="15" setopt_vars="CURLOPT_NOBODY" CURLOPT_NOBODY="TRUE"}
{if curl_result == ""}
<p>Sorry. The site example.com are bunch of poopy heads.</p>
{/if}
{curl_result}
{/exp:curl}
This entry was created October 4, 2010, 11:31 am.
This entry was last updated November 17, 2011, 5:13 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!