why does my web api client call not work in Raspberry Pi2 Iot
问题 I have this code: private const string route = "/api/Print"; public bool Update(string header, string tc) { bool success = false; using (var client = new HttpClient()) { client.BaseAddress = new Uri("my uri"); client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); var print = new Print { CompanyRef = new Guid(), Header = header, TC = tc }; var response = client.PutAsJsonAsync(route, print); } success =