Description of the public platform developer documentation: [color #33 CCCC] when a common user sends a message to a public account, the server sends the XML packet of the POST message to the URL entered by the developer. The structure of the XML data packet for pushing messages is as follows. If the server fails to receive the response within five seconds, the connection will be disconnected and the request will be re-initiated. a total of three re-tries are performed on message deduplication. msgid is recommended for deduplication. Public platform developer documentation description:
[Color = #33 CCCC] when a common user sends a message to a public account, the server sends the XML packet of the POST message to the URL entered by the developer. The structure of the XML data packet for pushing messages is as follows.
If the server fails to receive the response within five seconds, the connection will be disconnected and the server will initiate a new request. a total of three retries will be made.
Msgid is recommended for message deduplication.
If the server cannot process and reply within five seconds, it can directly reply to an empty string. the server will not process the request and will not initiate a retry.
Text message
toUser
fromUser
1348831860
text
this is a test
1234567890123456
Parameter description
ToUserName developer id
FromUserName sender account (an OpenID)
CreateTime message creation time (integer)
MsgType text
Content text message Content
MsgId message id, 64-bit integer [/color]
This means that the developer accepts the xml data packet sent from the server POST and sends it back to the server in the same xml data format after processing.
When sending the data back to the server, the ToUserName and FromUserName remain unchanged? What is the impact of changing Content? is it sent to the sender's account?
The above is a detailed discussion of the simple issues of development. For more information, see other related articles on php Chinese network!