Skip to content

Add --no-header option to remove specific HTTP header request #4884

@jcamiel

Description

@jcamiel

Add --no-header foo option to remove all HTTP headers foo from HTTP request.

Discussed in #4824

Originally posted by aranw February 25, 2026
I have this hurl file that will make a request to an endpoint which will return a presigned url

I then use that presigned url to upload a file but the issue I'm having is I set the authorization header via the --header flag and I'd like to exclude that header from the request that is made to the presigned url

# ─── Get S3 presigned upload URL ──────────────────────────────────────────────
PUT {{base_url}}/upload
[Options]
location: false

HTTP 307
[Captures]
upload_url: header "Location"


# ─── Upload file to S3 ────────────────────────────────────────────────────────
PUT {{upload_url}}
Content-Type: image/png
[Options]
location: false
file,testdata/logo.png;

HTTP 200

Is there a way to make the second request not include the --header authorization?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions