I\'m receiving the error:
System.UriFormatException: Invalid URI: The Uri string is too long.
The problem is with this line:
If your request is larger use multipart/form-data instead:
using (var content = new MultipartFormDataContent())
{
foreach (var keyValuePair in data)
{
content.Add(new StringContent(keyValuePair.Value), keyValuePair.Key);
}
// send POST request
using (var client = new HttpClient())
{
return client.PostAsync(identifier.IsirUrl + uri, content).GetAwaiter().GetResult();
}
}