Courier is a toy paste bin written in asynchronous rust (using tokio). By default it listens on localhost:8888.
curl -F file=@yourfile -F expire=<expiration time in minutes> http://<courier host>/file
A four digit short url will be created to refer to your paste.
You can download with the shorturl: curl -L http://<courier host>/get/xxxx --output path_to_file
or curl the original filename directly: http://<courier host>/filename
curl -d text="your text here" -d expire=<expiration time in minutes> http://<courier host>/text
Use text=- or text=@yourfile to read from STDIN or file.
Delete file or text pastes with curl http://<courier host>/del/xxxx
Expiration date is no more than 24 hours, otherwise the server responds with a "BadRequest".
Maximum request size is 50 MB.