Horje
c# getting response content from post Code Example
c# getting response content from post
async Task<string> GetResponseString(string text)
{
    var httpClient = new HttpClient();

    var parameters = new Dictionary<string, string>();
    parameters["text"] = text;

    var response = await httpClient.PostAsync(BaseUri, new FormUrlEncodedContent(parameters));
    var contents = await response.Content.ReadAsStringAsync();

    return contents;
}




Csharp

Related
js if empty then 0 Code Example js if empty then 0 Code Example
Adding values to a dictionary via inline initialization of its container Code Example Adding values to a dictionary via inline initialization of its container Code Example
Create Generic Method Code Example Create Generic Method Code Example
letter to number converter c# Code Example letter to number converter c# Code Example
c# loop Code Example c# loop Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10