ClientUrl with Option

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
thomas
User
Posts: 131

ClientUrl with Option

Post by thomas »

I want to use ClientUrl function with an option as

$option["CURLOPT_TIMEOUT"] = 5;
$result = ClientUrl($url,"","GET",$option);

Here I got an error as
...\src\phpfn.php(4956): curl_setopt(): Argument #2 ($option) must be of type int, string given


arbei
User
Posts: 8765

Post by arbei »

The error means that you should use the constant CURLOPT_TIMEOUT, not as string "CURLOPT_TIMEOUT".


Post Reply