Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl: add byte range support to --variable reading from file #15739

Closed
wants to merge 1 commit into from

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
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