feat: init
[skip ci]
This commit is contained in:
commit
0d6c010cce
55 changed files with 4216 additions and 0 deletions
17
docs/guide/advanced-usage.rst
Normal file
17
docs/guide/advanced-usage.rst
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Advanced Usage
|
||||
==============
|
||||
|
||||
Binary Pastes
|
||||
-------------
|
||||
|
||||
httpaste supports encoding. Encode your data as Base64, Base85, Base32, or
|
||||
Base16 and provide an encoding specifier.
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
$ cat my.pdf | base64 | curl "http://localhost:8080/paste/public?encoding=base64"
|
||||
http://localhost:8080/paste/public/5Rt3E3n6
|
||||
|
||||
When getting pastes, you may provide a MIME type, if a client deduces the encoding by looking at the HTTP 'Content-Type' header.
|
||||
|
||||
$ curl "https://p.victoryk.it/paste/public/5Rt3E3n6?mime=application/pdf"
|
||||
Loading…
Add table
Add a link
Reference in a new issue