curl_setopt()
function curl_setopt(CurlHandle $handle, int $option, mixed $value): bool
Sets an option for a cURL transfer.
Parameters:
$handle(CurlHandle)$option(int)$value(mixed)
Returns: bool
Availability
- Compiled (AOT): supported through the compiler-injected curl prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/curl/curl_setopt.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how curl_setopt is implemented in the compiler, see the internals page.