Php simulated login implementation method _ PHP Tutorial-php Tutorial

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

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.