|
@@ -28,10 +28,11 @@
|
|
// Add : getNotificationServer & setNotificationServer
|
|
// Add : getNotificationServer & setNotificationServer
|
|
// Add : getUserProfileServer
|
|
// Add : getUserProfileServer
|
|
//
|
|
//
|
|
|
|
+// Add : Support for Favorite <favorite xmlns=\"http://owncloud.org/ns\"/>
|
|
|
|
+//
|
|
// Author Marino Faggiana <m.faggiana@twsweb.it>
|
|
// Author Marino Faggiana <m.faggiana@twsweb.it>
|
|
//
|
|
//
|
|
|
|
|
|
-
|
|
|
|
#import "OCWebDAVClient.h"
|
|
#import "OCWebDAVClient.h"
|
|
#import "OCFrameworkConstants.h"
|
|
#import "OCFrameworkConstants.h"
|
|
#import "OCCommunication.h"
|
|
#import "OCCommunication.h"
|
|
@@ -223,7 +224,7 @@ NSString const *OCWebDAVModificationDateKey = @"modificationdate";
|
|
depthHeader = @"infinity";
|
|
depthHeader = @"infinity";
|
|
[request setValue: depthHeader forHTTPHeaderField: @"Depth"];
|
|
[request setValue: depthHeader forHTTPHeaderField: @"Depth"];
|
|
|
|
|
|
- [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\"><D:prop><D:resourcetype/><D:getlastmodified/><size xmlns=\"http://owncloud.org/ns\"/><D:creationdate/><id xmlns=\"http://owncloud.org/ns\"/><D:getcontentlength/><D:displayname/><D:quota-available-bytes/><D:getetag/><permissions xmlns=\"http://owncloud.org/ns\"/><D:quota-used-bytes/><D:getcontenttype/></D:prop></D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
|
|
|
|
+ [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\"><D:prop><D:resourcetype/><D:getlastmodified/><size xmlns=\"http://owncloud.org/ns\"/><favorite xmlns=\"http://owncloud.org/ns\"/><D:creationdate/><id xmlns=\"http://owncloud.org/ns\"/><D:getcontentlength/><D:displayname/><D:quota-available-bytes/><D:getetag/><permissions xmlns=\"http://owncloud.org/ns\"/><D:quota-used-bytes/><D:getcontenttype/></D:prop></D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];
|
|
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];
|
|
|
|
|
|
|
|
|
|
@@ -249,7 +250,7 @@ NSString const *OCWebDAVModificationDateKey = @"modificationdate";
|
|
depthHeader = @"infinity";
|
|
depthHeader = @"infinity";
|
|
[request setValue: depthHeader forHTTPHeaderField: @"Depth"];
|
|
[request setValue: depthHeader forHTTPHeaderField: @"Depth"];
|
|
|
|
|
|
- [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\"><D:prop><D:resourcetype/><D:getlastmodified/><size xmlns=\"http://owncloud.org/ns\"/><D:creationdate/><id xmlns=\"http://owncloud.org/ns\"/><D:getcontentlength/><D:displayname/><D:quota-available-bytes/><D:getetag/><permissions xmlns=\"http://owncloud.org/ns\"/><D:quota-used-bytes/><D:getcontenttype/></D:prop></D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
|
|
|
|
+ [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\"><D:prop><D:resourcetype/><D:getlastmodified/><size xmlns=\"http://owncloud.org/ns\"/><favorite xmlns=\"http://owncloud.org/ns\"/><D:creationdate/><id xmlns=\"http://owncloud.org/ns\"/><D:getcontentlength/><D:displayname/><D:quota-available-bytes/><D:getetag/><permissions xmlns=\"http://owncloud.org/ns\"/><D:quota-used-bytes/><D:getcontenttype/></D:prop></D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];
|
|
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];
|
|
|
|
|
|
|
|
|