Making a thief ...LOGIN

Making a thief program through cURL

WeChat Weibo official account, QQ official account, maps and many third-party functions are provided to developers in the form of HTTP API (application).

If you only want to be able to make simple WeChat public accounts, QQ public accounts and other small applications, you don’t want to learn PHP in depth. After studying this chapter, you can fully master the required knowledge on the WeChat public account server.

How to request third-party APIs such as WeChat and Maps?

You need to use cURL at this time. The Chinese translation of cURL is called a URL-based function library. Its main function is: use related functions to simulate protocol requests.

For example:

  1. Simulate a form to send data to a certain address
  2. Simulate a form to complete user login without verification code
  3. Upload A file to the remote server
  4. Requests certain functions provided by the remote server
    ... ...

curl supports dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtmp, rtsp, smtp, smtps, telnet and tftp protocols.
curl also supports HTTPS authentication, HTTP POST, HTTP PPUT, FTP upload (this can also be completed through PHP's FTP extension), HTTP form-based upload, proxy, cookies and username + password authentication.

In the process of using it, if we don’t have cURL foundation, we don’t know how to develop WeChat public accounts.

In actual work, the most commonly used protocols in cURL are the get and post requests in the http protocol. Other protocols and request methods are used relatively rarely. Of course, it is also used in specific applications.

Please ensure that you have enabled the cURL module before development. The opening method is the same as the opening method in the chapter "PHP Image Processing" mentioned before. The name of the opened module is: php_curl.dll.

See the picture below, which means your curl module is successfully opened:

Next Section
submitReset Code
ChapterCourseware