문제

While I am trying to get a html page from server, I would like to add some config to the server (eg. login with post method).

How to let the server knows that I am the same user and access the other pages?

Eg.

  1. login wordpress

  2. get private page of wordpress

(java coding might not needed, I think I need to know the idea.)

도움이 되었습니까?

해결책

Finally I used the Java HttpClient Interface AuthenticationStrategy

It provides getChallenges to send and get the section data need. And select to send the related data to act as sections, cookies and so on.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top