none
请教:用C#,RSET,PUT更新SkyDrive文件的属性,怎么操作? RRS feed

  • 问题

  •    var d = new Dictionary<string, object>();
       d.Add("is_embeddable", "true");
       WebClient WC = new WebClient();
       //WC.Headers.Add("Content-Type", "application/json");
       JavaScriptSerializer JSS = new JavaScriptSerializer();
       string ss = JSS.Serialize(d);
       //ss = "Authorization: Bearer "+strAccessToken +"\r\n"+"Content-Type: application/json";
       WC.UploadString(@"https://apis.live.net/v5.0/file.547671336b0c9bbf.547671336B0C9BBF!191?access_token=" + strAccessToken, "PUT",ss);

    报错,403,被禁止,请高手指点,我要打开文件的嵌入功能

    2012年11月19日 16:05

答案

全部回复