Post from anywhere!
Now in public beta. Tell your friends - it's free and always will be.
Put the request into a link.
Open the link.
Get back whatever the other side said.
2Post.org: Post from anywhere!
Put the address and the body in a link and fetch it. This POSTs
{"hello":"from-a-link"} to https://httpbun.com/anything, which answers
with a description of the request it got, and gives you that answer,
status code and headers included:
https://www.2post.org/relay?u=https://httpbun.com/anything&body=%7B%22hello%22%3A%22from-a-link%22%7D
With curl, which does the encoding for you:
curl -G https://www.2post.org/relay --data-urlencode 'u=https://httpbun.com/anything' --data-urlencode 'body={"hello":"from-a-link"}'
Something other than a POST, or with headers of your own:
https://www.2post.org/relay?u=https://httpbun.com/anything/7&method=DELETE
https://www.2post.org/relay?u=https://httpbun.com/anything/7&method=PUT&body=name%3Dnew&headers=%7B%22Authorization%22%3A%22Bearer%20abc%22%7D
headers is a JSON object, here {"Authorization":"Bearer abc"}. A body
that is JSON goes out as application/json, a=1&b=2 as a form, anything
else as text; content_type=... says otherwise. Add response=json to
get the answer wrapped in an object with "status", "headers" and
"body". http and https only. Redirects are followed. No key, no
account.
Your link:
https://www.2post.org/relay?u=https://httpbun.com/anything&body=%7B%22hello%22%3A%22from-a-link%22%7D
Same thing as curl:
curl -G https://www.2post.org/relay --data-urlencode 'u=https://httpbun.com/anything' --data-urlencode 'body={"hello":"from-a-link"}'