At last...success! A buddy of mine turned me onto Tamper Data, which lead me
to the right combination. Here it is for others that might find this
useful:
String strU = StringUtils.substringBetween(_strGetRspBody,
"<input type=\"hidden\" name=\".u\" value=\"",
"\">");
String strChallenge =
StringUtils.substringBetween(_strGetRspBody,
"<input type=\"hidden\" name=\".challenge\"
value=\"", "\">");
String strDone = StringUtils.substringBetween(_strGetRspBody,
"<input type=\"hidden\" name=\".done\"
value=\"", "\">");
String strPD = StringUtils.substringBetween(_strGetRspBody,
"<input type=\"hidden\" name=\".pd\" value=\"",
"\">");
NameValuePair[] nvPairs = new NameValuePair[26];
nvPairs[0] = new NameValuePair("login", user);
nvPairs[1] = new NameValuePair("passwd", password);
nvPairs[2] = new NameValuePair(".tries", "1");
nvPairs[3] = new NameValuePair(".src", "flickr");
nvPairs[4] = new NameValuePair(".md5", "");
nvPairs[5] = new NameValuePair(".hash", "");
nvPairs[6] = new NameValuePair(".js", "");
nvPairs[7] = new NameValuePair(".last", "");
nvPairs[8] = new NameValuePair("promo", "");
nvPairs[9] = new NameValuePair(".intl", "us");
nvPairs[10] = new NameValuePair(".bypass", "");
nvPairs[11] = new NameValuePair(".partner", "");
nvPairs[12] = new NameValuePair(".u", strU);
nvPairs[13] = new NameValuePair(".v", "0");
nvPairs[14] = new NameValuePair(".challenge", strChallenge);
nvPairs[15] = new NameValuePair(".yplus", "");
nvPairs[16] = new NameValuePair(".emailCode", "");
nvPairs[17] = new NameValuePair("pkg", "");
nvPairs[18] = new NameValuePair("stepid", "");
nvPairs[19] = new NameValuePair(".ev", "");
nvPairs[20] = new NameValuePair("hasMsgr", "0");
nvPairs[21] = new NameValuePair(".chkP", "Y");
nvPairs[22] = new NameValuePair(".done", strDone);
nvPairs[23] = new NameValuePair(".pd", strPD);
nvPairs[24] = new NameValuePair(".save", "Sign+In");
nvPairs[25] = new NameValuePair(".persistent", "y");
--
View this message in context:
http://old.nabble.com/Getting-past-authentication-to-Flickr-Yahoo-tp28440624p28481073.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]