PasteHTML API

Make a POST request to //pastehtml.com/upload/create?input_type=txt&result=address and send a param named txt with your actual text.

input_type=txt can be txt, html or mrk (for Markdown syntax).

result=address can be address (returns the address of newly published page) or redirect (redirects you to that page).

Example

curl -s -S --data-urlencode "txt=My text to publish" "//pastehtml.com/upload/create?input_type=txt&result=address"

Just copy it to your console and run right now. You will get an URL as a result. Open it and see your text.

Or find out how to publish HTML page from console with ANSI colors.

Existing tools

Visit code.google.com/p/pastehtml and download a bash script. It allows you to do nice things:

  • dmesg | ./pastehtml.sh
  • ls -la | ./pastehtml.sh
  • ps axf | ./pastehtml.sh

Output of these commands will be immediately published to web with no registration, login or whatever.

More APIs

We have also a handy bookmarklet