← All docs

curl_setopt()

Sets an option for a cURL transfer.

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

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how curl_setopt is implemented in the compiler, see the internals page.