For a time when interfaces are flooding, it is necessary for a programmer to understand and handle interfaces!
In the docking when the other sent over the document, you need to look carefully, there are questions such as encryption, etc., need to be specially proposed to and the other side handover;
The first step, in the docking interface, you should get the server side of the key and partner, the equivalent of the user and password meaning, in the configuration file is configured, such as:
The second step, the encryption generated sign, generally is the encryption specifically extracted as a method, note that it is necessary to follow the encryption method specified by the server to encrypt, as for the MD5 or other encryption, according to rules;
The third step, stitching the URL, with the request parameters in the middle with & interval, this is too simple, not an example;
The fourth step is to send the HTTP request and return the response string according to the stitched URL;
The last step is to handle the data in response to XML or other formats.
C # processing and docking HTTP interface requests