CURL_EASY(1e)
NAME
curl_easy - This function is used to request a url.
SYNOPSIS
curl_easy(url:"…",error:true|false,timeout:30,followlocation:true|false)
DESCRIPTION
curl_easy is used to send a request to a url and get the answer back.
PARAMETERS
The parameters are:
- URL
- Mandotary. The url of the request.
- ERROR
- If an error occur, and this parameter is true, than an error will occured.
If this prameter is false, than the return associative array will have the variable error set to true with the variable message set with the error message.
- TIMEOUT
- How much time we wait for the request.
- FOLLOWLOCATION
- If followlocation is true(which is the default) it tells the library to follow any Location: header that the server sends as part of an HTTP header.
RETURN
- error : true or false message : error message if any body : body of the request header : header of the request
EXAMPLES
curl(url:"http://www.sednove.com");
SEE ALSO
AUTHOR
Written by Pierre Laplante, <laplante@sednove.com>
MODIFICATIONS
1.0 2014-09-09 21:24:14 laplante@sednove.com