~mendelmaleh/bin

bin/README.md -rw-r--r-- 444 bytes
2fc3ccd2Mendel E Try getting scheme from X-Forwarded-Proto 11 months ago

#usage

#post
# pass a file to the file form field, returns a url with a random id
$ curl -F file=@/path/to/file http://localhost:8080
http://localhost:8080/?id=abcdef

# pass an id field if you want to choose it
$ curl -F file=@/path/to/file -F id=bin http://localhost:8080
http://localhost:8080/?id=bin
#get
# get the bin's content with curl -G and the id
$ curl -Gd id=bin http://localhost:8080
some text here