private string MakePostRequest(string url, IDictionary <string, string> inputFields) { try { string requestContents = string.Empty; if (inputFields != null) { requestContents = string.Join("&", ( from i in inputFields select string.Format("{0}={1}", i.Key, HttpUtility.UrlEncode(i.Value))).ToArray <string>()); } var request = new FlurlRequest(url) .SetQueryParams(inputFields, Flurl.NullValueHandling.Remove); var response = request .PostAsync(null) .ReceiveString() .Result; return(response); } catch (FlurlHttpException ex) { return(string.Empty); } }