index text edit

This commit is contained in:
Paul Zinselmeyer 2023-06-02 16:06:26 +02:00
parent 37d2d98526
commit dc6346235e

View file

@ -1,8 +1,8 @@
# zettoIT bin # zettoIT bin
An empty bin was created for you. The first HTTP POST request can upload data. An empty bin was created for you. The first HTTP POST or PUT request can upload data.
All following requests can only read the uploaded data. All following requests can only read the uploaded data.
To use the build-in link-shortener functionality you have to POST the URL with Content-Type: text/x-uri or Content-Type: text/uri-list. To use the build-in link-shortener functionality you have to POST or PUT the URL with Content-Type: text/x-uri or Content-Type: text/uri-list.
To change the default expiration date of one month, you can use the `?ttl=` parameter. It supports durations like `60s`, `60m`, `24h`, `30d`, `12M`, `1y` or iso dates like `1970-01-01T00:00:00` in UTC timezone. To change the default expiration date of one month, you can use the `?ttl=` parameter. It supports durations like `60s`, `60m`, `24h`, `30d`, `12M`, `1y` or iso dates like `1970-01-01T00:00:00` in UTC timezone.
@ -10,18 +10,18 @@ To change the default expiration date of one month, you can use the `?ttl=` para
`$ curl -H "Content-Type: text/x-uri" --data "https://example.com" <bin_url>` `$ curl -H "Content-Type: text/x-uri" --data "https://example.com" <bin_url>`
## Upload a image ## Upload a image
`$ curl -H "Content-Type: image/png" --data-binary @my-image.png <bin_url>` `$ curl -H "Content-Type: image/png" -T my-image.png <bin_url>`
## Upload a big file ## Upload a big file
`$ curl -X POST -H "Content-Type: application/gzip" -T my-file.tar.gz <bin_url>` `$ curl -X POST -H "Content-Type: application/gzip" -T my-file.tar.gz <bin_url>`
## Pipe into curl ## Pipe into curl
`$ tar -cz my-files* | curl -X POST -H "Content-Type: application/gzip" -T - <bin_url>` `$ tar -cz my-files | curl -H "Content-Type: application/gzip" -T - <bin_url>`
## Enryption ## Enryption
``` ```
$ tar -cz my-files | gpg -co tmp.tar.gz $ tar -cz my-files | gpg -co tmp.tar.gz
$ curl -X POST -H "Content-Type: application/octet-stream" -T tmp.tar.gz <bin_url> $ curl -H "Content-Type: application/octet-stream" -T tmp.tar.gz <bin_url>
$ curl <bin_url> | gpg -d - | tar -xzf $ curl <bin_url> | gpg -d - | tar -xzf
``` ```