HEX
Server: Apache
System: Linux server.enlacediseno.com 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
User: maor (1069)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/doc/python3-pycurl/doc/docstrings/curl_unsetopt.rst
unsetopt(option) -> None

Reset curl session option to its default value.

Only some curl options may be reset via this method.

libcurl does not provide a general way to reset a single option to its default value;
:py:meth:`pycurl.Curl.reset` resets all options to their default values,
otherwise :py:meth:`pycurl.Curl.setopt` must be called with whatever value
is the default. For convenience, PycURL provides this unsetopt method
to reset some of the options to their default values.

Raises pycurl.error exception on failure.

``c.unsetopt(option)`` is equivalent to ``c.setopt(option, None)``.