Back to /Me0w paster service
===================
# #
Two ways to post
----------------
* HTTP POST at http://me0w.net/pit/
* TCP listener at port 31415
Both inputs return filename used on the server.
Two ways to get
---------------
* HTTP at http://me0w.net/pit/FILENAME
* GOPHER at gopher://me0w.net/0/pit/FILENAME
Other domains mentioned in the root are acceptable as well.
HTTP retriever will try to guess file mime type.
Limits
------
Text files are to live for more than month.
Examples
--------
With netcat:
#!/bin/sh
echo gopher://me0w.net/0/pit/`ncat me0w.net 31415 <$1`
With wget:
#!/bin/sh
http://me0w.net/pit/`wget -q -O - --post-file $1 http://me0w.net/pit/`
With curl:
#!/bin/sh
uri="http://me0w.net/pit/"
if [ -f "$1" ]; then
out=$(curl -s -H "Expect:" --data-binary "@$1" "$uri")
else
out=$(curl -s -H "Expect:" --data-binary "@-" "$uri")
fi
out="http://me0w.net/pit/"${out}
echo ${out}