I can't get this to work when I pipe a string "Hello world." to it, like:
echo "Hello world!" | ./push --url data.sparkfun.com --public_key lzELagraWDiMMRra0V6Q --private_key XXXXXXXXXX --field_name misc
I get a 400 error, although the following URL (generated by the same code) works when pasted into the browser:
http://data.sparkfun.com/input/lzELagraWDiMMRra0V6Q?private_key=XXXXXXXXXXX&misc=Hello world.