Skip to content

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

@jywarren

Description

@jywarren

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions