Php simulated login implementation method. Php simulated login implementation method, here are two methods to simulate login to Renren. The specific instance code is as follows: (1) use snoopy to simulate php login implementation
Php simulated login implementation method. here are two methods to simulate login to Renren. The specific instance code is as follows:
(1) use snoopy to simulate login
Referer = 'http: // www.renren.com/'{}snoopy-> agent = "Mozilla/5.0 (Windows NT 6.1; rv: 22.0) Gecko/20100101 Firefox/22.0 "; $ submit_vars ['email '] = 'logon account'; $ submit_vars ['password'] = 'logon password'; $ url = 'http: // submit-> submit ($ url, $ submit_vars); $ snoopy-> fetch ("http://www.renren.com/"); // echo $ snoopy-> results; // www.phpernote.com
(2) simulate login using curl
Articles you may be interested in
- Summary of php post request simulation methods
- PHP asynchronous execution method, simulating multithreading
- Php ping command simulation method
- How to set automatic phpmyadmin login and cancel automatic login
- Php sends a get request.
- How to set automatic login for phpmyadmin
- Php sends the GET and POST requests separately.
- Php window platform simulates the checkdnsrr function to check whether the email actually exists
Php simulates login implementation methods. Here we list two methods to simulate login to Renren. The specific instance code is as follows: (1) use snoopy to simulate login...