Here is what it generated:
curl --request ‘POST’ ‘https://stream.twitter.com/1.1/statuses/filter.json’ --data ‘track=twitter’ --header ‘Authorization: OAuth oauth_consumer_key=" TcrdUlDdg8id1ZYjdXg ", oauth_nonce=“27”, oauth_signature=“rj3pZolYkKeCxdyhYriZqgouGKo%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1429896973”, oauth_token=“50180715-3F7yZmwBLJouO3fa6avhW0AJG0d7Y9bfMpRWYQEkQ”, oauth_version=“1.0”’ --verbose
Here is what it returned:
- SSL certificate verify ok.
POST /1.1/statuses/filter.json HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: stream.twitter.com
Accept: /
Authorization: OAuth oauth_consumer_key=" TcrdUlDdg8id1ZYjdXg ", oauth_nonce=“27”, oauth_signature=“rj3pZolYkKeCxdyhYriZqgouGKo%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1429896973”, oauth_token=“50180715-3F7yZmwBLJouO3fa6avhW0AJG0d7Y9bfMpRWYQEkQ”, oauth_version=“1.0”
Content-Length: 13
Content-Type: application/x-www-form-urlencoded
track=twitterHTTP/1.1 401 Authorization Required
< cache-control: must-revalidate,no-cache,no-store
< connection: close
< content-length: 266
< content-type: text/html
< date: Fri, 24 Apr 2015 17:56:13 GMT
< server: tsa
< www-authenticate: OAuth realm=“Firehose”
< x-connection-hash: b39d590e84763daef7dd58ac25493e02
\n\n\nError 401 Unauthorized
HTTP ERROR: 401
Problem accessing '/1.1/statuses/filter.json'. Reason:
Unauthorized
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):