curl/docs/cmdline-opts
Daniel Stenberg fa6a46473e
tool_cb_hdr: with -J, use the redirect name as a backup
The -J / --remote-header-name logic now records the file name part used
in the redirects so that it can use the last one as a name if no
Content-Disposition header arrives.

Add tests to verify:

1641: -J with a redirect and extract the CD contents in the second
response

1642: -J with a redirect but no Content-Disposition, use the name from
the Location: header

1643: -J with two redirects, using the last file name and also use
queries and fragments to verify them stripped off

Closes #20430
2026-01-26 12:53:03 +01:00
..
2025-08-22 15:53:41 +02:00
2025-05-29 10:21:52 +02:00
2025-12-10 01:21:07 +01:00
2024-03-25 13:05:24 +01:00
2024-03-12 15:42:33 +01:00
2025-05-29 10:21:52 +02:00
2024-08-04 19:17:45 +02:00
2024-06-24 16:20:03 +02:00
2024-03-25 13:05:24 +01:00
2024-03-25 13:05:24 +01:00
2024-03-12 15:42:33 +01:00
2024-03-12 15:42:33 +01:00
2025-05-29 10:21:52 +02:00
2024-03-12 15:42:33 +01:00
2024-06-24 16:56:52 +02:00
2025-09-22 09:06:00 +02:00
2025-09-22 09:06:00 +02:00
2025-03-31 08:18:31 +02:00
2024-07-05 11:05:50 +02:00
2024-07-05 11:05:50 +02:00
2025-09-22 09:06:00 +02:00
2025-09-22 09:06:00 +02:00
2024-07-05 11:05:50 +02:00
2024-02-27 16:19:43 +01:00
2024-03-12 15:42:33 +01:00
2025-06-06 14:40:14 -07:00
2024-03-12 15:42:33 +01:00
2025-05-29 10:21:52 +02:00
2024-07-05 11:05:50 +02:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2024-12-21 11:33:05 +01:00
2025-09-22 09:06:00 +02:00
2025-05-29 10:21:52 +02:00
2024-03-12 15:42:33 +01:00
2024-03-15 14:56:37 +01:00
2025-07-12 08:59:44 +02:00
2025-09-22 09:06:00 +02:00
2025-09-20 23:58:28 +02:00
2025-10-21 17:18:35 +02:00
2024-03-25 13:05:24 +01:00
2025-08-04 17:12:14 +02:00
2024-02-27 16:19:43 +01:00
2025-10-06 13:41:22 +02:00
2024-06-28 08:42:47 +02:00
2025-05-29 10:21:52 +02:00
2024-07-05 11:05:50 +02:00
2025-05-29 10:21:52 +02:00
2024-07-05 11:05:50 +02:00
2024-07-02 07:51:57 +02:00
2024-07-05 11:05:50 +02:00
2025-07-28 14:57:38 +02:00
2024-07-05 11:05:50 +02:00
2025-05-29 10:21:52 +02:00
2025-09-22 09:06:00 +02:00
2024-03-12 15:42:33 +01:00
2024-03-25 13:05:24 +01:00
2024-03-25 13:05:24 +01:00
2024-03-25 13:05:24 +01:00
2024-07-05 11:05:50 +02:00
2025-04-03 08:26:33 +02:00
2024-03-12 15:42:33 +01:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2024-07-05 11:05:50 +02:00
2025-05-29 10:21:52 +02:00
2024-03-12 15:42:33 +01:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2025-09-22 09:06:00 +02:00
2025-09-22 09:06:00 +02:00
2024-07-05 11:05:50 +02:00
2024-07-05 11:05:50 +02:00
2025-05-29 10:21:52 +02:00
2025-01-02 17:15:54 +01:00
2024-08-04 23:28:09 +02:00
2024-07-05 11:05:50 +02:00
2024-07-05 11:05:50 +02:00
2024-07-05 11:05:50 +02:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2024-02-27 16:19:43 +01:00
2024-03-25 13:05:24 +01:00
2024-07-05 11:05:50 +02:00
2024-07-05 11:05:50 +02:00
2024-07-05 11:05:50 +02:00
2025-09-22 09:06:00 +02:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00
2025-05-29 10:21:52 +02:00