TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
Shefali Lahariya
NA
257
155.6k
unsupported media type using GET method in httpclient c#
Dec 15 2017 3:07 PM
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);
Reply
Answers (
6
)
Groupbox into popup window in C#
Datagridview two textbox auto complete view in gridview