Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

How to

Run

node pastebin.js

Run ngrok, eg ngrok http 8000

Then in some other environment, to send plain text:

echo "hello world" | curl -X POST --data-binary @- https://<NGROK_URL>/paste

To send JSON data:

curl -X POST -H "Content-Type: application/json" -d '{"content": "This is my JSON data."}' https://<NGROK_URL>/paste

To send form-urlencoded data:

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'content=This+is+my+form+data.' https://<NGROK_URL>/paste

To send multipart/form-data:

curl -X POST -H "Content-Type: multipart/form-data" -F "content=This is my multipart data." https://<NGROK_URL>/paste

You will get,

{"url":"/paste/abc123ef"}

To read the data in your local,

curl https://<NGROK_URL>/paste/abc123ef

You will get what you need

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages