I am using curl to post some urlencoded content to a URL, and I want the content of the curl command to come from a pipe. Basically...
... | curl -s --data-urlencode '{\"text\":\"$PIPE_RESULT\"}' http://...
I thought $0 might work, but I get a invalid_payload error with the simple text of:
echo "http://www.example.com" | curl -s --data-urlencode '{"text\":\"$0\"}' https:/...