Skip to content

write-out variable "json" doesn't include content of "header_json" #18390

@sebastiancarlos

Description

@sebastiancarlos

Specify which documentation you found a problem with

curl(1)

 -w, --write-out <format>

    ...

    The variables available are:

    ...

    header_json
           A JSON object with all HTTP response headers from the recent
           transfer. Values are provided as arrays, since in the case of
           multiple headers there can be multiple values. (Added in 7.83.0)

           The header names provided in lowercase, listed in order of ap‐
           pearance over the wire. Except for duplicated headers. They are
           grouped on the first occurrence of that header, each value is
           presented in the JSON array.
    
    ...

    json   A JSON object with all available keys. (Added in 7.70.0)

The problem

Hey there, thanks for your amazing work!

From the documentation I got the impression that the value of header_json would be included within json, but it's not there.

Have a nice day!

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