HttpURLConnection connection = (new Connection(urlString)).connection;
connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2");
It is crucial to change the user-agent because the old user agent is on Yahoo's stop-list.