Skip to content

tigraneee/courier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Courier

Courier is a toy paste bin written in asynchronous rust (using tokio). By default it listens on localhost:8888.

Usage

File Transfer

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

Paste Text

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.

Deletion

Delete file or text pastes with curl http://<courier host>/del/xxxx

Special

Expiration date is no more than 24 hours, otherwise the server responds with a "BadRequest".

Maximum request size is 50 MB.

About

Courier, or yet another toy pastebin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors