Streaming token not recognized

I have created a token in my settings screen and now I’m trying to post a value to the stream with curl. Unfortunately I get a 404 response stating that “streamtoken not registered or valid”.

My command is: curl -s -v -H “plotly-streamtoken: x17vh1xs4t” -d @data http://stream.plot.ly

And the HTTP transaction:

POST / HTTP/1.1
Host: stream.plot.ly
User-Agent: curl/7.47.1
Accept: /
plotly-streamtoken: x17vh1xs4t
Content-Length: 18
Content-Type: application/x-www-form-urlencoded

} [18 bytes data]

  • upload completely sent off: 18 out of 18 bytes
    < HTTP/1.1 404 Not Found
    < Content-Type: text/plain
    < Date: Sun, 05 Jun 2016 16:24:17 GMT
    < Connection: keep-alive
    < Transfer-Encoding: chunked
    <
    { [46 bytes data]

What could be the problem?