Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Answers
unsupported media type using GET method in httpclient c#
Shefali Lahariya
7y
243
1
Reply
using code
string url = "http://localhost:8080/XYZ/API/JCR/ShowAllGroups" + "/" + jioMeetConstant.Uid + "/" + jioMeetConstant.KEY;
var client = new System.Net.Http.HttpClient();
///Adding OAuth token
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", jioMeetConstant.Accesstoken);
HttpResponseMessage aResp = await client.GetAsync(url);
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
Groupbox into popup window in C#
Datagridview two textbox auto complete view in gridview