mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 08:38:44 +02:00
Fix --stream
example II
This commit is contained in:
parent
d71b7eee81
commit
0629f2ff42
@ -1730,8 +1730,7 @@ Streamed output by small chunks à la ``tail -f``:
|
||||
|
||||
# Send each new tweet (JSON object) mentioning "Apple" to another
|
||||
# server as soon as it arrives from the Twitter streaming API:
|
||||
$ http --stream -f -a YOUR-TWITTER-NAME https://stream.twitter.com/1/statuses/filter.json track=Apple \
|
||||
| while read tweet; do echo "$tweet" | http POST example.org/tweets ; done
|
||||
$ http --stream httpbin.org/stream/3 | while read line; do echo "$line" | http httpbin.org/post ; done
|
||||
|
||||
Sessions
|
||||
========
|
||||
|
Loading…
Reference in New Issue
Block a user