mirror of
https://github.com/httpie/cli.git
synced 2025-06-20 09:37:45 +02:00
Tweak querystring parameters doc
This commit is contained in:
parent
6e2c31a5a9
commit
f1ab816ecd
16
README.rst
16
README.rst
@ -294,20 +294,22 @@ Querystring parameters
|
|||||||
|
|
||||||
If you find yourself manually constructing URLs with querystring parameters
|
If you find yourself manually constructing URLs with querystring parameters
|
||||||
on the terminal, you may appreciate the ``param==value`` syntax for appending
|
on the terminal, you may appreciate the ``param==value`` syntax for appending
|
||||||
URL parameters. With that, you don't have to worry about escaping the ``&``
|
URL parameters.
|
||||||
separators for your shell. Also, special characters in parameter values,
|
|
||||||
will also automatically escaped (HTTPie otherwise expects the URL to be
|
With that, you don't have to worry about escaping the ``&``
|
||||||
already escaped). To search for ``HTTPie logo`` on Google Images you could use
|
separators for your shell. Additionally, any special characters in the
|
||||||
this command:
|
parameter name or value get automatically URL-escaped
|
||||||
|
(as opposed to parameters specified in the full URL, which HTTPie doesn’t
|
||||||
|
modify).
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ http www.google.com search=='HTTPie logo' tbm==isch
|
$ http https://api.github.com/search/repositories q==httpie per_page==1
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: http
|
.. code-block:: http
|
||||||
|
|
||||||
GET /?search=HTTPie+logo&tbm=isch HTTP/1.1
|
GET /search/repositories?q=httpie&per_page=1 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user