简体   繁体   中英

HTTP request to PHP page, trying to login

I want to develop a java application to make some processing on a web page, but this page requires a login first. so, I checked the HTML page of the login page, and have now the name of the username and pw fields, the method "post" and ready to make a post request. BUT, the action in the form="" so, I don't know what is the URL I have to request.

is there a solution, is it possible to get the after-login page?! and is it also possible to use the links inside that page to navigate and get more pages?? and if the this site is making a session to handle the use logged in or not, can I pretend to have that session and act like this site???

sorry for the long question.

如果表单目标为空,则表示表单已提交到同一页面。

The method="post" action="yourScriptToHandleTheLogin.php" part of the form tells the browser the name of the script that will verify the users credentials. That is where you do the checking in the database and update the session details to give them access. It can be the same file or you can have a different file that will redirect them back after they are verified.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM