The site has the following form (there is no possibility to change the form):

<form method="post" action="/login.pl" enctype="multipart/form-data" name="login_form"> <table> <tr> <td">Логин:</td> <td><input type="text" name="user" maxlength="32" /></td> </tr> <tr> <td">Пароль:</td> <td><input type="password" name="password" maxlength="32" /></td> </tr> <tr> <td /> <td><input type="submit" name="submit" value="Войти" /></td> </tr> </table> <input type="hidden" name="return" value="//site.ru/index.pl"/> </form> 

Using HttpURLConnection, I send multipartr POST request. I control sending the request using WireShark. Not one, but three requests are sent. As a result of authorization does not occur. If, on the other hand, I make a request via port 80 via telnet, then everything is fine, I receive, for example, Cookie: SID = 8908925884138574, which is what I need.

Closed due to the fact that the essence of the question is not clear to the participants by Vladyslav Matviienko , aleksandr barakin , Regent , Mirdin , Pavel Mayorov Jun 16 '15 at 8:08 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    code where? or multipart sent by the power of thought? - Vladyslav Matviienko

0