문제

How to pass below content-type in http client using C# ?

multipart/alternative;  
boundary=56CC414C-FDE6-48DB-846C-6A1CEBCD7805;  
type=\"text/plain\"  
도움이 되었습니까?

해결책

Something like this should work,

var multipartContent = new MultipartContent("alternative","56CC414C-FDE6-48DB-846C-6A1CEBCD7805");
multipartContent.Add(new StringContent("Here is some content"));

var httpClient = new HttpClient();
httpClient.PostAsync("http://example.org/",multipartContent);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top