Home
last modified time | relevance | path

Searched refs:scheme (Results 1 – 25 of 58) 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
99 for(i = 0; scheme[i].n; ++i) in showtable()
100 num[i] = calc(scheme[i].n, init, shift); in showtable()
101 for(i = 0; scheme[i].n; ++i) in showtable()
119 for(j = 0; scheme[j].n; j++) { in showtable()
122 printf("%s\n", scheme[j].ifdef); in showtable()
154 for(i = 0; scheme[i].n; ++i) { in main()
174 for(i = 0; scheme[i].n; ++i) { in main()
175 printf("%u - %s\n", num[i], scheme[i].n); in main()
181 for(i = 0; scheme[i].n; ++i) { in main()
[all …]
/curl/docs/libcurl/opts/
H A DCURLINFO_SCHEME.md20 CURLINFO_SCHEME - get the URL scheme (sometimes called protocol) used in the connection
27 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SCHEME, char **scheme);
33 string holding the URL scheme used for the most recent connection done with
36 The **scheme** pointer is NULL or points to private memory. You MUST NOT
40 The returned scheme might be upper or lowercase. Do comparisons case
56 char *scheme = NULL;
57 curl_easy_getinfo(curl, CURLINFO_SCHEME, &scheme);
58 if(scheme)
59 printf("scheme: %s\n", scheme); /* scheme: HTTP */
H A DCURLOPT_DEFAULT_PROTOCOL.md19 scheme name
32 This option tells libcurl to use *protocol* if the URL is missing a scheme
35 Use one of these protocol (scheme) names:
41 when libcurl parses a URL without a scheme. Parsing happens when
71 /* set a URL without a scheme */
74 /* set the default protocol (scheme) for schemeless URLs */
H A DCURLOPT_PROXY.md41 The proxy string may be prefixed with [scheme]:// to specify which kind of
52 HTTP Proxy. Default when no scheme or proxy type is specified.
81 Without a scheme prefix, CURLOPT_PROXYTYPE(3) can be used to specify which
93 A proxy host string can also include protocol scheme (http://) and embedded
113 for that URL scheme. For an "FTP://" URL, the **ftp_proxy** is
145 scheme.
/curl/src/
H A Dtool_cb_hdr.c98 const char *scheme = NULL; in tool_header_cb() local
133 scheme = proto_token(scheme); in tool_header_cb()
134 if((scheme == proto_http || scheme == proto_https)) { in tool_header_cb()
284 (scheme == proto_http || scheme == proto_https || in tool_header_cb()
285 scheme == proto_rtsp || scheme == proto_file)) { in tool_header_cb()
483 if(curl_url_get(u, CURLUPART_SCHEME, &scheme, 0)) in write_linked_location()
486 if(!strcmp("http", scheme) || in write_linked_location()
487 !strcmp("https", scheme) || in write_linked_location()
488 !strcmp("ftp", scheme) || in write_linked_location()
489 !strcmp("ftps", scheme)) { in write_linked_location()
[all …]
/curl/docs/libcurl/
H A Dcurl_url.md52 char *scheme;
53 rc = curl_url_get(url, CURLUPART_SCHEME, &scheme, 0);
55 printf("the scheme is %s\n", scheme);
56 curl_free(scheme);
H A Dcurl_url_get.md54 return the default port for the used scheme.
58 If the handle has no scheme stored, this option makes curl_url_get(3)
59 return the default scheme instead of error.
64 default port for the scheme.
69 does not decode the scheme, the port number or the full URL.
139 of a guess makes curl_url_get() return the full URL without the scheme
172 this field independently of scheme when not parsing full URLs.
230 char *scheme;
231 rc = curl_url_get(url, CURLUPART_SCHEME, &scheme, 0);
233 printf("the scheme is %s\n", scheme);
[all …]
H A Dcurl_url_set.md175 If set, allows curl_url_set(3) to set a non-supported scheme. It then of
176 course cannot know if the provided scheme is a valid one or not.
181 **scheme**, **port** and **URL**.
194 If set, allows the URL to be set without a scheme and then sets that to the
195 default scheme: HTTPS. Overrides the *CURLU_GUESS_SCHEME* option if both are
200 If set, allows the URL to be set without a scheme and it instead "guesses"
201 which scheme that was intended based on the hostname. If the outermost
207 a URL without a scheme returns error.
209 If the scheme ends up set as a result of guessing, i.e. it is not actually
219 permits empty authority sections, similar to how file scheme is handled.
[all …]
H A Dcurl_mime_encoder.md36 *encoding* is a pointer to a null-terminated encoding scheme. It may be
38 scheme storage may safely be reused after this function returns.
44 pertaining scheme and a corresponding *"Content-Transfer-Encoding"* header
66 If the original data is already encoded in such a scheme, a custom
H A Dlibcurl-env.md25 ## `[scheme]_proxy`
27 When libcurl is given a URL to use in a transfer, it first extracts the scheme
44 This is a setting to set proxy for all URLs, independently of what scheme is
45 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.c71 char *scheme; member
91 free(u->scheme); in free_urlhandle()
462 if(u->scheme) in parse_hostname_login()
1031 if(!u->scheme) { in parseurl()
1178 if(!u->scheme) { in parseurl()
1391 DUP(u, in, scheme); in curl_url_dup()
1431 ptr = u->scheme; in curl_url_get()
1503 char *scheme; in curl_url_get() local
1514 if(u->scheme && strcasecompare("file", u->scheme)) { in curl_url_get()
1525 if(u->scheme) in curl_url_get()
[all …]
H A Durl.h53 const struct Curl_handler *Curl_get_scheme_handler(const char *scheme);
54 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 Dtest47438 -w urle.scheme after HTTP to HTTPS redirect
41 -k -L http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_redirects} %{url_effective} %{urle.scheme}\n"
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 Durl.md21 If the given URL is missing a scheme (such as `http://` or `ftp://` etc) curl
22 guesses which scheme to use based on the hostname. If the outermost subdomain
25 providing a full URL including the scheme, or disabled by setting a default
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 Ddigest.md21 Enables HTTP Digest authentication. This authentication scheme avoids sending
/curl/tests/unit/
H A Dunit2603.c45 const char *scheme; member
109 check_eq(p.req->scheme, t->scheme, "scheme"); in parse_success()

Completed in 28 milliseconds

123