PHP Demo Login
To implement the PHP simulator login website, you need to login to the website page:
Http://adc.jx139.com/initPageData.do?method=queryRightInfo&rightType=1
Manual transmission account password Verification code, PHP background to implement the simulation login!
Reply to discussion (solution)
Yes, I can.
It's simple.
Capture packet analysis inside the data transfer crawl cookie simulation commit
Seeing the version is so happy, I know the principle but not. My qq:21418592 can add I could pay 100 yuan under the meaning!
Now resolve the commit, but submit the past verification code always return expired!
Now this is the case, I use the program for the first time to use curl to crawl the verification code picture, manually fill in the verification code, the second commit the mock commit, the return is a verification code error.
I guess it's possible to run curl twice to get the other server, and the server might think it's two different users, so the CAPTCHA will never pass. Now this problem does not know how to solve, is to let multiple curl operation remote address, the other side think you are the same user as we use IE access. This should be able to pass the verification code. Do not know if you have a master moderator to point ideas or examples. Not very grateful!
Very simple:
1.curl simulation Gets the URL of the login page and the verification code picture, saves the cookie,
2. Export the acquired image data to the browser and display it on the browser.
3. The user submits a manual input verification code, and your server receives it and then submits it to this website using curl.
Note that to keep the session, the cookie cannot be lost