Skip to content

Curl command - line up the Header params #70

Closed
@kevinburke

Description

@kevinburke

It would be nice in the curl command if the headers lined up - just makes it a little easier to scan. So instead of:

curl "http://rad-example.herokuapp.com/orders" -d "{"order":{"name":"Order 1","paid":true,"email":"email@example.com"}}" -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Host: example.org" -H "Cookie: "

you'd have:

curl "http://rad-example.herokuapp.com/orders" -d "{"order":{"name":"Order 1","paid":true,"email":"email@example.com"}}" -X POST \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Host: example.org" \
    -H "Cookie: "

Also it's a little odd that the host doesn't match the domain in the URL, although thit might be harder to fix.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions