http - 如何从 shell 脚本中使用 pastebin?

标签 http bash shell url pastebin

是否可以在 bash shell 脚本中使用 pastebin(可以通过他们的 "API" functionality )?我如何发送http-post?如何取回 URL?

最佳答案

由于 pastebin.com 关闭了他们的公共(public) API,我正在寻找替代方案。

Sprunge是很棒的。用法:

<command> | curl -F 'sprunge=<-' http://sprunge.us

或者,当我使用它时:

alias paste="curl -F 'sprunge=<-' http://sprunge.us"
<command> | paste

关于http - 如何从 shell 脚本中使用 pastebin?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4013947/

相关文章:

android - Android 设备中的 SU 命令问题

用于跟踪图像 url 的 HTTP 302、303 或 307

swift - 有人可以找到错误并验证我的 Swift NSURLSession 代码吗?

bash - 通过 Bash cURL 并行或多个请求

bash - 鱼壳中的多个 GOPATH

linux - Bash awk 脚本 : document splitter issue

linux - 如何将终端中定义的变量读取到 bash 脚本

linux - 在 bash 脚本中循环调用 api

java - 从 API 请求 json 时无法下载超过 16144 个字符

rest - 外部子系统故障的最佳 HTTP 代码