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!