summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-07-08 07:54:47 +0100
committerKatolaZ <katolaz@freaknet.org>2017-07-08 07:54:47 +0100
commit9d4d7bfa1ff4d2c4bae95c06350d28e655e56195 (patch)
tree8c3fe50f2144af772ff3da1a7861028bad94a16c /README.md
parenta6a9f827dee9c98c70aee5bd51f7f7d16f3b8368 (diff)
Explain how to use with curl in README.mdHEAD0.3master
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index da0706e..421605f 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,23 @@ through the option `-c <config_file>`. If no config file is specified,
pastes will be trimmed to that length.)
* log_file (path to the logfile)
+As with other pastebin-like services, you can send a paste to `binnit`
+using `curl`. For instance, if your `binnit` server is running on
+`http://servername.net`, you can paste a file there using:
+
+
+ curl -F 'paste=<myfile' http://servername.net
+
+
+and obtain on output the ID associated to the newly created
+paste. Similarly
+
+ mylongcommand | curl -F 'paste=<-' http://servername.net
+
+will paste the output of `mylongcommand` to `http://servername.net`,
+and show on output the ID of the new paste.
+
+
## Why another pastebin?
There are hundreds of pastebin-like servers in the wild. But the