TMS Software Blog: Diving deeper: Cloudbase REST, Part 2/3: Extended
Summary
A major part of TMS FNC Core is the ability to create and execute REST requests. Some services are accepting a username and password (or client ID and secret) and sending them in plain text means basically anyone can compromise your account. In a simple form this is JSON content, which can just be a string concatenation added to the PostData property of the request. When the request is prepared, it will concatenate all relevant pieces of information required for the PostData body through the PostDataBuilder. • Connection with the host is made, and prepared to send content through a multi-part upload POST resource • The post-data is send to the server alongside the file (UploadFile) • The request monitors file progress and eventually triggers the callback When the callback is triggered, we get the following result.