Hello!

I can not save for further use of cookies from the site work66.ru.

Here, in fact, written code:

Response res = Jsoup .connect("http://www.rabota66.ru/login") .data("LoginForm[login]", login, "LoginForm[password]", password) .method(Method.POST) .execute(); Map<String, String> loginCookies = res.cookies(); 
  • Specify, you can not save Map<Strinbg, String> anywhere? Or res.cookies() not give the expected result? In the code above, there are no errors. - Yura Ivanov
  • res.cookies () gives me only those cookies that I can get from the site without authorization. - ath01 pm
  • @ ath01, there are two more parameters to be passed. Those. Your login, apparently, does not pass. Look in the browser in firebug on the Network tab, what data is transmitted, and try to achieve compliance in jsoup. - Yura Ivanov

0