Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
MonthlyLeaders
ASK A QUESTION
Forumguidelines
Arya raj
1.9k
57
11.4k
how to pass a query parameter in getasyn method in a dynamic
Jul 13 2019 4:31 AM
public async Task<HttpResponseMessage> QuickSearch()
{
//Debugger.Launch();
try
{
using (HttpClient client = new HttpClient())
{
client.DefaultRequestHeaders.Accept.Clear();
HttpResponseMessage response = await client.GetAsync("http://localhost:8080/document/quicksearch/");
if (response.IsSuccessStatusCode)
{
Console.Write("Success");
}
else
{
Console.Write("Failure");
}
return response;
}
}
catch (Exception e)
{
throw e;
}
Reply
Answers (
1
)
the latest download links
dynamic attributes and values in httpclient getasyn