As of yesterday (Jan 10 2012), when I have more than one keyword, separated by commas, I immediately get a 401 Unauthorized error. If I reduce the track to one keyword, I receive the stream with no problem.
For example, if I POST:
track=steam,test
I get a 401 error trying to open the stream.
But, if I POST:
track=steam
The stream works.
Has something changed? I can't seem to find anything that can explain why this is happening. The code I'm using has been working perfectly until yesterday.
Replies
Well, I finally I figured out how to correct the situation. I had to URL encode the commas between the keywords. So, if I use the following:
track=Steam%2CTest
The request will authenticate and start streaming.
Don't ask me why this started to be a problem yesterday. It has been working just fine with the commas unencoded for months. Something must have been changed yesterday in the way authentication is done.
There have been some corrections and refinements to the Streaming API, improving its implementation of HTTP -- in some areas where it may have been more liberal with the specification in the past, you'll find it more compliant and strict now.
Okay, thanks for the explanation.