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.57k stars 3.67k forks source link

When using the post sending a request, including & #514

Closed linglingqi007 closed 8 years ago

linglingqi007 commented 8 years ago

including &, pipe pp_json no working

image

jkbrzt commented 8 years ago

& is a special character that instructs bash to run the command before it in the background. If you don't want bash interpreting it as such, you need to quote it or escape it:

http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_03.html

linglingqi007 commented 8 years ago

Like this

http mo-moko.com/go.php date=123\&hello=123123123 | pp_json

Single quotes, Double quotes like too

Response like, only one param

image