If you haven't already done so, please
go through Quick Start lessons.
The most important one for you now is Client Lesson 1.
Also, for your specific requirement, take a look at the "QuickStart\ClientUpload" and "QuickStart\BrowserUpload" projects from the RTC SDK package. One shows you how to upload files to a WebServer, the other shows you how to send any kind of data to a RTC Server.
If you are unsure about how to set HTTP header variables, here is the code which would set all the request header variables you have listed in your post. You can either prepare request headers before the Post method from the main thread, or from the OnBeginRequest event of the TRtcDataRequest component like here:
procedure TMyForm.MyDataRequestBeginRequest(Sender:TRtcConnection);
var cli:TRtcDataClient;
begin
cli:=TRtcDataClient(Sender);
cli.Request.Method:='POST';
cli.Request.FileName:='/tclrega.exe';
cli.Request['User-Agent']:='Java/1.6.0_18';
cli.Request['Host']:='homematic.w';
cli.Request['Accept']:='text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2';
cli.Request['Content-type']:='application/x-www-form-urlencoded';
// Now you can either manually set "Request.ContentLength" and
// then send the content out from OnDataSent events, or ...
// if the content is relatively short, you can simply write the complete
// content using the Write() method here without setting ContentLength:
cli.Write(...);
end;
I hope that's what you were looking for. If you need more info, please let me know.
Best Regards,
Danijel Tkalcec