rook2pawn / curl-paste

http://curlpaste.com Curl POST any piece of text and share it!

Home Page:http://curlpaste.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

curl-paste

Regular API

GET /{id}

Returns document at {id}

GET /web/{id}

Returns document in web view at {id}

POST /

Upload document, returns {id}

POST /web

Upload document from web view

Secure Methods

POST /once

Upload document, returns {id}. After one GET of {id}, document is deleted.

POST /once?expires={seconds}

Upload document, returns {id}. After one GET of {id}, document is deleted. Document is also deleted after {seconds}.

Plain HTTP

	node server -p <port>

Secure with HTTPS

Simply place privkey.pem and fullchain.pem in the root directory. Run the secure HTTPS server with node server.js -p 443 -s where -s signifies it will read the key and the cert.

  var server = https.createServer({
      key:fs.readFileSync('privkey.pem'),
      cert:fs.readFileSync('fullchain.pem')
  },app)

About

http://curlpaste.com Curl POST any piece of text and share it!

http://curlpaste.com


Languages

Language:JavaScript 98.6%Language:CSS 1.0%Language:HTML 0.4%