Php implements simulated login, so you can try the service urgently !! PHP simulated logon
To implement PHP simulated website login, you need to log on to the website page as follows:
Http://adc.jx139.com/initPageData.do? Method = queryRightInfo & rightType = 1
Manually enter the account password verification code, and simulate logon in the PHP background!
Reply to discussion (solution)
Yes.
It's easy.
Packet capture analysis
I am so happy to see the version. I know how it works, but I won't. My QQ: 21418592 can I add it? I can pay 100 yuan!
Now the solution has been submitted, but the verification code always returns expired!
This is the case. After I capture the verification code image with curl for the first time, I manually enter the verification code and submit the verification code for the second time. the verification code error is returned ..
I guess it is possible to run curl twice to obtain the opposite server. the server may think that it is two different users, so the verification code will never pass. I don't know how to solve this problem, that is, let the curl operation remotely address multiple times. The other party thinks that you are the same user, just like we use IE for access. In this way, you can pass the verification code .. I don't know if there are any ideas or examples provided by masters .. Very grateful!
Simple:
1. curl simulates the url for obtaining the login page and verification code image, and saves the cookie,
2. output the obtained image data to the browser and display it on the browser.
3. the user submits the manually entered verification code. after receiving the verification code, your server submits it to the website using curl.
Note that you must keep the session and the cookie cannot be lost.