From 5df3a916190d66c1cf916884204801651547927e Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Sat, 23 May 2020 13:37:47 +0200 Subject: [PATCH] Add examples --- README.rst | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index ba2829f5..5b6aa6fe 100644 --- a/README.rst +++ b/README.rst @@ -306,12 +306,22 @@ Request URL The only information HTTPie needs to perform a request is a URL. -The default scheme is, somewhat unsurprisingly, ``http://``, -and can be omitted from the argument – ``http example.org`` works just fine. +The default scheme is ``http://`` and can be omitted from the argument: + +.. code-block:: bash + + # => http://example.org + $ http example.org + HTTPie also installs an ``https`` executable, where the default -scheme is ``https://``: ``https example.org`` (that is the only difference -between the ``http`` and ``https`` commands). +scheme is ``https://``: + + +.. code-block:: bash + + # => https://example.org + $ https example.org Querystring parameters