401 when search term contains a space


#1

Hello…

I’m getting a 401 error when my search term has a space - works fine for a single word search.

my basestring looks like:
[blah blah] oauth_version=1.0&q=Find this&result_type=recent

Which is encoded as:
[blah blah] oauth_version%3D1.0%26q%3DFind%20this%26result_type%3Drecent

Spent so many days on this… any pointers / tips would be welcome…


#2

Try using Twurl - https://github.com/twitter/twurl

$ twurl /1.1/search/tweets.json?q=Find this&result_type=recent