Php implements simulated login, so you can try the service urgently !!

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.