I googled and found this article but it didn’t work with phpBB.
Would you mind giving me any advice?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For it to work, the phpBB code would have to be looking for POSTed login credentials, which may not be the case. phpBB would need to specifically look for a post variable named user_name and user_pass which again may not be the case.
The example you are following is more a tutorial for using the POST method in HTTP from Java. If you want to see the results try it with the page they posted in the article located at http://www.1your.com/drupal/sample_login.php
As a suggestion, you could use something like Firebug to analyze the request/response HTTP transaction and from there you know what phpBB is expecting at the server side.