Recently in the process of solving a problem, want to take advantage of the existing SMS interface, but from the early project of the SMS function layer stripped out of actually not their own imagined port four elements (just joined the work, laughed at), but a basic C language written EXE file, but also fixed deployment on the specific server, In each program call process, will be on this basis to check the IP address, that is, five elements, security can be compared to the simple materializing on the account password more insurance, and IIP address detection restrictions in the region will let the security level higher. Do not know whether other enterprises are the same way?
This assumes that the Message.exe file is a specified SMS interface file that needs to be called (it cannot be executed alone, that is, the parameter is missing) , and the externally deployed link address is http:\\www.xxx18800000000\message . Provide two ways of use ;
Using Cmd.exe
The overall meaning is to assemble, invoke, and release in a DOS environment.
You can simply define a variable of a string type and assign the network path of the Message.exe file to that variable, then start the Cmd.exe file by compiling the program, and then import the assembled string into dos in the form of a command, and run the release.
2. Use the deployed link address
By invoking the browser process to run the link address, but for the link operation still need to fragment completion, that is, the receiver pays contact's number and send content two elements must be variable, you can pass through the interface of the parameters, and then assemble the link again, then the assembly link through the browser process open, close the process!
About encapsulation of executable SMS send file call complete implementation SMS trigger send