Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl command - line up the Header params #70

Closed
kevinburke opened this issue May 2, 2013 · 1 comment
Closed

Curl command - line up the Header params #70

kevinburke opened this issue May 2, 2013 · 1 comment
Assignees
Milestone

Comments

@kevinburke
Copy link

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.

@ghost ghost assigned oestrich May 3, 2013
@oestrich
Copy link
Contributor

oestrich commented May 3, 2013

Fixed as of 4f20602

@oestrich oestrich closed this as completed May 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants