You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-12-26 00:31:53 +02:00
Add --path-as-is docs
This commit is contained in:
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
|
||||
=============
|
||||
|
||||
|
||||
Reference in New Issue
Block a user