2019-08-25 21:33:56 +02:00
|
|
|
#RU URL SHORTENER
|
|
|
|
=================
|
|
|
|
|
|
|
|
Based on https://0x0.st/, this site allows you to easily shorten URLs using
|
|
|
|
the command line.
|
|
|
|
|
|
|
|
## USAGE
|
|
|
|
|
2019-11-10 19:08:05 +01:00
|
|
|
# Upload a file
|
2019-11-29 18:36:27 +01:00
|
|
|
curl -F'file=@yourfile.png' https://{{.Request.Host}}
|
2019-11-10 19:08:05 +01:00
|
|
|
|
2019-08-25 21:33:56 +02:00
|
|
|
# Shorten a URL
|
2019-11-09 22:29:01 +01:00
|
|
|
curl -F'shorten=http://example.com/some/long/url' https://{{.Request.Host}}
|
2019-09-22 13:40:33 +02:00
|
|
|
|
|
|
|
# Shorten a URL with a token to delete it later
|
2019-11-09 22:29:01 +01:00
|
|
|
curl -F'shorten=http://example.com/some/long/url' -F'deleteToken=' https://{{.Request.Host}}
|