• Home
  • Raw
  • Download

Lines Matching full:url

18 curl_url_set - set a URL part
25 CURLUcode curl_url_set(CURLU *url,
33 The *url* handle to work on, passed in as the first argument, must be a
36 This function sets or updates individual URL components, or parts, held by the
37 URL object the handle identifies.
39 The *part* argument should identify the particular URL part (see list
41 string with the new contents for that URL part. The contents should be in the
42 form and encoding they would use in a URL: URL encoded.
44 When setting part in the URL object that was previously already set, it
57 set. Otherwise, this function returns *CURLUE_UNSUPPORTED_SCHEME* for URL
64 When setting or updating contents of individual URL parts, this API might
66 gets populated as a result of a full URL parse. Beware. If done so, extracting
67 a full URL later on from such components might render an invalid URL.
75 Allows the full URL of the handle to be replaced. If the handle already is
76 populated with a URL, the new URL can be relative to the previous.
78 When successfully setting a new URL, relative or absolute, the handle contents
79 is replaced with the components of the newly set URL.
81 Pass a pointer to a null-terminated string to the *url* parameter. The
82 string must point to a correctly formatted "RFC 3986+" URL or be a NULL
86 the URL.
90 Scheme cannot be URL decoded on set. libcurl only accepts setting schemes up
119 The port number cannot be URL encoded on set. The given port number is
125 If a path is set in the URL without a leading slash, a slash is prepended
130 The query part gets spaces converted to pluses when asked to URL encode on set
136 The question mark in the URL is not part of the actual query contents.
140 The hash sign in the URL is not part of the actual fragment contents.
154 first '=' symbol is not URL encoded.
162 When set, curl_url_set(3) URL encodes the part on entry, except for
163 scheme, port and URL.
165 When setting the path component with URL encoding enabled, the slash character
168 The query part gets space-to-plus conversion before the URL conversion.
170 This URL encoding is charset unaware and converts the input in a byte-by-byte
175 If set, allows the URL to be set without a scheme and then sets that to the
181 If set, allows the URL to be set without a scheme and it instead "guesses"
203 If set, the URL parser allows space (ASCII 32) where possible. The URL syntax
206 When space is used and allowed in a URL, it is stored as-is unless
207 *CURLU_URLENCODE* is also set, which then makes libcurl URL encode the
208 space before stored. This affects how the URL is constructed when
209 curl_url_get(3) is subsequently used to extract the full URL or
214 If set, the URL parser does not accept embedded credentials for the
224 CURLU *url = curl_url();
225 rc = curl_url_set(url, CURLUPART_URL, "https://example.com", 0);
227 /* change it to an FTP URL */
228 rc = curl_url_set(url, CURLUPART_SCHEME, "ftp", 0);
230 curl_url_cleanup(url);
247 If this function returns an error, no URL part is set.