.NET Core forward a local API form-data post request to remote API
I have an AJAX form which post a form-data to a local API url: /api/document . It contains a file and a custom Id. We simply want to take the exact received Request and forward it to a remote API at example.com:8000/document/upload . Is there a simple way of achieve this "forward" (or proxy?) of the Request to a remote API using Asp.NET Core? Below we had the idea to simply use Web API Http client to get the request and then resend it (by doing so we want to be able to for example append a private api key from the backend ), but it seems not to work properly, the PostAsync doesn't accept the