Login into a website and get html from a page

前端 未结 2 1418
情深已故
情深已故 2020-12-20 08:58

I\'m a little bit confused, I\'ve read about a lot about my problem but without finding an answer. I have to login into a website and fetch some HTML from a page reachable o

2条回答
  •  一向
    一向 (楼主)
    2020-12-20 09:42

    The sessions are created on the server. Once you hit the url (in this case /j_security_check?j_username=username&j_password=pass), your server should validate the credentials and then create the session. You can only use javascript to manage that session, probably using cookies, and not create a session.

提交回复
热议问题