Home
last modified time | relevance | path

Searched refs:scheme (Results 1 – 25 of 53) sorted by relevance

123

/curl/tests/libtest/
H A Dlib1536.c33 char *scheme; in test() local
43 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
49 if(scheme) { in test()
68 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
74 if(!scheme || memcmp(scheme, "http", 5) != 0) { in test()
78 (scheme == NULL ? "NULL" : "invalid")); in test()
94 res = curl_easy_getinfo(dupe, CURLINFO_SCHEME, &scheme); in test()
100 if(scheme) { in test()
113 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme); in test()
119 if(scheme) { in test()
/curl/scripts/
H A Dschemetable.c37 static const struct detail scheme[] = { variable
98 for(i = 0; scheme[i].n; ++i) in showtable()
99 num[i] = calc(scheme[i].n, init, shift); in showtable()
100 for(i = 0; scheme[i].n; ++i) in showtable()
118 for(j=0; scheme[j].n; j++) { in showtable()
121 printf("%s\n", scheme[j].ifdef); in showtable()
153 for(i = 0; scheme[i].n; ++i) { in main()
173 for(i = 0; scheme[i].n; ++i) { in main()
174 printf("%u - %s\n", num[i], scheme[i].n); in main()
180 for(i = 0; scheme[i].n; ++i) { in main()
[all …]
/curl/docs/libcurl/opts/
H A DCURLINFO_SCHEME.md19 CURLINFO_SCHEME - get the URL scheme (sometimes called protocol) used in the connection
26 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SCHEME, char **scheme);
32 string holding the URL scheme used for the most recent connection done with
35 The **scheme** pointer is NULL or points to private memory. You MUST NOT
39 The returned scheme might be upper or lowercase. Do comparisons case
53 char *scheme = NULL;
54 curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme);
55 if(scheme)
56 printf("scheme: %s\n", scheme); /* scheme: HTTP */
H A DCURLOPT_DEFAULT_PROTOCOL.md18 scheme name
31 This option tells libcurl to use *protocol* if the URL is missing a scheme
34 Use one of these protocol (scheme) names:
41 scheme. Parsing happens when curl_easy_perform(3) or
65 /* set a URL without a scheme */
68 /* set the default protocol (scheme) for schemeless URLs */
H A DCURLOPT_PROXY.md40 The proxy string may be prefixed with [scheme]:// to specify which kind of
45 HTTP Proxy. Default when no scheme or proxy type is specified.
72 Without a scheme prefix, CURLOPT_PROXYTYPE(3) can be used to specify
85 A proxy host string can also include protocol scheme (http://) and embedded
101 for that URL scheme. For an "FTP://" URL, the **ftp_proxy** is
134 scheme.
/curl/src/
H A Dtool_cb_hdr.c81 const char *scheme = NULL; in tool_header_cb() local
112 scheme = proto_token(scheme); in tool_header_cb()
113 if((scheme == proto_http || scheme == proto_https)) { in tool_header_cb()
235 (scheme == proto_http || scheme == proto_https || in tool_header_cb()
236 scheme == proto_rtsp || scheme == proto_file)) { in tool_header_cb()
434 if(curl_url_get(u, CURLUPART_SCHEME, &scheme, 0)) in write_linked_location()
437 if(!strcmp("http", scheme) || in write_linked_location()
438 !strcmp("https", scheme) || in write_linked_location()
439 !strcmp("ftp", scheme) || in write_linked_location()
440 !strcmp("ftps", scheme)) { in write_linked_location()
[all …]
/curl/docs/libcurl/
H A Dcurl_url.md49 char *scheme;
50 rc = curl_url_get(url, CURLUPART_SCHEME, &scheme, 0);
52 printf("the scheme is %s\n", scheme);
53 curl_free(scheme);
H A Dcurl_url_get.md53 return the default port for the used scheme.
57 If the handle has no scheme stored, this option makes curl_url_get(3)
58 return the default scheme instead of error.
63 default port for the scheme.
68 does not decode the scheme, the port number or the full URL.
155 this field independently of scheme when not parsing full URLs.
211 char *scheme;
212 rc = curl_url_get(url, CURLUPART_SCHEME, &scheme, 0);
214 printf("the scheme is %s\n", scheme);
215 curl_free(scheme);
H A Dcurl_mime_encoder.md35 *encoding* is a pointer to a null-terminated encoding scheme. It may be
37 scheme storage may safely be reused after this function returns.
43 pertaining scheme and a corresponding *"Content-Transfer-Encoding"* header
65 If the original data is already encoded in such a scheme, a custom
H A Dcurl_url_set.md170 If set, allows curl_url_set(3) to set a non-supported scheme.
175 **scheme**, **port** and **URL**.
188 If set, allows the URL to be set without a scheme and then sets that to the
189 default scheme: HTTPS. Overrides the *CURLU_GUESS_SCHEME* option if both
194 If set, allows the URL to be set without a scheme and it instead "guesses"
195 which scheme that was intended based on the hostname. If the outermost
196 subdomain name matches DICT, FTP, IMAP, LDAP, POP3 or SMTP then that scheme is
205 permits empty authority sections, similar to how file scheme is handled.
218 or '+'. When spaces are allowed, they are still not allowed in the scheme.
H A Dlibcurl-env.md24 ## `[scheme]_proxy`
26 When libcurl is given a URL to use in a transfer, it first extracts the scheme
43 This is a setting to set proxy for all URLs, independently of what scheme is
44 being used. Note that the scheme specific variables overrides this one if set.
/curl/lib/
H A Dhttp1.c139 const char *p, *m, *target, *hv, *scheme, *authority, *path; in start_req() local
186 scheme = authority = path = NULL; in start_req()
248 if(!scheme && scheme_default) { in start_req()
249 scheme = scheme_default; in start_req()
252 result = Curl_http_req_make(&parser->req, m, m_len, scheme, scheme_len, in start_req()
328 req->scheme? req->scheme : "", in Curl_h1_req_write_head()
329 req->scheme? "://" : "", in Curl_h1_req_write_head()
H A Durlapi.c72 char *scheme; member
91 free(u->scheme); in free_urlhandle()
462 if(u->scheme) in parse_hostname_login()
1038 if(!u->scheme) { in parseurl()
1185 if(!u->scheme) { in parseurl()
1397 DUP(u, in, scheme); in curl_url_dup()
1437 ptr = u->scheme; in curl_url_get()
1507 char *scheme; in curl_url_get() local
1518 if(u->scheme && strcasecompare("file", u->scheme)) { in curl_url_get()
1528 if(u->scheme) in curl_url_get()
[all …]
H A Durl.h52 const struct Curl_handler *Curl_get_scheme_handler(const char *scheme);
53 const struct Curl_handler *Curl_getn_scheme_handler(const char *scheme,
/curl/tests/data/
H A Dtest124641 …p://test.remote.haxx.se.%TESTNUMBER:%HTTPPORT#@127.0.0.1/tricked.html no-scheme-url.com.%TESTNUMBE…
58 GET http://no-scheme-url.com.%TESTNUMBER:%HTTPPORT/ HTTP/1.1
59 Host: no-scheme-url.com.%TESTNUMBER:%HTTPPORT
H A Dtest143830 Check if %{scheme} returns HTTP
33 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{scheme}'
H A Dtest97062scheme":"http","size_download":445,"size_header":4019,"size_request":4019,"size_upload":0,"speed_d…
H A Dtest97263scheme":"http","size_download":445,"size_header":4019,"size_request":4019,"size_upload":0,"speed_d…
H A Dtest21924 try using proxy with unsupported scheme
H A Dtest155940 CURLUPART_SCHEME 10000000 bytes scheme == 3 (Malformed input to a URL function)
/curl/docs/cmdline-opts/
H A Dproto-default.md5 Help: Use PROTOCOL for any URL missing a scheme
19 Use *protocol* for any provided URL missing a scheme.
H A Durl.md21 If the given URL is missing a scheme name (such as `http://` or `ftp://` etc)
25 including the scheme, or disabled by setting a default protocol (added in
H A Dwrite-out.md165 ## `scheme`
166 The URL scheme (sometimes called protocol) that was effectively used. (Added in 7.52.0)
237 ## `url.scheme`
238 The scheme part of the URL that was fetched. (Added in 8.1.0)
254 and the URL scheme is known, that scheme's default port number is
269 ## `urle.scheme`
270 The scheme part of the effective (last) URL that was fetched. (Added in 8.1.0)
286 number was specified, but the URL scheme is known, that scheme's default port
H A Ddigest.md21 Enables HTTP Digest authentication. This authentication scheme avoids sending
/curl/tests/unit/
H A Dunit2603.c44 const char *scheme; member
108 check_eq(p.req->scheme, t->scheme, "scheme"); in parse_success()

Completed in 46 milliseconds

123