add a direct text example

This commit is contained in:
creme 2020-01-14 17:14:55 +01:00
parent 9595c2b9d7
commit 4b067e1913
No known key found for this signature in database
GPG Key ID: C147C3B7FBDF08D0

View File

@ -383,6 +383,8 @@ you can also POST remote URLs:
<code>curl -F'url=https://example.com/image.jpg' {0}</code>
or you can shorten URLs:
<code>curl -F'shorten=http://example.com/some/long/url' {0}</code>
post your text directly:
<code>echo "text here" | curl -F'file=@-;' {0}</code>
file URLs are valid for at least 30 days and up to a year (see below).
shortened URLs do not expire.