How to send multipart/form-data with Delphi

Recently, I had problems to send data using multipart/form-data with Delphi. In conversation with the great Fernando Rizzato, he suggested that I take a look at the THTTPClient component. Using the component, it was all very simple. See the code below, where I send a JSON and a PDF in a single request: