Our client is failing on one of our stations and is having issues connecting, so I look up the code and I see this:
var request = new HttpRequestMessage(HttpMethod.Post, "rpcapi")
{
Content = new StringContent(json, Encoding.UTF8, "application/json")
};
var options = isFileDownload
? HttpCompletionOption.ResponseHeadersRead
: HttpCompletionOption.ResponseContentRead;
return await _client.SendAsync(request, options, cancellationToken);
Now what confuses me is this line var request = new HttpRequestMessage(HttpMethod.Post, "rpcapi")
because I know the address to our backend is not just "rpcapi", but a rather long address.
So how does this work (mind you the same code is working on other stations)? Does the program somehow know what to switch that "rpcapi" for and if so how and where can I find that code?