curl_getinfo()
function curl_getinfo(CurlHandle $handle, ?int $option = null): mixed
Gets information about the last transfer.
Parameters:
$handle(CurlHandle)$option(?int), defaultnull, optional
Returns: mixed
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_getinfo.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how curl_getinfo is implemented in the compiler, see the internals page.