Skip to content

Range (Start-Stop in bytes) for "--data-binary" option (feature request) #1200

@ricary37

Description

@ricary37

bagder, seems you didn't understand what I was trying to request in #1198 and closed the thread, so I will explain in other words.

I don't want curl to set headers for "--data-binary".
I'd like curl to send exact set of bytes to the server.
Technially it would be like:

If I add the option "--data-binary @largefile.zip!1073741823-2147483647"
then curl does:
open(F, "largefile.zip");
seek(F, SEEK_SET, 1073741823);
read(F, $buf, 2147483647-1073741823+1);
send(SOCKET, $buf)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions