/curl/docs/libcurl/opts/ |
H A D | CURLINFO_PRIMARY_PORT.md | 18 CURLINFO_PRIMARY_PORT - get the latest destination port number 30 Pass a pointer to a long to receive the destination port of the most recent 33 This is the destination port of the actual TCP or UDP connection libcurl used. 34 If a proxy was used for the most recent transfer, this is the port number of 35 the proxy, if no proxy was used it is the port number of the most recently 49 long port; 50 res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_PORT, &port); 52 printf("Connected to remote port: %ld\n", port);
|
H A D | CURLOPT_PORT.md | 17 CURLOPT_PORT - remote port number to connect to 30 predict. Set the preferred port number in the URL instead. 32 This option sets *number* to be the remote port number to connect to, 33 instead of the one specified in the URL or the default port for the used 36 Usually, you just let the URL decide which port to use but this allows the 39 While this option accepts a 'long', a port number is an unsigned 16 bit number 40 and therefore using a port number lower than zero or over 65535 causes a 45 By default this is 0 which makes it not used. This also makes port number zero
|
H A D | CURLINFO_LOCAL_PORT.md | 18 CURLINFO_LOCAL_PORT - get the latest local port number 30 Pass a pointer to a long to receive the local port number of the most recent 47 long port; 48 res = curl_easy_getinfo(curl, CURLINFO_LOCAL_PORT, &port); 51 printf("We used local port: %ld\n", port);
|
H A D | CURLOPT_CONNECT_TO.md | 18 CURLOPT_CONNECT_TO - connect to another host and port instead 40 connect to, and CONNECT-TO-PORT is the port to connect to. 42 The first string that matches the request's host and port is used. 48 or port always match (the request's host or port is ignored). When 50 disabled for the host or port, and the request's host or port are used to 56 The "connect to" host and port are only used to establish the network 57 connection. They do NOT affect the host and port that are used for TLS/SSL 65 the port in the request URL, because connecting to the host and the port in 69 port, and the "connect to" host or port differs from the request's host and 70 port, the HTTP proxy is automatically switched to tunnel mode for this [all …]
|
H A D | CURLOPT_PROXYPORT.md | 18 CURLOPT_PROXYPORT - port number the proxy listens on 25 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPORT, long port); 32 Pass a long with this option to set the proxy port to connect to unless it is 36 While this accepts a 'long', the port number is 16 bit so it cannot be larger 41 0, not specified which makes it use the default port
|
/curl/docs/cmdline-opts/ |
H A D | local-port.md | 4 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 D | proxy1.0.md | 5 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 D | ftp-port.md | 4 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.
|
/curl/tests/ |
H A D | servers.pm | 1182 my $port = 0; 1818 push @tports, $port; 1896 my $port = protoport($proto); 2231 my $port; 2255 my $port = protoport($proto); 2263 $port = protoport('rtsp6'); 2277 my $port = protoport($proto); 2301 my $port = protoport($proto); 2621 my $port; 2633 my $port; [all …]
|
/curl/tests/data/ |
H A D | test435 | 26 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 D | test2085 | 49 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 D | test2083 | 35 s/^Local port = \d+/Local port = stripped/ 40 Remote port = %FTPPORT 41 Local port = stripped
|
H A D | test2082 | 41 s/^Local port = \d+/Local port = stripped/ 46 Remote port = %HTTPPORT 47 Local port = stripped
|
H A D | test2086 | 42 s/^Local port = \d+/Local port = stripped/ 47 Remote port = %HTTP6PORT 48 Local port = stripped
|
H A D | test2084 | 44 s/^Local port = \d+/Local port = stripped/ 49 Remote port = %HTTPPORT 50 Local port = stripped
|
H A D | test1009 | 6 --local-port 28 TFTP retrieve with --local-port 31 tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER --local-port 44444-45444
|
/curl/lib/ |
H A D | hostip6.c | 100 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 D | hostip4.c | 91 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 140 if(port) { in Curl_ipv4_resolve_r() 141 msnprintf(sbuf, sizeof(sbuf), "%d", port); in Curl_ipv4_resolve_r() 292 ai = Curl_he2ai(h, port); in Curl_ipv4_resolve_r()
|
H A D | curl_addrinfo.h | 75 Curl_he2ai(const struct hostent *he, int port); 78 Curl_ip2addr(int af, const void *inaddr, const char *hostname, int port); 80 struct Curl_addrinfo *Curl_str2addr(char *dotted, int port); 102 void Curl_addrinfo_set_port(struct Curl_addrinfo *addrinfo, int port);
|
H A D | hostip.h | 128 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 D | hostip.c | 357 int port) in Curl_fetch_addr() argument 364 dns = fetch_addr(data, hostname, port); in Curl_fetch_addr() 471 int port) in Curl_cache_addr() argument 504 dns->hostport = port; in Curl_cache_addr() 591 ca6 = get_localhost6(port, name); in get_localhost() 681 int port, in Curl_resolv() argument 707 dns = fetch_addr(data, hostname, port); in Curl_resolv() 1170 int port = 0; in Curl_loadhostpairs() local 1192 port = (int)tmp_port; in Curl_loadhostpairs() 1233 ai = Curl_str2addr(address, port); in Curl_loadhostpairs() [all …]
|
/curl/lib/vauth/ |
H A D | oauth2.c | 62 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 D | unit1609.c | 52 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 D | unit1607.c | 52 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 D | ws_echo_server.py | 44 async def run_server(port): argument 45 async with server.serve(echo, "localhost", port): 62 asyncio.run(run_server(args.port))
|