webdav

Best way to access Exchange using PHP?

感情迁移 提交于 2019-12-28 02:29:11
问题 I'm writing a CMS application in PHP and one of the requirements is that it must be able to interface with the customer's Exchange server. I've written up this functionality a few times before and have always used WebDAV to do it, but now I'm leaning away from that. I will be running the site on IIS OR Apache (no preference) on Windows server 2008. A few things I would need to do include adding contacts to a given user's address book, sending emails as a given user and running reports on

使用WebDAV实现Office文档在线编辑

↘锁芯ラ 提交于 2019-12-26 13:26:09
Office的文档处理能力是非常强大的,但是它是本地资源,在Office Web App尚未成熟前,仍需要使用本地能力来进行文档编辑,可是现代的系统的主流却是B/S,所以在B/S中调用本地的Office编辑的能力就非常重要。 目前还说,将Office编辑的能力与B/S结合起来的方法主流的方案有三种: DsoFarmer OCX嵌入网页在线编辑方案: 在很多年前微软发布了一段C++开发源代码的OCX控件 DsoFarmer ,可以将嵌入到网页上使用JAVASCRIPT进行交互,该控件可以使用本地的OFFICE能力实现在线的交互。该方案被众多OA厂商采用,我现在开发的OA就是使用该方案进行Office文档的在线处理。 使用Office Web App实现在线编辑方案: 该方案是从2011 SharePoint中自带的一种方式,后经过微软改良后做为单独的服务Office Web App来使用,它可以与微软的产品,SharePoint,OneDriver,Exchange或第三方协同工作,但是经过实践证实,如果需要使用访方案让自己第三方系统拥有在线编辑Office的能力,需要安装SharePoint2013及以上版本,另外需要独立的服务器,因为OWA是不能和其它第三方系统使用同一台服务器的。 使用WebDAV编辑方案: 该方案实际是不是在线编辑,而是通过WebDAV协议进行交互

WebDav And Exchange2007 HTTP1.1 404 Ressource not Found!

99封情书 提交于 2019-12-25 04:35:11
问题 i have Exchange2007. and i am using the url: "https://exchange2007.exchange.server.com/Exchange/username/calendar"; 'calendar', or 'mailbox'( in your language! example, "boite de reception" in french or "calendário" in portuguese) with that url that i'm using i can list my ressources, but can't send a mail or write an appointement! why?!? See that i get a response of the server 207multistatus and ok, but the return a HTTP/1.1 404 Resource Not Found i wish a 201 created!!! (for my appointement

Recieve/Accept file in WEBDAV from httpwebrequest POST or PUT in asp.net

偶尔善良 提交于 2019-12-24 18:26:01
问题 Suppose I have sample Upload file method like this in POStFile.aspx . This method POST file (upload file) to http WEBDAV url. public static void HttpUploadFile(string url, string file, string paramName, string contentType, NameValueCollection nvc) { log.Debug(string.Format("Uploading {0} to {1}", file, url)); string boundary = "---------------------------" + DateTime.Now.Ticks.ToString("x"); byte[] boundarybytes = System.Text.Encoding.ASCII.GetBytes("\r\n--" + boundary + "\r\n");

Recieve/Accept file in WEBDAV from httpwebrequest POST or PUT in asp.net

前提是你 提交于 2019-12-24 18:24:09
问题 Suppose I have sample Upload file method like this in POStFile.aspx . This method POST file (upload file) to http WEBDAV url. public static void HttpUploadFile(string url, string file, string paramName, string contentType, NameValueCollection nvc) { log.Debug(string.Format("Uploading {0} to {1}", file, url)); string boundary = "---------------------------" + DateTime.Now.Ticks.ToString("x"); byte[] boundarybytes = System.Text.Encoding.ASCII.GetBytes("\r\n--" + boundary + "\r\n");

MSExchange URL encoding

早过忘川 提交于 2019-12-24 02:47:10
问题 I am writing a PHP service to query an Exchange server via WebDAV. This service has been live for roughly a month with no issues, but experienced a hiccup today when an email with the following subject line arrived in the mailbox: FW: Daily Approval Report: Vendor/Master 007297 The message is stored in the file "FW: Daily Approval Report: Vendor/Master 007297.EML" and is referenced through a url as: FW:%20Daily%20Approval%20Report:%20Vendor_xF8FF_Master%20007297.EML I had been using the PHP

WebDav 409 Error

末鹿安然 提交于 2019-12-24 02:04:21
问题 I am trying to add multiple files using WebDav. The directory I am trying to upload to is empty. I loop through the files and sent the files. 1 Add doc1.txt to WebDav Server using HTTP Put -- Success always even if the files is already there. 2 Add doc2.txt to WebDav Server using HTTP Put -- Always fails with a 409 error. It does not matter what file or order I process the files it always fails on the second file. Anyone have and idea? Here is the method I am using: public static bool

WebDAV get free space info

落花浮王杯 提交于 2019-12-23 16:27:59
问题 I'm working with Yandex Disk API (http://api.yandex.com/disk/doc/dg/reference/propfind_space-request.xml). Having trouble with adding property in the request body ( quota-available-bytes and quota-used-bytes ) public static string SpaceInfo(string path) { // Authorization. HttpWebRequest webReq = (HttpWebRequest)WebRequest.Create("https://webdav.yandex.ru/"); webReq.Accept = "*/*"; webReq.Headers.Add("Depth: 0"); webReq.Headers.Add("Authorization: OAuth " + token); webReq.Method = "PROPFIND";

WebDAV return 401 - How to authenticate?

给你一囗甜甜゛ 提交于 2019-12-23 05:23:17
问题 I have a problem with WebDAV. I have to get a list of files. I have this request: <?xml version="1.0"?> <D:searchrequest xmlns:D = "DAV:"> <D:sql> SELECT "DAV:displayname" FROM "address" WHERE "DAV:ishidden" = false AND "DAV:isfolder" = false </D:sql> </D:searchrequest> Response: 401 - Unauthorized: Access is denied due to invalid credentials. I have user and password (who has access), but I don't know, how I can put this data to XML request. 回答1: WebDAV uses an HTTP authentication. So you

How to make file READ ONLY when exposed through WebDAV

为君一笑 提交于 2019-12-22 18:24:44
问题 I'm using jackrabbit implementation of WebDAV. There is a user who doesn't have write permission to a folder. That user is able to open the file in desktop applications and able to edit. When the user does save, the server is rejecting the changes but the client is still having those changes, though after the re-mount, these changes will be gone. So, I'm looking for the answers to the following questions: Is there a way to make files/folders READ-ONLY when mounted through a WebDAV? Does