Skip to content

Support header values read from file ? #964

@coldcoff

Description

@coldcoff

httpie allows to get url params and form data from file, by using @ syntax

There are sometimes complicated headers, for example tokens.

It seems this is not yet possible for headers.

Can this feature be added for headers as well?

Probably with a syntax like:

':@'

like:

Referer:http://httpie.org  Cookie:foo=bar  User-Agent:bacon/1.0 FunnyHeader:@somefile

That would be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions