Commit graph

35777 commits

Author SHA1 Message Date
Viktor Szakats
d70cd51116
spellcheck.words add "enums" 2025-08-01 23:59:01 +02:00
Viktor Szakats
04f23f4cad
CURLOPT_NETRC_FILE.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
492ab9434c
CURLOPT_NETRC.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
4156661cbe
CURLOPT_RTSP_TRANSPORT.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
9feffc82d4
CURLOPT_RTSP_REQUEST.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
318bfd846e
CURLOPT_HTTPAUTH.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
c9134a3bc6
CURLOPT_PROXYAUTH.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
a955af7d07
CURLOPT_POSTFIELDSIZE.md whitespace 2025-08-01 23:59:00 +02:00
Viktor Szakats
f387fd59d7
CURLOPT_HTTP_VERSION.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
87d5b138aa
CURLOPT_TIMEVALUE_LARGE.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
cb400a5001
CURLOPT_TIMEVALUE.md add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
987f13a23a
CURLOPT_TIMECONDITION.md drop long cast 2025-08-01 23:59:00 +02:00
Viktor Szakats
e5f1bd4555
CURLINFO_CONDITION_UNMET.md drop long cast 2025-08-01 23:59:00 +02:00
Viktor Szakats
fe3a2f86bf
CURLOPT_SOCKS5_AUTH.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
398ef65d23
CURLOPT_USE_SSL.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
9348e489a3
CURLOPT_SSL_OPTIONS.md sync formatting with counterpart in PROXY 2025-08-01 23:59:00 +02:00
Viktor Szakats
44834cd5ea
CURLOPT_PROXY_SSL_OPTIONS.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
7d189f806e
CURLOPT_SSL_OPTIONS.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
4232931f1b
CURLOPT_FTP_SSL_CCC.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
ccabfeb15c
CURLOPT_FTP_FILEMETHOD.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
d629d53e8c
CURLOPT_FTPSSLAUTH.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
d4f10b54ea
CURLOPT_FTP_CREATE_MISSING_DIRS.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
b71542e91f
CURLOPT_HSTS_CTRL.md drop cast, never needed it 2025-08-01 23:59:00 +02:00
Viktor Szakats
80fb94b35d
CURLOPT_ALTSVC.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
55f236a89f
CURLOPT_IPRESOLVE.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
1b3c1e44cb
CURLOPT_ALTSVC_CTRL.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
1530bd2b5b
CURLOPT_PROXYTYPE.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
bee5b178bc
CURLOPT_HEADEROPT.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
7c20857793
CURLOPT_POSTREDIR.md drop cast, add note to history 2025-08-01 23:59:00 +02:00
Viktor Szakats
bec0aef775
CURLOPT_ALTSVC_CTRL.md bump local copy of defines to long 2025-08-01 23:59:00 +02:00
Viktor Szakats
d1da9543f8
CURLOPT: replace (long) cast with L suffix for CURLHSTS_* macros
In curl/curl.h and the man page. To match the rest of CURLOPT macros.

Cherry-picked from #18130
2025-08-01 23:58:17 +02:00
Viktor Szakats
54da6f5a32
build: if no perl, fix to use the pre-built hugehelp, if present
- cmake: Before this patch a missing perl disabled the curl manual.
  After this patch, it automatically picks up a pre-built hugehelp,
  if present (= when building from a release tarball).
  Follow-up to 0035ff45c5 #16081

- autotools: Rework behavior when perl is missing. Before this patch
  it caused a hard error when docs/manual/ca-embed were enabled.
  Of these, docs were enabled by default. After this patch, doc
  generation is automatically skipped, with a warning. Manual generation
  falls back to using a pre-built hugehelp, or a stub if that's missing.
  CA-embed is automatically skipped, with a warning.
  Slight difference from cmake: When built with no perl and no pre-built
  hugehelp, the manual is enabled, but the content is empty; with cmake
  it's disabled proper.
  Follow-up to 137aecfbf1 #13514
  Follow-up to 541321507e #12857

Also:
- GHA/distcheck: verify if the pre-built hugehelp makes it into curl.
- GHA/distcheck: streamline disabling perl with autotools.
- GHA/distcheck: `--disable-docs` no longer required to build without perl.
  Passing it also implicitly disables the curl manual, which is
  undesired in these tests.
- cmake: drop redundant `HAVE_MANUAL_TOOLS` interim variable.
- cmake: move two `set()` lines close to their counterparts.

Follow-up to 25119fbaaa #18104

Closes #18118
2025-08-01 23:54:12 +02:00
Daniel Stenberg
18e00c8ed0
managen: reset text mode at end of table marker
It previously mostly ignored it which lead to bad format after a table
has ended with "##".

Closes #18139
2025-08-01 23:24:32 +02:00
Daniel Stenberg
2bad773b30
urlapi: allow more path characters "raw" when asked to URL encode
Setting the path component to contain the letters:

    ! $ & ' ( ) { } [ ] * + , ; = : @

now leaves them un-encoded when CURLU_URLENCODE is used.

Amended test 1560 to verify.

Reported-by: Jeroen Ooms
Fixes #17977
Closes #18024
2025-08-01 23:22:32 +02:00
Viktor Szakats
a33893dac7
examples: drop long cast for CURLALTSVC_*
Follow-up to d45b85d791 #18063
2025-08-01 18:54:27 +02:00
Viktor Szakats
80297e1dcb
CURLOPT: bump remaining macros to long
This patch bumps the size of these macros from `int` to `long`, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

- CURLGSSAPI_DELEGATION_FLAG
- CURLGSSAPI_DELEGATION_NONE
- CURLGSSAPI_DELEGATION_POLICY_FLAG

- CURLMIMEOPT_FORMESCAPE

- CURLSSH_AUTH_AGENT
- CURLSSH_AUTH_ANY
- CURLSSH_AUTH_DEFAULT
- CURLSSH_AUTH_GSSAPI
- CURLSSH_AUTH_HOST
- CURLSSH_AUTH_KEYBOARD
- CURLSSH_AUTH_NONE
- CURLSSH_AUTH_PASSWORD
- CURLSSH_AUTH_PUBLICKEY

Also:
- keep existing cast within the documentation to make sure it applies
  to older curl versions as well.

Closes #18134
2025-08-01 18:49:23 +02:00
Viktor Szakats
b131db5410
CURLOPT: bump CURLPROTO_* macros to long
This patch bumps the size of these macros from `int` to `long`, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

- CURLPROTO_HTTP
- CURLPROTO_HTTPS
- CURLPROTO_FTP
- CURLPROTO_FTPS
- CURLPROTO_SCP
- CURLPROTO_SFTP
- CURLPROTO_TELNET
- CURLPROTO_LDAP
- CURLPROTO_LDAPS
- CURLPROTO_DICT
- CURLPROTO_FILE
- CURLPROTO_TFTP
- CURLPROTO_IMAP
- CURLPROTO_IMAPS
- CURLPROTO_POP3
- CURLPROTO_POP3S
- CURLPROTO_SMTP
- CURLPROTO_SMTPS
- CURLPROTO_RTSP
- CURLPROTO_RTMP
- CURLPROTO_RTMPT
- CURLPROTO_RTMPE
- CURLPROTO_RTMPTE
- CURLPROTO_RTMPS
- CURLPROTO_RTMPTS
- CURLPROTO_GOPHER
- CURLPROTO_SMB
- CURLPROTO_SMBS
- CURLPROTO_MQTT
- CURLPROTO_GOPHERS
- CURLPROTO_ALL

Also:
- keep existing cast within the documentation to make sure it applies
  to older curl versions as well.

Closes #18136
2025-08-01 18:49:23 +02:00
Viktor Szakats
ebbb8e3da7
CURLOPT: bump CURL_SSLVERSION_* macros to long
This patch bumps the size of these macros from `int` to `long`, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

- CURL_SSLVERSION_DEFAULT
- CURL_SSLVERSION_SSLv2
- CURL_SSLVERSION_SSLv3
- CURL_SSLVERSION_TLSv1
- CURL_SSLVERSION_TLSv1_0
- CURL_SSLVERSION_TLSv1_1
- CURL_SSLVERSION_TLSv1_2
- CURL_SSLVERSION_TLSv1_3

- CURL_SSLVERSION_MAX_DEFAULT
- CURL_SSLVERSION_MAX_NONE
- CURL_SSLVERSION_MAX_TLSv1_0
- CURL_SSLVERSION_MAX_TLSv1_1
- CURL_SSLVERSION_MAX_TLSv1_2
- CURL_SSLVERSION_MAX_TLSv1_3

Also:
- keep existing cast within the documentation to make sure it applies
  to older curl versions as well.

Closes #18135
2025-08-01 18:49:23 +02:00
Viktor Szakats
ac0222d355
CURLOPT: bump CURLWS_NOAUTOPONG, CURLWS_RAW_MODE macros to long
This patch bumps the size of these macros from `int` to `long`, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

- CURLWS_NOAUTOPONG
- CURLWS_RAW_MODE

Also:
- keep existing cast within the documentation to make sure it applies
  to older curl versions as well.

Closes #18137
2025-08-01 18:49:23 +02:00
Viktor Szakats
1d56c1401f
lib2700: use testnum
Follow-up to 02dd471bbf #17591
Follow-up to d3594be653 #17136

Closes #18138
2025-08-01 18:48:07 +02:00
Stefan Eissing
ec4c559104
openssl: check SSL_write() length on retries
When an SSL_write() blocks we need to retry it with the
same length as before or stupid OpenSSL freaks out. Remember
it, limit any longer sends and fail shorter ones.

Fixes #18121
Reported-by: adamse on github
Closes #18132
2025-08-01 17:54:05 +02:00
Daniel Stenberg
8df0a5ba32
release-notes: fix warning
Follow-up to 2ec54556d4

Closes #18133
2025-08-01 16:02:54 +02:00
Daniel Stenberg
32cab35a0c
RELEASE-NOTES: synced 2025-08-01 15:40:53 +02:00
Stefan Eissing
7f5ad2028d
pytest: test very long urls
test_02_36 tests h1/h2/h3 with urls longer than 1/16/32/64K.

Protocols behave the same until the size exceed 64k when h2 frame limits
bite and h3 exhibits a different http status.

Failed attempt to reproduce #18121
Closes #18129
2025-08-01 14:35:37 +02:00
Stefan Eissing
30daac9f2f
cli_hx_download: fix compiler warnings about format strings
Follow-up to ba9ddb9357

Closes #18127
2025-08-01 10:51:19 +02:00
Stefan Eissing
077fd6aac8
curl_easy_ssls_export: make the example more clear
As mentioned in #18031
Closes #18117
2025-08-01 10:49:56 +02:00
Stefan Eissing
ba9ddb9357
tls: CURLINFO_TLS_SSL_PTR testing
Add tests of CURLINFO_TLS_SSL_PTR and its returned value in test client
'hx-download'. Use obtained pointer to look up the negotiated TLS
version.

Update manpage of CURLINFO_TLS_SSL_PTR to also describe the behaviour of
wolfSSL similar to OpenSSL. Fix the wolfSSl implementation for TCP to
behave like that. Update the QUIC queries.

Fix rustls `get_internals()` to return the rustls_connection* and not
the address of the pointer.

Assisted-by: Viktor Szakats
Closes #18066
2025-08-01 09:37:36 +02:00
Stefan Eissing
af69c9d636
ip happy eyeballing: keep attempts running
When `CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS` expires, start the next ip
connect attempt, but keep all ongoing attempts alive.

Separate happy-eyeballs connection filter into own source files.

Closes #18105
2025-08-01 09:30:59 +02:00
Daniel Stenberg
4654493fed
curl: add --parallel-max-host to limit concurrent connections per host
Where 'host' is protocol + hostname + portnumber.

Closes #18052
2025-07-31 23:30:40 +02:00
Daniel Stenberg
e688fe18a9
spacecheck.pl: when detecting unicode, mention line number
Closes #18120
2025-07-31 23:29:17 +02:00