httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
33.37k stars 3.67k forks source link

not support to post a simple string. #352

Closed hackrole closed 9 years ago

hackrole commented 9 years ago

I write a simple node for learning. I would to post a request like below

Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 13
Content-Type: plain/text
Host: localhost:8000
User-Agent: HTTPie/0.9.1

buy node in action

but seems the lib not support such thing. I have to use --form or --json, which was not my willing.

jkbrzt commented 9 years ago
echo 'buy node in action' | http …

See: https://github.com/jakubroztocil/httpie#redirected-input

hackrole commented 9 years ago

that's it. thanks.