Skip to content

Commit 5bfb634

Browse files
committed
chore: update curl.haxx.se URLs to curl.se and use all encodings
- Update all documentation URLs from curl.haxx.se to curl.se - Change CURLOPT_ACCEPT_ENCODING from "gzip,deflate" to "" to accept all built-in encodings (includes zstd, brotli when available)
1 parent 83ac708 commit 5bfb634

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -79,33 +79,33 @@ katipo:Method(Pool :: atom(), URL :: binary(), ReqOptions :: map()).
7979
| `headers` | `[{binary(), iodata()}]` | `[]` | |
8080
| `cookiejar` | opaque (returned in response) | `[]` | |
8181
| `body` | `iodata()` | `<<>>` | |
82-
| `connecttimeout_ms` | `pos_integer()` | 30000 | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html) |
83-
| `followlocation` | `boolean()` | `false` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html) |
84-
| `ssl_verifyhost` | `boolean()` | `true` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html) |
85-
| `ssl_verifypeer` | `boolean()` | `true` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html) |
86-
| `capath` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_CAPATH.html) |
87-
| `cacert` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html) |
88-
| `ca_cache_timeout` | `integer()` | 86400 | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html) curl >= 7.87.0 (0=disable, -1=forever) |
89-
| `timeout_ms` | `pos_integer()` | 30000 | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html) |
90-
| `dns_cache_timeout` | `integer()` | 60 | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html) (0=disable, -1=forever) |
91-
| `maxredirs` | `non_neg_integer()` | 9 | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_MAXREDIRS.html) |
92-
| `proxy` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html) |
93-
| `tcp_fastopen` | `boolean()` | `false` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html) curl >= 7.49.0 |
94-
| `pipewait` | `boolean()` | `true` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_PIPEWAIT.html) curl >= 7.43.0 |
95-
| `interface` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html) |
96-
| `unix_socket_path` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html) curl >= 7.40.0 |
97-
| `doh_url` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_URL.html) curl >= 7.62.0 |
98-
| `http_version` | `curl_http_version_none` <br> `curl_http_version_1_0` <br> `curl_http_version_1_1` <br> `curl_http_version_2_0` <br> `curl_http_version_2tls` <br> `curl_http_version_2_prior_knowledge` <br> `curl_http_version_3` | `curl_http_version_none` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html) HTTP/3 requires curl >= 7.66.0 |
99-
| `sslversion` | `sslversion_default` <br> `sslversion_tlsv1` <br> `sslversion_tlsv1_0` <br> `sslversion_tlsv1_1` <br> `sslversion_tlsv1_2` <br> `sslversion_tlsv1_3` | `sslversion_default` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html) |
100-
| `sslcert` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html) |
101-
| `sslkey` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html) |
102-
| `sslkey_blob` | `binary()` (DER format) | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html) curl >= 7.71.0 |
103-
| `keypasswd` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_KEYPASSWD.html) |
104-
| `http_auth` | `basic` <br> `digest` <br> `ntlm` <br> `negotiate` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html) |
105-
| `username` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_USERNAME.html) |
106-
| `password` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html) |
107-
| `userpwd` | `binary()` | `undefined` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_USERPWD.html) |
108-
| `verbose` | `boolean()` | `false` | [docs](https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html) |
82+
| `connecttimeout_ms` | `pos_integer()` | 30000 | [docs](https://curl.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html) |
83+
| `followlocation` | `boolean()` | `false` | [docs](https://curl.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html) |
84+
| `ssl_verifyhost` | `boolean()` | `true` | [docs](https://curl.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html) |
85+
| `ssl_verifypeer` | `boolean()` | `true` | [docs](https://curl.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html) |
86+
| `capath` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_CAPATH.html) |
87+
| `cacert` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_CAINFO.html) |
88+
| `ca_cache_timeout` | `integer()` | 86400 | [docs](https://curl.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html) curl >= 7.87.0 (0=disable, -1=forever) |
89+
| `timeout_ms` | `pos_integer()` | 30000 | [docs](https://curl.se/libcurl/c/CURLOPT_TIMEOUT_MS.html) |
90+
| `dns_cache_timeout` | `integer()` | 60 | [docs](https://curl.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html) (0=disable, -1=forever) |
91+
| `maxredirs` | `non_neg_integer()` | 9 | [docs](https://curl.se/libcurl/c/CURLOPT_MAXREDIRS.html) |
92+
| `proxy` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_PROXY.html) |
93+
| `tcp_fastopen` | `boolean()` | `false` | [docs](https://curl.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html) curl >= 7.49.0 |
94+
| `pipewait` | `boolean()` | `true` | [docs](https://curl.se/libcurl/c/CURLOPT_PIPEWAIT.html) curl >= 7.43.0 |
95+
| `interface` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_INTERFACE.html) |
96+
| `unix_socket_path` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html) curl >= 7.40.0 |
97+
| `doh_url` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_DOH_URL.html) curl >= 7.62.0 |
98+
| `http_version` | `curl_http_version_none` <br> `curl_http_version_1_0` <br> `curl_http_version_1_1` <br> `curl_http_version_2_0` <br> `curl_http_version_2tls` <br> `curl_http_version_2_prior_knowledge` <br> `curl_http_version_3` | `curl_http_version_none` | [docs](https://curl.se/libcurl/c/CURLOPT_HTTP_VERSION.html) HTTP/3 requires curl >= 7.66.0 |
99+
| `sslversion` | `sslversion_default` <br> `sslversion_tlsv1` <br> `sslversion_tlsv1_0` <br> `sslversion_tlsv1_1` <br> `sslversion_tlsv1_2` <br> `sslversion_tlsv1_3` | `sslversion_default` | [docs](https://curl.se/libcurl/c/CURLOPT_SSLVERSION.html) |
100+
| `sslcert` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_SSLCERT.html) |
101+
| `sslkey` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_SSLKEY.html) |
102+
| `sslkey_blob` | `binary()` (DER format) | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html) curl >= 7.71.0 |
103+
| `keypasswd` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_KEYPASSWD.html) |
104+
| `http_auth` | `basic` <br> `digest` <br> `ntlm` <br> `negotiate` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_HTTPAUTH.html) |
105+
| `username` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_USERNAME.html) |
106+
| `password` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_PASSWORD.html) |
107+
| `userpwd` | `binary()` | `undefined` | [docs](https://curl.se/libcurl/c/CURLOPT_USERPWD.html) |
108+
| `verbose` | `boolean()` | `false` | [docs](https://curl.se/libcurl/c/CURLOPT_VERBOSE.html) |
109109

110110
#### Responses
111111

@@ -122,10 +122,10 @@ katipo:Method(Pool :: atom(), URL :: binary(), ReqOptions :: map()).
122122

123123
| Option | Type | Default | Note |
124124
|:------------------------|:------------------------------|:-------------|:-----------------------------------------------------------------------------------------------|
125-
| `pipelining` | `nothing` <br> `http1` <br> `multiplex` | `nothing` | HTTP pipelining [CURLMOPT_PIPELINING](https://curl.haxx.se/libcurl/c/CURLMOPT_PIPELINING.html) |
125+
| `pipelining` | `nothing` <br> `http1` <br> `multiplex` | `nothing` | HTTP pipelining [CURLMOPT_PIPELINING](https://curl.se/libcurl/c/CURLMOPT_PIPELINING.html) |
126126
| `max_pipeline_length` | `non_neg_integer()` | 100 | |
127-
| `max_total_connections` | `non_neg_integer()` | 0 (no limit) | [docs](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html) |
128-
| `max_concurrent_streams`| `non_neg_integer()` | 100 | [docs](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_CONCURRENT_STREAMS.html) curl >= 7.67.0 |
127+
| `max_total_connections` | `non_neg_integer()` | 0 (no limit) | [docs](https://curl.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html) |
128+
| `max_concurrent_streams`| `non_neg_integer()` | 100 | [docs](https://curl.se/libcurl/c/CURLMOPT_MAX_CONCURRENT_STREAMS.html) curl >= 7.67.0 |
129129

130130
#### Observability
131131

c_src/katipo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ static void new_conn(long method, char *url, struct curl_slist *req_headers,
822822
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, eopts.curlopt_verbose);
823823
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
824824
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);
825-
curl_easy_setopt(conn->easy, CURLOPT_ACCEPT_ENCODING, "gzip,deflate");
825+
curl_easy_setopt(conn->easy, CURLOPT_ACCEPT_ENCODING, "");
826826

827827
curl_easy_setopt(conn->easy, CURLOPT_CONNECTTIMEOUT_MS,
828828
eopts.curlopt_connecttimeout_ms);

0 commit comments

Comments
 (0)