Home > PHP > Function > cURL > curl_exec()

curl_exec()

curl_exec - Perform a cURL session

Syntax

mixed curl_exec (resource $ch)

Arguments

  • ch - A cURL handle returned by curl_init().

Description

Execute the given cURL session.

Version

PHP 4.0.2, 5

Return value

Returns TRUE on success or FALSE on failure. However, if the CURLOPT_RETURNTRANSFER option is set, it will return the result on success, FALSE on failure.