Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 182) sorted by relevance

12345678

/curl/docs/libcurl/opts/
H A DCURLINFO_LOCAL_PORT.md20 CURLINFO_LOCAL_PORT - get the latest local port number
32 Pass a pointer to a long to receive the local port number of the most recent
35 If the connection was done using QUIC, the port number is a UDP port number,
36 otherwise it is a TCP port number.
54 long port;
55 res = curl_easy_getinfo(curl, CURLINFO_LOCAL_PORT, &port);
58 printf("We used local port: %ld\n", port);
H A DCURLINFO_PRIMARY_PORT.md19 CURLINFO_PRIMARY_PORT - get the latest destination port number
31 Pass a pointer to a long to receive the destination port of the most recent
34 This is the destination port of the actual TCP or UDP connection libcurl used.
35 If a proxy was used for the most recent transfer, this is the port number of
36 the proxy, if no proxy was used it is the port number of the most recently
52 long port;
53 res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_PORT, &port);
55 printf("Connected to remote port: %ld\n", port);
H A DCURLOPT_PORT.md18 CURLOPT_PORT - remote port number to connect to
31 predict. Set the preferred port number in the URL instead.
33 This option sets *number* to be the remote port number to connect to,
34 instead of the one specified in the URL or the default port for the used
37 Usually, you just let the URL decide which port to use but this allows the
40 While this option accepts a 'long', a port number is an unsigned 16 bit number
41 and therefore using a port number lower than zero or over 65535 causes a
46 0 which makes it not used. This also makes port number zero impossible to set
H A DCURLOPT_CONNECT_TO.md19 CURLOPT_CONNECT_TO - connect to another host and port instead
41 connect to, and CONNECT-TO-PORT is the port to connect to.
43 The first string that matches the request's host and port is used.
49 or port always match (the request's host or port is ignored). When
51 disabled for the host or port, and the request's host or port are used to
57 The "connect to" host and port are only used to establish the network
58 connection. They do NOT affect the host and port that are used for TLS/SSL
66 the port in the request URL, because connecting to the host and the port in
70 port, and the "connect to" host or port differs from the request's host and
71 port, the HTTP proxy is automatically switched to tunnel mode for this
[all …]
H A DCURLOPT_PROXYPORT.md19 CURLOPT_PROXYPORT - port number the proxy listens on
26 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPORT, long port);
33 Pass a long with this option to set the proxy port to connect to unless it is
38 libcurl use the default proxy port number or the port number specified in the
41 While this accepts a 'long', the port number is 16 bit so it cannot be larger
/curl/docs/cmdline-opts/
H A Dlocal-port.md4 Long: local-port
6 Help: Use a local port number within RANGE
13 - --local-port 1000-3000 $URL
16 # `--local-port`
18 Set a preferred single number or range (FROM-TO) of local port numbers to use
19 for the connection(s). Note that port numbers by nature are a scarce resource
H A Dproxy1.0.md5 Arg: <host[:port]>
6 Help: Use HTTP/1.0 proxy on given port
20 Use the specified HTTP 1.0 proxy. If the port number is not specified, it is
21 assumed at port 1080.
H A Dftp-port.md4 Long: ftp-port
21 # `--ftp-port`
25 back to the client's specified address and port, while passive mode asks the
26 server to setup an IP address and port for it to connect to. \<address\>
48 curl what TCP port range to use. That means you specify a port range, from a
50 increases the risk of failure since the port may not be available.
H A Dresolve.md5 Arg: <[+]host:port:addr[,addr]...>
6 Help: Resolve host+port to address
19 Provide a custom address for a specific host and port pair. Using this, you
22 /etc/hosts alternative provided on the command line. The port number should be
28 port pair to the specified address. Wildcard is resolved last so any --resolve
29 with a specific host and port is used first.
41 of port number, consider the --connect-to option.
/curl/tests/data/
H A Dtest43526 verify -w local/remote port+ip after connection reuse
29 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w 'local port == %{local…
49 # replace the number with a fixed string since the port number is not
52 s/local port == (\d+)/local port == [digits]/
58 local port == [digits]
65 local port == [digits]
H A Dtest208549 s/^Local port = \d+/Local port = stripped/
54 Remote port = %HTTPPORT
55 Local port = stripped
59 Remote port = %HTTPPORT
60 Local port = stripped
H A Dtest208335 s/^Local port = \d+/Local port = stripped/
40 Remote port = %FTPPORT
41 Local port = stripped
H A Dtest208241 s/^Local port = \d+/Local port = stripped/
46 Remote port = %HTTPPORT
47 Local port = stripped
H A Dtest208444 s/^Local port = \d+/Local port = stripped/
49 Remote port = %HTTPPORT
50 Local port = stripped
H A Dtest208642 s/^Local port = \d+/Local port = stripped/
47 Remote port = %HTTP6PORT
48 Local port = stripped
/curl/lib/
H A Dhostip6.c100 int port, in Curl_getaddrinfo() argument
136 if(port) { in Curl_getaddrinfo()
137 msnprintf(sbuf, sizeof(sbuf), "%d", port); in Curl_getaddrinfo()
143 infof(data, "getaddrinfo(3) failed for %s:%d", hostname, port); in Curl_getaddrinfo()
147 if(port) { in Curl_getaddrinfo()
148 Curl_addrinfo_set_port(res, port); in Curl_getaddrinfo()
H A Dhostip4.c91 int port, in Curl_getaddrinfo() argument
102 ai = Curl_ipv4_resolve_r(hostname, port); in Curl_getaddrinfo()
122 int port) in Curl_ipv4_resolve_r() argument
142 if(port) { in Curl_ipv4_resolve_r()
143 msnprintf(sbuf, sizeof(sbuf), "%d", port); in Curl_ipv4_resolve_r()
295 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r()
H A Dcurl_addrinfo.h76 Curl_he2ai(const struct hostent *he, int port);
80 Curl_ip2addr(int af, const void *inaddr, const char *hostname, int port);
82 struct Curl_addrinfo *Curl_str2addr(char *dotted, int port);
104 void Curl_addrinfo_set_port(struct Curl_addrinfo *addrinfo, int port);
H A Dhostip.h128 int port,
132 const char *hostname, int port,
160 int port,
175 struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, int port);
208 int port);
217 const char *hostname, size_t hostlen, int port,
H A Dhostip.c358 int port) in Curl_fetch_addr() argument
365 dns = fetch_addr(data, hostname, port); in Curl_fetch_addr()
472 int port, in Curl_cache_addr() argument
510 dns->hostport = port; in Curl_cache_addr()
597 ca6 = get_localhost6(port, name); in get_localhost()
687 int port, in Curl_resolv() argument
713 dns = fetch_addr(data, hostname, port); in Curl_resolv()
1178 int port = 0; in Curl_loadhostpairs() local
1200 port = (int)tmp_port; in Curl_loadhostpairs()
1241 ai = Curl_str2addr(address, port); in Curl_loadhostpairs()
[all …]
/curl/tests/
H A Dservers.pm1224 my $port = 0;
1860 push @tports, $port;
1938 my $port = protoport($proto);
2285 my $port;
2309 my $port = protoport($proto);
2317 $port = protoport('rtsp6');
2331 my $port = protoport($proto);
2355 my $port = protoport($proto);
2750 my $port;
2762 my $port;
[all …]
/curl/lib/vauth/
H A Doauth2.c62 const long port, in Curl_auth_create_oauth_bearer_message() argument
69 if(port == 0 || port == 80) in Curl_auth_create_oauth_bearer_message()
74 host, port, bearer); in Curl_auth_create_oauth_bearer_message()
/curl/tests/unit/
H A Dunit1609.c52 int port; member
141 entry_id = (void *)aprintf("%s:%d", tests[i].host, tests[i].port);
152 int port = 0; variable
159 ipaddress, &port)) {
190 if(port != tests[i].port) {
193 __FILE__, __LINE__, i, i, j, port, i, tests[i].port);
H A Dunit1607.c52 int port; member
140 entry_id = (void *)aprintf("%s:%d", tests[i].host, tests[i].port);
150 int port = 0; variable
160 ipaddress, &port)) {
191 if(port != tests[i].port) {
194 __FILE__, __LINE__, i, i, j, port, i, tests[i].port);
/curl/tests/http/testenv/
H A Dws_echo_server.py43 async def run_server(port): argument
44 async with server.serve(echo, "localhost", port):
61 asyncio.run(run_server(args.port))

Completed in 33 milliseconds

12345678