First, the origin of the problem
When using the URL and token to enable the micro-credit public platform to develop the mode message interface, we will encounter the following three kinds of situations
1. Your server does not respond correctly to token authentication, please read the Message Interface Usage Guide
So look back and check that the configuration is correct. If you are sure that the configuration is not a problem, follow the method below to check
2. Request URL Timeout
Your server is abroad, or the server speed does not give force, generally try more than a few times can be. If this is often the case, you need to consider replacing the server
3. Successful Submission
Congratulations, the configuration was successful.
Let's explain the first reason and the solution.
Second, the problem analysis
The first thing to understand is what is the URL and token, where the URL is placed in the interface program URL, this site is generally your own server or space address. You own a directory in this space already has the interface program, you know this interface program on the Internet access address is what. and token is a token, a digital or alphabetic string that is used for authentication when a micro-server communicates with your server. Prevent illegal data from messing around.
Then you need to understand why the development model uses URLs and token, and URLs are used to communicate with your server for the purpose of automatic recovery in development mode. To implement this communication, you must have a corresponding program to complete this function for you, and this program must have been developed and placed under the URL path, when you fill out the URL and token, the micro-trust server and your server under the program to conduct a certification process, Authentication by indicating that the server is yours and that the program is not problematic. Otherwise, you fill in a non-existent URL or the URL below the corresponding interface function, it is not pass.
You can start with the following test
url:http://discuz.comli.com/weixin/
Token:pondbay
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/
Iii. Problem-solving
1. Technical Analysis method
This time we added a way to track HTTP records in our code to see if our own servers had received a request for no response, or if the micro-mail had not been requested at all.
By invoking the system environment variable $_server, you can view information about the HTTP request, two of which are important