mirror of
https://github.com/httpie/cli.git
synced 2024-11-08 08:55:05 +01:00
Add --path-as-is
docs
This commit is contained in:
parent
29b692d597
commit
770976a66e
28
README.rst
28
README.rst
@ -380,6 +380,34 @@ Example for the `httpie-unixsocket <https://github.com/httpie/httpie-unixsocket>
|
||||
# Now the scheme can be omitted
|
||||
$ http-unix %2Fvar%2Frun%2Fdocker.sock/info
|
||||
|
||||
|
||||
``--path-as-is``
|
||||
----------------
|
||||
|
||||
The standard behaviour of HTTP clients is to normalize the path portion of URLs by squashing dot segments
|
||||
as a typically filesystem would:
|
||||
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ http -v example.org/./../../etc/password
|
||||
|
||||
.. code-block:: http
|
||||
|
||||
GET /etc/password HTTP/1.1
|
||||
|
||||
|
||||
The ``--path-as-is`` option allows you to disable this behavior:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ http --path-as-is -v example.org/./../../etc/password
|
||||
|
||||
.. code-block:: http
|
||||
|
||||
GET /../../etc/password HTTP/1.1
|
||||
|
||||
|
||||
Request items
|
||||
=============
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user