Yes, you are correct about the URI. I was creating a URL in Java
instead of a URI. The URI class has more support for encoding.
On Feb 27, 3:11 pm, Jason Toffaletti <
ja...@topsy.com> wrote:
> On Feb 27, 1:34 pm, Ed <
macker...@gmail.com> wrote:
>
> > Hi
>
> > I am getting 400 error when I search for multiple strings, i.e. a
> > phrase like "Barack Obama", in which I want to find all Tweets that
> > contain the exact phrase "Barack Obama". In other words I am
> > interested in only finding Tweets with the phrase "Barack Obama", not
> > ones with either "Barack" or "Obama".
>
> > It seems that adding escaped character double quotes around the
> > search phrase does not work from my Java code using the Otter Restful
> > API. I check the HTTP request string that I create the URL connect
> > with by cutting and pasting it directly from the Java output into a
> > browser and it works fine in the browser, but not in the URL Java
> > call ?.
>
> This is not something specific to Otter, it is just the way URIs must
> be encoded to be valid.
>