Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
CURLOPT_URL(3) | libcurl | CURLOPT_URL(3) |
NAME
CURLOPT_URL - URL for this transferDESCRIPTION
Pass in a pointer to the URL to work with. The parameter should be a char * to a null-terminated string which must be URL-encoded in the following format:ENCODING
The string pointed to in the CURLOPT_URL(3) argument is generally expected to be a sequence of characters using an ASCII compatible encoding.DEFAULT
There is no default URL. If this option is not set, no transfer can be performed.SECURITY CONCERNS
Applications may at times find it convenient to allow users to specify URLs for various purposes and that string would then end up fed to this option.PROTOCOLS
AllEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_perform(curl);
}
}
AVAILABILITY
POP3 and SMTP were added in 7.31.0RETURN VALUE
Returns CURLE_OK on success or CURLE_OUT_OF_MEMORY if there was insufficient heap space.SEE ALSO
curl_easy_perform(3), curl_url_get(3), curl_url_set(3), CURLINFO_REDIRECT_URL(3), CURLOPT_CURLU(3), CURLOPT_FORBID_REUSE(3), CURLOPT_FRESH_CONNECT(3), CURLOPT_PATH_AS_IS(3), CURLOPT_PROTOCOLS(3)December 4, 2023 | ibcurl 8.5.0 |