/usr/share/doc/python3-pycurl/doc/docstrings
NameSizeModeActions
curl.rst3770644editdlrm
curl_close.rst3190644editdlrm
curl_errstr.rst4650644editdlrm
curl_errstr_raw.rst4440644editdlrm
curl_getinfo.rst32490644editdlrm
curl_getinfo_raw.rst30770644editdlrm
curl_pause.rst3980644editdlrm
curl_perform.rst2200644editdlrm
curl_perform_rb.rst6990644editdlrm
curl_perform_rs.rst10910644editdlrm
curl_reset.rst2760644editdlrm
curl_setopt.rst45910644editdlrm
curl_setopt_string.rst12360644editdlrm
curl_set_ca_certs.rst1440644editdlrm
curl_unsetopt.rst5990644editdlrm
multi.rst1260644editdlrm
multi_add_handle.rst5220644editdlrm
multi_assign.rst2670644editdlrm
multi_close.rst2910644editdlrm
multi_fdset.rst9000644editdlrm
multi_info_read.rst6950644editdlrm
multi_perform.rst2010644editdlrm
multi_remove_handle.rst4350644editdlrm
multi_select.rst7340644editdlrm
multi_setopt.rst14380644editdlrm
multi_socket_action.rst2930644editdlrm
multi_socket_all.rst1230644editdlrm
multi_timeout.rst2020644editdlrm
pycurl_global_cleanup.rst1850644editdlrm
pycurl_global_init.rst3210644editdlrm
pycurl_module.rst4140644editdlrm
pycurl_version_info.rst6560644editdlrm
share.rst2340644editdlrm
share_close.rst3130644editdlrm
share_setopt.rst7650644editdlrm
Edit: /usr/share/doc/python3-pycurl/doc/docstrings/curl_setopt_string.rst (1236B)
setopt_string(option, value) -> None Set curl session option to a string value. This method allows setting string options that are not officially supported by PycURL, for example because they did not exist when the version of PycURL being used was released. :py:meth:`pycurl.Curl.setopt` should be used for setting options that PycURL knows about. **Warning:** No checking is performed that *option* does, in fact, expect a string value. Using this method incorrectly can crash the program and may lead to a security vulnerability. Furthermore, it is on the application to ensure that the *value* object does not get garbage collected while libcurl is using it. libcurl copies most string options but not all; one option whose value is not copied by libcurl is `CURLOPT_POSTFIELDS`_. *option* would generally need to be given as an integer literal rather than a symbolic constant. *value* can be a binary string or a Unicode string using ASCII code points, same as with string options given to PycURL elsewhere. Example setting URL via ``setopt_string``:: import pycurl c = pycurl.Curl() c.setopt_string(10002, "http://www.python.org/") .. _CURLOPT_POSTFIELDS: https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html