Piping Server – 支持 curl 的轻量级开源文件传输工具

Piping 是一个轻量级的开源文件传输工具,可自托管,支持使用 curl、wget 下载,可更广泛的在无浏览器的设备上使用。

可以用于不同设备间传输文本或者文件,或者在不同用户间传递资料等场景。

Github 地址:https://github.com/nwtgck/piping-server

curl 传递文本

# Send
echo 'hello, world' | curl -T - https://ppng.io/hello

# Get
curl https://ppng.io/hello > hello.txt

stream 流式获取数据

上传一个流,获取的时候就可以用流的方式一直获取

# Send
seq inf | curl -T - https://ppng.io/seqinf

# Get
curl https://ppng.io/seqinf

更多使用方法可以参考 Github

原文地址:https://www.cnblogs.com/manastudent/p/15544112.html