![]() |
PST SDK
5.2.0.0-0eac0f6
|
This example can be found in Development\examples\cpp\restserver\restserver.cpp
.
This example shows how to enable the REST server using the PST SDK. The REST server enables network-based access to the PST Tracker using the HTTP protocol. GET and POST requests can be made to the server to send and receive data and change parameters. The REST interface offers a programming language independent interface to the PST Tracker. Besides accessing the REST server directly using a browser, a networking library like Curl can be used to interface with the server programatically.
When compiling and running this example, please make sure that the required dependencies can be found by the executable (e.g. by copying the Development\Redist
directory into the build directory). On Windows, the Visual Studio project files are configured to use a relative path to the Development\Redist
directory as the working directory. If the examples have been copied, please ensure the working directory is still valid.