Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Dec 13, 2024

Allowing --variable read a portion of provided files, makes curl work on partial files for any options that accept strings. Like --data and others.

The byte offset is provided within brackets, with a semicolon separator like: --variable "name@file;[100-200]"

Inspired by #14479
Assisted-by: Manuel Einfalt

Test 784 - 789. Documentation update provided.

@testclutch

This comment was marked as outdated.

@bagder bagder marked this pull request as ready for review December 14, 2024 09:32
@bagder bagder added the feature-window A merge of this requires an open feature window label Dec 14, 2024
@bagder bagder force-pushed the bagder/variable-range branch from 97ecf83 to 0fc0e18 Compare December 14, 2024 13:25
@bagder bagder force-pushed the bagder/variable-range branch from 0fc0e18 to 91392fd Compare December 14, 2024 16:05
Allowing --variable read a portion of provided files, makes curl work on
partial files for any options that accepts strings. Like --data and others.

The byte offset is provided within brackets, with a semicolon separator
like: --variable name@file;[100-200]"

Inspired by #14479
Assisted-by: Manuel Einfalt

Test 784 - 789. Documentation update provided.

Closes #15739
@bagder bagder force-pushed the bagder/variable-range branch from a3b103e to 09262ab Compare December 16, 2024 08:21
@bagder bagder closed this in 40c264d Dec 21, 2024
@bagder bagder deleted the bagder/variable-range branch December 21, 2024 10:46
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Allowing --variable read a portion of provided files, makes curl work on
partial files for any options that accepts strings. Like --data and others.

The byte offset is provided within brackets, with a semicolon separator
like: --variable name@file;[100-200]"

Inspired by curl#14479
Assisted-by: Manuel Einfalt

Test 784 - 789. Documentation update provided.

Closes curl#15739
vszakats added a commit to vszakats/curl that referenced this pull request Dec 3, 2025
They are close on the keyboard and don't affect test results.

To make this test XML-compliant.

Ref: curl#14479
Follow-up to 40c264d curl#15739
vszakats added a commit that referenced this pull request Dec 4, 2025
They are close on the keyboard and don't affect test results.

To make this test XML-compliant.

Ref: #14479
Follow-up to 40c264d #15739
Closes #19826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmdline tool feature-window A merge of this requires an open feature window tests

Development

Successfully merging this pull request may close these issues.

2 participants