Home >Backend Development >PHP Tutorial >Detailed introduction to web protocols

Detailed introduction to web protocols

伊谢尔伦
伊谢尔伦Original
2017-06-11 09:32:501436browse

WeChat web protocol analysis (WeChat web version wx2.qq.com) 1. Open the homepage, assign a random uuid, 2. Obtain the QR code image based on the uuid. 3. Scan the picture on the WeChat client and confirm the login on the client. 4. The browser keeps calling an interface. If the login is returned successfully, the login interface is called. 5. At this time, the contact list can be obtained and messages can be sent. Then continuously call the synchronization interface. 6. If the synchronization interface returns, you can obtain new messages and then continue to call the synchronization interface. Source code address: github.com/biezhi/wechat-robot execution process +---------------+ +---------------+ +-- -------------+ &nbs

1. Detailed explanation of WeChat protocol

Detailed introduction to web protocols

##Introduction: 1. Open the homepage and assign a random uuid. 2. Get the QR code image based on the uuid. 3. Scan the picture on the WeChat client and confirm the login on the client. 4. The browser keeps calling an interface. If the login is successful, the login interface is called. 5. At this time, the contact list can be obtained and messages can be sent. Then continuously call the synchronization interface. 6. If the synchronization interface returns, you can obtain new messages and then continue to call the synchronization interface.

2. Basic knowledge of php (3) - Session usage

Introduction: Basic knowledge of php (3) - Session usage Basic knowledge of PHP - Session usage sample code download page http://xieye.iteye.com/blog/1336095 (in the attachment) Session refers to the server's identification of various connections by the same user within a period of time. There are many session principles, but in fact they are mainly cookies. Cookie principle: The web protocol stipulates that when the server returns a request, a small part of the data can be stored in the browser client. The browser

3. PHP Basics (4) - Cookie usage

Introduction: PHP basic knowledge (4)-Cookie usage Basic knowledge of PHP - Cookie usage sample code download page http://xieye.iteye.com/blog/1336095 (in the attachment) Simple definition of cookie: additional data transmitted when the browser sends a request to the server. Cookie principle: The web protocol stipulates that when the server returns a request, a small part of the data can be stored in the browser client, and the browser will request information from the same domain name server next time

4. PHP basic knowledge (4) - cookie usage

##Introduction: PHP basic knowledge (4) - cookie usage PHP basic knowledge - cookie usage sample code download page http://xieye .iteye.com/blog/1336095 (in the attachment) Simple definition of cookie: additional data sent when the browser sends a request to the server. Cookie principle: The web protocol stipulates that when the server returns a request, a small part of the data can be stored in the browser client. The next time the browser requests information from the same domain name server

##5.

php Basic Knowledge (3) - Session Usage

## Introduction: PHP Basic Knowledge (3) - Session Usage php Basic Knowledge - Session Usage Sample Code Download Page http:// xieye.iteye.com/blog/1336095 (in the attachment) Session refers to the server’s identification of various connections by the same user within a period of time. There are many session principles, but in fact they are mainly cookies. Cookie principle: The web protocol stipulates that when the server returns a request, a small part of the data can be stored in the browser client, and the browser will download the following

The above is the detailed content of Detailed introduction to web protocols. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn