Hi John,

Is there any documentation on the way values should be encoded?

With thanks.

-Corey


On Oct 15, 11:20 pm, John Kalucki <j...@twitter.com> wrote:
> There's at least one OAuth library out there that doesn't encode the comma
> correctly. Search back in this group for details.
>
> -John Kaluckihttp://twitter.com/jkalucki
> Twitter Inc.
>
> On Thu, Oct 14, 2010 at 6:40 PM, Corey Wallis
> <corey.wal...@flinders.edu.au>wrote:
>
>
>
> > Hi All,
>
> > I have working code that uses OAuth to connect to the Stream API and
> > filter using keywords. When I supply a single keyword the API works as
> > expected and tweets are returned. What is odd is that when I specify
> > multiple keywords, or keywords that include a # symbol I get a 401
> > UNAUTHORIZED error.
>
> > Has anyone seen this before and come up with a successful resolution?
>
> > I've captured the HTTP headers of both a successful and unsuccessful
> > call and I can't see anything that is different other than the list of
> > tracks contains multiple entries. Samples of the headers is below.
>
> > This works:
>
> > POST /1/statuses/filter.json HTTP/1.1
> > Authorization: OAuth oauth_token="###", oauth_consumer_key="###",
> > oauth_version="1.0", oauth_signature_method="HMAC-SHA1",
> > oauth_timestamp="1287106462", oauth_nonce="-1686656262164231601",
> > oauth_signature="###"
> > Content-Length: 13
> > Content-Type: application/x-www-form-urlencoded
> > Host: stream.twitter.com
> > Connection: Keep-Alive
> > User-Agent: Apache-HttpClient/4.0.1 (java 1.5)
> > Expect: 100-Continue
>
> > HTTP/1.1 100 Continue
>
> > track=twitter
>
> > This does not:
>
> > POST /1/statuses/filter.json HTTP/1.1
> > Authorization: OAuth oauth_token="###", oauth_consumer_key="###",
> > oauth_version="1.0", oauth_signature_method="HMAC-SHA1",
> > oauth_timestamp="1287105193", oauth_nonce="-3374947181315671264",
> > oauth_signature="###"
> > Content-Length: 20
> > Content-Type: application/x-www-form-urlencoded
> > Host: stream.twitter.com
> > Connection: Keep-Alive
> > User-Agent: Apache-HttpClient/4.0.1 (java 1.5)
> > Expect: 100-Continue
>
> > HTTP/1.1 100 Continue
>
> > track=twitter,lolcat
>
> > Any thoughts would be gratefully received.
>
> > With thanks.
>
> > -Corey
>
> > --
> > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > API updates via Twitter:http://twitter.com/twitterapi
> > Issues/Enhancements Tracker:
> >http://code.google.com/p/twitter-api/issues/list
> > Change your membership to this group:
> >http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to