Home > Article > Backend Development > Program PHP development uses snoopy to simulate logging in to other websites with verification codes.
Realization requirements: Get the session ID and verification code image of station A through snoopy, and display the login form on your website. After submission, snoopy submits the input information to station A to log in, and obtains the information inside for analysis. (PS: ^_^Good php development learning exchange group: 256271784, verification: cxy, if you are interested, you can join and discuss together) Get verification code and sessionid:
Submit the form information to station A and display the post-login page:
Summary of tips: The obtained image binary code can be directly used in the src attribute of img through base64 encoding |