Hey guys, i did the following thing and it worked like a charm!!!
Remove these lines of code:
Cookie cookie=new Cookie("Cookie",new String(Base64.encodeBase64(ycookie.getBytes())));
response.addCookie(cookie);
As u see we have to send the cookie to the Yahoo! so we have to insert it in the HTTP Header just before calling the executeMethod() method.
use this line of code instead:
method.setRequestHeader("Cookie", ycookie);
Hope this helps.
Cheers,
Vikas