Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
CURLOPT_URL(3) | Library Functions Manual | 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
NULL. 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
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
curl_easy_perform(curl);
}
}
AVAILABILITY
Added in curl 7.1RETURN VALUE
Returns CURLE_OK on success or CURLE_OUT_OF_MEMORY if there was insufficient heap space.SEE ALSO
CURLINFO_REDIRECT_URL(3), CURLOPT_CURLU(3), CURLOPT_FORBID_REUSE(3), CURLOPT_FRESH_CONNECT(3), CURLOPT_PATH_AS_IS(3), CURLOPT_PROTOCOLS_STR(3), curl_easy_perform(3), curl_url_get(3), curl_url_set(3)2024-11-23 | libcurl |