open-eio / opk-phant-cli

Pipe database driver that sends data to a Phant service like http://data.sparkfun.com
0 stars 2 forks source link

Won't work when piped a string like "Hello world." #1

Open jywarren opened 9 years ago

jywarren commented 9 years ago

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.

jywarren commented 9 years ago

Start of an attempted fix in https://github.com/openpipekit/opk-phant-cli/pull/2

jywarren commented 9 years ago

@rjsteinert - so does v0.4.0 solve this?