mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Use -L to follow redirects, for HTTPS support
Former-commit-id: 3fd336829a29bfdb92d5daa3cce00e0522e9af2d [formerly 344e6f4e62f7fe43a2175fa5fb79149a8eae8f2c] [formerly 24a9402ca8d44838b5fd748951440674fbf494aa [formerly bdce4b6198
]]
Former-commit-id: fb22227719a853b70bea3c90741282756071670e [formerly 767071e630c7bc96c412d4e69d5f52464ad5edeb]
Former-commit-id: b92b516bbd21def9e40465957d4e579c9cfd4e97
This commit is contained in:
parent
b54feaf247
commit
a36af5200b
@ -47,16 +47,16 @@ This is a self-contained notepad webserver that makes sharing easy and _fast_. T
|
|||||||
**CLI support**. Want to upload/download from a server? Its super easy. Upload/download files like this:
|
**CLI support**. Want to upload/download from a server? Its super easy. Upload/download files like this:
|
||||||
```bash
|
```bash
|
||||||
$ echo "Hello, world!" > hi.txt
|
$ echo "Hello, world!" > hi.txt
|
||||||
$ curl --upload-file hi.txt cowyo.com
|
$ curl -L --upload-file hi.txt cowyo.com
|
||||||
File uploaded to http://cowyo.com/hi.txt
|
File uploaded to http://cowyo.com/hi.txt
|
||||||
$ curl cowyo.com/test.txt
|
$ curl -L cowyo.com/test.txt
|
||||||
Hello, world!
|
Hello, world!
|
||||||
```
|
```
|
||||||
or just skip the file-creation step,
|
or just skip the file-creation step,
|
||||||
```bash
|
```bash
|
||||||
$ echo "Wow, so easy" | curl --upload-file "-" cowyo.com
|
$ echo "Wow, so easy" | curl -L --upload-file "-" cowyo.com
|
||||||
File uploaded to http://cowyo.com/CautiousCommonLoon
|
File uploaded to http://cowyo.com/CautiousCommonLoon
|
||||||
$ curl cowyo.com/CautiousCommonLoon
|
$ curl -L cowyo.com/CautiousCommonLoon
|
||||||
Wow, so easy
|
Wow, so easy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user