I have read about creating folder in SkyDrive with Live SDK here (the don't mention about 'boundary' parameter there), here is my code:
WebRequest request = WebRequest.Create("https://apis.live.net/v5.0/folder.77e1a950546be643.77E1A950546BE643!202/files/");
request.Method = "POST";
string postData = "{name: \"My example folder\"}";
byte[] byteArray = Encoding.UTF8.GetBytes(postData);
request.Headers.Add("Authorization", "Bearer " + access_token);
request.ContentType = "application/json";
request.ContentLength = byteArray.Length;
And not sure whay I get a 400 returned:
{ "error": { "code": "request_header_invalid", "message": "The provided header 'Content-Type' is missing a required parameter 'boundary'." } }
What I am doing wrong? Do i missing anything?
Thanks for your time!