diff options
author | Jakub Roztocil <jakub@roztocil.co> | 2020-12-21 12:14:41 +0100 |
---|---|---|
committer | Jakub Roztocil <jakub@roztocil.co> | 2020-12-21 12:14:41 +0100 |
commit | 0629f2ff4288e9834a6686e54be2acc65e6f18de (patch) | |
tree | 05e99bba872891996bd5145fc3de85592910f065 | |
parent | d71b7eee813952555e04264ce3055cd51a9bc1ef (diff) |
Fix `--stream` example II
-rw-r--r-- | README.rst | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 ======== |