From ca04bb9921cde8f0e69c5a56f7122a6833488746 Mon Sep 17 00:00:00 2001 From: Grzegorz Baranski Date: Mon, 5 Apr 2021 15:45:04 +0200 Subject: [PATCH] xh: fix downloading JSON example Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/common/xh.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/xh.md b/pages/common/xh.md index 8d7f41905a..bcf319f8d1 100644 --- a/pages/common/xh.md +++ b/pages/common/xh.md @@ -23,6 +23,6 @@ `xh put {{httpbin.org/put}} {{id:=49}} {{age:=25}} | less` -- Download and save to res.json: +- Make a GET request and save the response body to a file: -`xh -d {{httpbin.org/json}} -o {{res.json}}` +`xh --download {{httpbin.org/json}} --output {{path/to/file}}`