This discussion is archived
0 Replies Latest reply: Jul 2, 2011 2:21 AM by 872834 RSS

yahoo messenger login problem

872834 Newbie
Currently Being Moderated
i am using yahoo messenger SDK to create a yahoo messenger client for mobile platform. when i try to login using an httpclient it returns the same URL as a result which was posted

here is the code
String url = YahooMessengerConstants.partTokenGetURL + "?" +

// Perform the actual call to the server

String resultString =

// Divide each of the lines into its own string, separating by '\n'
String[] nameValuePairs = StringUtils.tokenize(resultString, '\n', false);

// The request token is the first line that is returned. At this point,
// quickly remove the first 13 characters: the "RequestToken=" portion of
// the string. We didn't use the StringUtils function because it is too slow
// on a mobile platform for such a large string.
int length=nameValuePairs.length;
for (int i=0;i<length;i++)
String rt = nameValuePairs[0].substring(13, nameValuePairs[0].length());

07-02 13:10:00.588: INFO/URL(909):

the API returns

the same
can some one help?

i am stuck here


  • Correct Answers - 10 points
  • Helpful Answers - 5 points