curl_setopt

PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
curl_setopt - Set an option for a cURL transfer
Manual
Code Examples

Example #1 Initializing a new cURL session and fetching a web page

PHP Version: