1 # namespace http\Client\Curl
3 The http\Client\Curl namespace holds option value constants specific to the curl driver of the http\Client.
9 2.1.0 | Added $dns_interface, $dns_local_ip4, $dns_local_ip6 options.
13 ### HTTP Protocol Version
16 Use HTTP/1.0 protocol version.
18 Use HTTP/1.1 protocol version.
20 Use any HTTP protocol version.
22 ### SSL Protocol Version
42 ### Authentication Type
45 Use Basic authentication.
47 Use Digest authentication.
49 Use IE (lower v7) quirks with Digest authentication. Available if libcurl is v7.19.3 or more recent.
51 Use NTLM authentication.
53 Use GSS-Negotiate authentication.
55 Use any authentication.
57 ### Proxy Protocol Version
60 Use SOCKSv4 proxy protocol.
62 Use SOCKSv4a proxy protocol.
63 * PROXY_SOCKS5_HOSTNAME
64 Use SOCKS5h proxy protocol.
66 Use SOCKS5 proxy protoccol.
68 Use HTTP/1.1 proxy protocol.
70 Use HTTP/1.0 proxy protocol. Available if libcurl is v7.19.4 or more recent.
72 ### POST Redirection Behavior
75 Keep POSTing on 301 redirects. Available if libcurl is v7.19.1 or more recent.
77 Keep POSTing on 302 redirects. Available if libcurl is v7.19.1 or more recent.
79 Keep POSTing on any redirect. Available if libcurl is v7.19.1 or more recent.
84 The option names used here are more or less derived from the corresponding CURLOPT_* names.
88 The HTTP protocol version. See http\Client\Curl::HTTP_VERSION_* constants.
93 The hostname of the proxy.
95 See http\Client\Curl::PROXY_* constants.
97 The port number of the proxy.
101 See http\Client\Curl::AUTH_* constants.
103 Tunnel all operations through the proxy.
105 Comma separated list of hosts where no proxy should be used. Available if libcurl is v7.19.4 or more recent.
109 * int $dns_cache_timeout
110 Resolved hosts will be kept fot this number of seconds.
112 See http\Client\Curl::IPRESOLVE_* constants.
114 A list of HOST:PORT:ADDRESS mappings which pre-populate the DNS cache. Available if libcurl is v7.21.3 or more recent.
115 * string $dns_servers
116 Comma separated list of custom DNS servers of the form HOST[:PORT]. Available if libcurl is v7.24.0 or more recent and has built-in c-ares support.
117 * string $dns_interface
118 The name of the network interface ***name*** that the DNS resolver should bind to. Available if libcurl is v7.33.0 or more recent and has built-in c-ares support.
119 * string $dns_local_ip4
120 The local IPv4 ***address*** that the resolver should bind to. Available if libcurl is v7.33.0 or more recent and has built-in c-ares support.
121 * string $dns_local_ip6
122 The local IPv6 ***address*** that the resolver should bind to. Available if libcurl is v7.33.0 or more recent and has built-in c-ares support.
126 * int $low_speed_limit
127 Minimum speed in bytes per second.
128 * int $low_speed_time
129 Maximum time in seconds the transfer can be below $low_speed_limit before cancelling.
131 Maximum download size.
133 ### Connection handling
135 * bool $fresh_connect
136 Force a new connection.
138 Force closing the connection.
143 Outgoing interface name.
145 A tuple of min/max ports.
147 Override the URL's port.
149 RFC4007 zone_id. Available if libcurl is v7.19.0 or more recent.
150 * bool $tcp_keepalive
151 Whether to use TCP keepalive. Available if libcurl is v7.25.0 or more recent.
153 Seconds to wait before sending keepalive probes. Available if libcurl is v7.25.0 or more recent.
155 Interval in seconds to wait between sending keepalive probes. Available if libcurl is v7.25.0 or more recent.
162 See http\Client\Curl::AUTH_* constants.
167 How many redirects to follow.
168 * bool $unrestricted_auth
169 Whether to keep sending authentication credentials on redirects to different hosts.
171 See http\Client\Curl::POSTREDIR_* constants. Available if libcurl is v7.19.1 or more recent.
178 Pause this number of seconds between retries.
183 Custom Referer header.
185 Whether to automatically send referers.
187 Custom User-Agent header.
191 Whether to request compressed content (through Accept-Encoding).
193 Custom If-(Un)Modified since time. If less than zero, the current time will be added.
198 Resume from this byte offset.
200 Fetch specific ranges (if server supports byte ranges).
204 * bool $encodecookies
205 Whether to URLencode cookies.
207 List of custom cookies in the form ["name" => "value"].
208 * bool $cookiesession
209 Ignore previous session cookies to be loaded from $cookiestore.
210 * string $cookiestore
211 Path to a Netscape cookie file, from which cookies will be loaded resp. to which cookies will be written.
216 Seconds the complete transfer may take.
217 * float $connecttimeout
218 Seconds the connect may take.
223 Subarray of SSL related options:
225 SSL certificate file.
227 Certificate type (DER, PEM). (Secure Transport additionally supports P12).
231 PK type (PEM, DER, ENG).
233 The password for the private key.
235 Crypto engine to use for the private key.
237 See http\Client\Curl::SSL_VERSION_* constants.
239 Whether to apply peer verification.
241 Whether to apply host verification.
242 * string $cipher_list
243 One or more cipher strings separated by colons.
245 CA bundle to verify the peer with.
247 Directory with prepared CA certs to verify the peer with.
248 * string $random_file
249 A file used to read from to seed the random engine.
251 A Entropy Gathering Daemon socket.
253 CA PEM cert for peer verification. Available if libcurl is v7.19.0 or more recent.
255 File with the concatenation of CRL in PEM format. Available if libcurl was built with OpenSSL support.
257 Enable gathering of SSL certificate chain information. Available if libcurl is v7.19.1 or more recent.