HttpClient Adding JSON Authorization Header
问题 I am running into an issue with authentication for the LogMeIn api. The authorization value is a JSON object. When running my code, I run into FormatException error. "A first chance exception of type 'System.FormatException' occurred in System.Net.Http.dll Additional information: The format of value '{"companyId":9999999,"psk":"o2ujoifjau3ijawfoij3lkas3l2"}' is invalid." var client = new HttpClient(); client.BaseAddress = new Uri("http://secure.logmein.com/public-api/v1/"); client