Detailed Introduction to web protocols

Source: Internet
Author: User
Tags php basics
Web protocol analysis (web version wx2.qq.com) 1. open the home page and assign a random uuid. 2. obtain the QR code image based on the uuid. 3. the client scans the image and confirms logon on the client. 4. the browser keeps calling an interface. if logon is successful, the interface is called. 5. You can obtain the contact list and send messages. Then, call the synchronous interface continuously. 6. if the synchronous interface returns a message, you can obtain the new message and continue to call the synchronous interface. Source code address: github. combiezh... web protocol analysis (web version wx2.qq.com) 1. open the home page and assign a random uuid. 2. obtain the QR code image based on the uuid. 3. the client scans the image and confirms logon on the client. 4. the browser keeps calling an interface. if logon is successful, the interface is called. 5. You can obtain the contact list and send messages. Then, call the synchronous interface continuously. 6. if the synchronous interface returns a message, you can obtain the new message and continue to call the synchronous interface. Source code address: github.com/biezhi/wechat-robotexecution process + ---------------- ++ --------------- + & nbs

1. protocol details

Introduction: 1. open the home page and assign a random uuid. 2. obtain the QR code image based on the uuid. 3. the client scans the image and confirms logon on the client. 4. the browser keeps calling an interface. if logon is successful, the interface is called. 5. You can obtain the contact list and send messages. Then, call the synchronous interface continuously. 6. if the synchronous interface returns a message, you can obtain the new message and continue to call the synchronous interface.

2. basic php knowledge (3)-session usage

Introduction: php Basics (3)-Session use php Basics-Session use sample code download page http://xieye.iteye.com/blog/1336095 (in Attachment) session refers: the server identifies various connections of the same user over a period of time. There are many session principles, but they are actually mainly cookies. Cookie Principle: The web protocol stipulates that a small amount of data can be stored on the browser client when the server returns a request.

3. basic php knowledge (4)-cookie usage

Introduction: php Basics (4)-cookies use php Basics-cookies use sample code download pages http://xieye.iteye.com/blog/1336095 (in Attachment) cookies simple definition: additional data sent when the browser sends a request to the server. Cookie Principle: The web protocol stipulates that a small amount of data can be stored in the browser client when the server returns a request, and the browser will request information from the same domain name server next time.

4. basic php knowledge (4)-cookie usage

Introduction: php Basics (4)-cookies use php Basics-cookies use sample code download pages http://xieye.iteye.com/blog/1336095 (in Attachment) cookies simple definition: 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 amount of data can be stored in the browser client.

5. basic php knowledge (3)-session usage

Introduction: php Basics (3)-Session use php Basics-Session use sample code download page http://xieye.iteye.com/blog/1336095 (in Attachment) session refers: the server identifies various connections of the same user over a period of time. There are many session principles, but they are actually mainly cookies. Cookie Principle: The web protocol specifies that a small amount of data can be stored on the browser client when the server returns a request.

The above is a detailed introduction to the web protocol. For more information, see other related articles in the first PHP community!

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.