cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [30/57] [abbrv] cordova-plugins git commit: Squashed 'local-webserver/src/ios/GCDWebServer/' content from commit 15caa9c
Date Mon, 25 Jul 2016 07:57:16 GMT
http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..357586a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,444 @@
+Overview
+========
+
+[![Build Status](https://travis-ci.org/swisspol/GCDWebServer.svg?branch=master)](https://travis-ci.org/swisspol/GCDWebServer)
+[![Version](http://cocoapod-badges.herokuapp.com/v/GCDWebServer/badge.png)](http://cocoadocs.org/docsets/GCDWebServer)
+[![Platform](http://cocoapod-badges.herokuapp.com/p/GCDWebServer/badge.png)](https://github.com/swisspol/GCDWebServer)
+[![License](http://img.shields.io/cocoapods/l/GCDWebServer.svg)](LICENSE)
+
+*ANNOUNCEMENT: If you like GCDWebServer, check out [XLFacility](https://github.com/swisspol/XLFacility), an elegant and powerful logging facility for OS X & iOS by the same author and also open-source. XLFacility can be used seemlessly to handle logging from GCDWebServer (see "Logging in GCDWebServer" below).*
+
+GCDWebServer is a modern and lightweight GCD based HTTP 1.1 server designed to be embedded in OS X & iOS apps. It was written from scratch with the following goals in mind:
+* Elegant and easy to use architecture with only 4 core classes: server, connection, request and response (see "Understanding GCDWebServer's Architecture" below)
+* Well designed API with fully documented headers for easy integration and customization
+* Entirely built with an event-driven design using [Grand Central Dispatch](http://en.wikipedia.org/wiki/Grand_Central_Dispatch) for best performance and concurrency
+* No dependencies on third-party source code
+* Available under a friendly [New BSD License](LICENSE)
+
+Extra built-in features:
+* Allow implementation of fully asynchronous handlers of incoming HTTP requests
+* Minimize memory usage with disk streaming of large HTTP request or response bodies
+* Parser for [web forms](http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4) submitted using "application/x-www-form-urlencoded" or "multipart/form-data" encodings (including file uploads)
+* [JSON](http://www.json.org/) parsing and serialization for request and response HTTP bodies
+* [Chunked transfer encoding](https://en.wikipedia.org/wiki/Chunked_transfer_encoding) for request and response HTTP bodies
+* [HTTP compression](https://en.wikipedia.org/wiki/HTTP_compression) with gzip for request and response HTTP bodies
+* [HTTP range](https://en.wikipedia.org/wiki/Byte_serving) support for requests of local files
+* [Basic](https://en.wikipedia.org/wiki/Basic_access_authentication) and [Digest Access](https://en.wikipedia.org/wiki/Digest_access_authentication) authentications for password protection
+* Automatically handle transitions between foreground, background and suspended modes in iOS apps
+* Full support for both IPv4 and IPv6
+
+Included extensions:
+* [GCDWebUploader](GCDWebUploader/GCDWebUploader.h): subclass of ```GCDWebServer``` that implements an interface for uploading and downloading files using a web browser
+* [GCDWebDAVServer](GCDWebDAVServer/GCDWebDAVServer.h): subclass of ```GCDWebServer``` that implements a class 1 [WebDAV](https://en.wikipedia.org/wiki/WebDAV) server (with partial class 2 support for OS X Finder)
+
+What's not supported (but not really required from an embedded HTTP server):
+* Keep-alive connections
+* HTTPS
+
+Requirements:
+* OS X 10.7 or later (x86_64)
+* iOS 5.0 or later (armv7, armv7s or arm64)
+* ARC memory management only (if you need MRC support use GCDWebServer 3.1 and earlier)
+
+Getting Started
+===============
+
+Download or check out the [latest release](https://github.com/swisspol/GCDWebServer/releases) of GCDWebServer then add the entire "GCDWebServer" subfolder to your Xcode project. If you intend to use one of the extensions like GCDWebDAVServer or GCDWebUploader, add these subfolders as well.
+
+Alternatively, you can install GCDWebServer using [CocoaPods](http://cocoapods.org/) by simply adding this line to your Xcode project's Podfile:
+```
+pod "GCDWebServer", "~> 3.0"
+```
+If you want to use GCDWebUploader, use this line instead:
+```
+pod "GCDWebServer/WebUploader", "~> 3.0"
+```
+Or this line for GCDWebDAVServer:
+```
+pod "GCDWebServer/WebDAV", "~> 3.0"
+```
+
+Hello World
+===========
+
+These code snippets show how to implement a custom HTTP server that runs on port 8080 and returns a "Hello World" HTML page to any request. Since GCDWebServer uses GCD blocks to handle requests, no subclassing or delegates are needed, which results in very clean code.
+
+**OS X version (command line tool):**
+```objectivec
+#import "GCDWebServer.h"
+#import "GCDWebServerDataResponse.h"
+
+int main(int argc, const char* argv[]) {
+  @autoreleasepool {
+    
+    // Create server
+    GCDWebServer* webServer = [[GCDWebServer alloc] init];
+    
+    // Add a handler to respond to GET requests on any URL
+    [webServer addDefaultHandlerForMethod:@"GET"
+                             requestClass:[GCDWebServerRequest class]
+                             processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+      
+      return [GCDWebServerDataResponse responseWithHTML:@"<html><body><p>Hello World</p></body></html>"];
+      
+    }];
+    
+    // Use convenience method that runs server on port 8080
+    // until SIGINT (Ctrl-C in Terminal) or SIGTERM is received
+    [webServer runWithPort:8080 bonjourName:nil];
+    NSLog(@"Visit %@ in your web browser", webServer.serverURL);
+    
+  }
+  return 0;
+}
+```
+
+**iOS version:**
+```objectivec
+#import "GCDWebServer.h"
+#import "GCDWebServerDataResponse.h"
+
+@interface AppDelegate : NSObject <UIApplicationDelegate> {
+  GCDWebServer* _webServer;
+}
+@end
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
+  
+  // Create server
+  _webServer = [[GCDWebServer alloc] init];
+  
+  // Add a handler to respond to GET requests on any URL
+  [_webServer addDefaultHandlerForMethod:@"GET"
+                            requestClass:[GCDWebServerRequest class]
+                            processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+    
+    return [GCDWebServerDataResponse responseWithHTML:@"<html><body><p>Hello World</p></body></html>"];
+    
+  }];
+  
+  // Start server on port 8080
+  [_webServer startWithPort:8080 bonjourName:nil];
+  NSLog(@"Visit %@ in your web browser", _webServer.serverURL);
+  
+  return YES;
+}
+
+@end
+```
+
+**OS X Swift version (command line tool):**
+
+***webServer.swift***
+```swift
+import Foundation
+
+let webServer = GCDWebServer()
+
+webServer.addDefaultHandlerForMethod("GET", requestClass: GCDWebServerRequest.self) { request in
+    return GCDWebServerDataResponse(HTML:"<html><body><p>Hello World</p></body></html>")
+}
+
+webServer.runWithPort(8080, bonjourName: nil)
+
+println("Visit \(webServer.serverURL) in your web browser")
+```
+
+***WebServer-Bridging-Header.h***
+```objectivec
+#import "GCDWebServer.h"
+#import "GCDWebServerDataResponse.h"
+```
+
+Asynchronous HTTP Responses
+===========================
+
+New in GCDWebServer 3.0 is the ability to process HTTP requests aysnchronously i.e. add handlers to the server which generate their ```GCDWebServerResponse``` asynchronously. This is achieved by adding handlers that use a ```GCDWebServerAsyncProcessBlock``` instead of a ```GCDWebServerProcessBlock```. Here's an example:
+
+**(Synchronous version)** The handler blocks while generating the HTTP response:
+```objectivec
+[webServer addDefaultHandlerForMethod:@"GET"
+                         requestClass:[GCDWebServerRequest class]
+                         processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+  
+  GCDWebServerDataResponse* response = [GCDWebServerDataResponse responseWithHTML:@"<html><body><p>Hello World</p></body></html>"];
+  return response;
+  
+}];
+```
+
+**(Asynchronous version)** The handler returns immediately and calls back GCDWebServer later with the generated HTTP response:
+```objectivec
+[webServer addDefaultHandlerForMethod:@"GET"
+                         requestClass:[GCDWebServerRequest class]
+                    asyncProcessBlock:^(GCDWebServerRequest* request, GCDWebServerCompletionBlock completionBlock) {
+  
+  // Do some async operation like network access or file I/O (simulated here using dispatch_after())
+  dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
+    GCDWebServerDataResponse* response = [GCDWebServerDataResponse responseWithHTML:@"<html><body><p>Hello World</p></body></html>"];
+    completionBlock(response);
+  });
+
+}];
+```
+
+**(Advanced asynchronous version)** The handler returns immediately a streamed HTTP response which itself generates its contents asynchronously:
+```objectivec
+[webServer addDefaultHandlerForMethod:@"GET"
+                         requestClass:[GCDWebServerRequest class]
+                    asyncProcessBlock:^(GCDWebServerRequest* request, GCDWebServerCompletionBlock completionBlock) {
+  
+  GCDWebServerStreamedResponse* response = [GCDWebServerStreamedResponse responseWithContentType:@"text/html" asyncStreamBlock:^(GCDWebServerBodyReaderCompletionBlock completionBlock) {
+    
+    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
+      completionBlock([@"<html><body><p>Hello" dataUsingEncoding:NSUTF8StringEncoding], nil);  // Generate the 1st part of the stream data
+      
+      dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
+        completionBlock([@"World</p></body></html>" dataUsingEncoding:NSUTF8StringEncoding], nil);  // Generate the 2nd part of the stream data
+        
+        completionBlock([NSData data], nil);  // Must pass an empty NSData to signal the end of the stream
+       });
+       
+    });
+    
+  }];
+  return response;
+
+}];
+```
+
+*Note that you can even combine both the asynchronous and advanced asynchronous versions to return asynchronously an asynchronous HTTP response!*
+
+Web Based Uploads in iOS Apps
+=============================
+
+GCDWebUploader is a subclass of ```GCDWebServer``` that provides a ready-to-use HTML 5 file uploader & downloader. This lets users upload, download, delete files and create directories from a directory inside your iOS app's sandbox using a clean user interface in their web browser.
+
+Simply instantiate and run a ```GCDWebUploader``` instance then visit ```http://{YOUR-IOS-DEVICE-IP-ADDRESS}/``` from your web browser:
+
+```objectivec
+#import "GCDWebUploader.h"
+
+@interface AppDelegate : NSObject <UIApplicationDelegate> {
+  GCDWebUploader* _webUploader;
+}
+@end
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
+  NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
+  _webUploader = [[GCDWebUploader alloc] initWithUploadDirectory:documentsPath];
+  [_webUploader start];
+  NSLog(@"Visit %@ in your web browser", _webUploader.serverURL);
+  return YES;
+}
+
+@end
+```
+
+WebDAV Server in iOS Apps
+=========================
+
+GCDWebDAVServer is a subclass of ```GCDWebServer``` that provides a class 1 compliant [WebDAV](https://en.wikipedia.org/wiki/WebDAV) server. This lets users upload, download, delete files and create directories from a directory inside your iOS app's sandbox using any WebDAV client like [Transmit](https://panic.com/transmit/) (Mac), [ForkLift](http://binarynights.com/forklift/) (Mac) or [CyberDuck](http://cyberduck.io/) (Mac / Windows).
+
+GCDWebDAVServer should also work with the [OS X Finder](http://support.apple.com/kb/PH13859) as it is partially class 2 compliant (but only when the client is the OS X WebDAV implementation).
+
+Simply instantiate and run a ```GCDWebDAVServer``` instance then connect to ```http://{YOUR-IOS-DEVICE-IP-ADDRESS}/``` using a WebDAV client:
+
+```objectivec
+#import "GCDWebDAVServer.h"
+
+@interface AppDelegate : NSObject <UIApplicationDelegate> {
+  GCDWebDAVServer* _davServer;
+}
+@end
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
+  NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
+  _davServer = [[GCDWebDAVServer alloc] initWithUploadDirectory:documentsPath];
+  [_davServer start];
+  NSLog(@"Visit %@ in your WebDAV client", _davServer.serverURL);
+  return YES;
+}
+
+@end
+```
+
+Serving a Static Website
+========================
+
+GCDWebServer includes a built-in handler that can recursively serve a directory (it also lets you control how the ["Cache-Control"](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9) header should be set):
+
+```objectivec
+#import "GCDWebServer.h"
+
+int main(int argc, const char* argv[]) {
+  @autoreleasepool {
+    
+    GCDWebServer* webServer = [[GCDWebServer alloc] init];
+    [webServer addGETHandlerForBasePath:@"/" directoryPath:NSHomeDirectory() indexFilename:nil cacheAge:3600 allowRangeRequests:YES];
+    [webServer runWithPort:8080];
+    
+  }
+  return 0;
+}
+```
+
+Using GCDWebServer
+==================
+
+You start by creating an instance of the ```GCDWebServer``` class. Note that you can have multiple web servers running in the same app as long as they listen on different ports.
+
+Then you add one or more "handlers" to the server: each handler gets a chance to handle an incoming web request and provide a response. Handlers are called in a LIFO queue, so the latest added handler overrides any previously added ones.
+
+Finally you start the server on a given port.
+
+Understanding GCDWebServer's Architecture
+=========================================
+
+GCDWebServer's architecture consists of only 4 core classes:
+* [GCDWebServer](GCDWebServer/Core/GCDWebServer.h) manages the socket that listens for new HTTP connections and the list of handlers used by the server.
+* [GCDWebServerConnection](GCDWebServer/Core/GCDWebServerConnection.h) is instantiated by ```GCDWebServer``` to handle each new HTTP connection. Each instance stays alive until the connection is closed. You cannot use this class directly, but it is exposed so you can subclass it to override some hooks.
+* [GCDWebServerRequest](GCDWebServer/Core/GCDWebServerRequest.h) is created by the ```GCDWebServerConnection``` instance after HTTP headers have been received. It wraps the request and handles the HTTP body if any. GCDWebServer comes with [several subclasses](GCDWebServer/Requests) of ```GCDWebServerRequest``` to handle common cases like storing the body in memory or stream it to a file on disk.
+* [GCDWebServerResponse](GCDWebServer/Core/GCDWebServerResponse.h) is created by the request handler and wraps the response HTTP headers and optional body. GCDWebServer comes with [several subclasses](GCDWebServer/Responses) of ```GCDWebServerResponse``` to handle common cases like HTML text in memory or streaming a file from disk.
+
+Implementing Handlers
+=====================
+
+GCDWebServer relies on "handlers" to process incoming web requests and generating responses. Handlers are implemented with GCD blocks which makes it very easy to provide your owns. However, they are executed on arbitrary threads within GCD so __special attention must be paid to thread-safety and re-entrancy__.
+
+Handlers require 2 GCD blocks:
+* The ```GCDWebServerMatchBlock``` is called on every handler added to the ```GCDWebServer``` instance whenever a web request has started (i.e. HTTP headers have been received). It is passed the basic info for the web request (HTTP method, URL, headers...) and must decide if it wants to handle it or not. If yes, it must return a new ```GCDWebServerRequest``` instance (see above) created with this info. Otherwise, it simply returns nil.
+* The ```GCDWebServerProcessBlock``` or ```GCDWebServerAsyncProcessBlock``` is called after the web request has been fully received and is passed the ```GCDWebServerRequest``` instance created at the previous step. It must return synchronously (if using ```GCDWebServerProcessBlock```) or asynchronously (if using ```GCDWebServerAsyncProcessBlock```) a ```GCDWebServerResponse``` instance (see above) or nil on error, which will result in a 500 HTTP status code returned to the client. It's however recommended to return an instance of [GCDWebServerErrorResponse](GCDWebServer/Responses/GCDWebServerErrorResponse.h) on error so more useful information can be returned to the client.
+
+Note that most methods on ```GCDWebServer``` to add handlers only require the ```GCDWebServerProcessBlock``` or ```GCDWebServerAsyncProcessBlock``` as they already provide a built-in ```GCDWebServerMatchBlock``` e.g. to match a URL path with a Regex.
+
+GCDWebServer & Background Mode for iOS Apps
+===========================================
+
+When doing networking operations in iOS apps, you must handle carefully [what happens when iOS puts the app in the background](https://developer.apple.com/library/ios/technotes/tn2277/_index.html). Typically you must stop any network servers while the app is in the background and restart them when the app comes back to the foreground. This can become quite complex considering servers might have ongoing connections when they need to be stopped.
+
+Fortunately, GCDWebServer does all of this automatically for you:
+- GCDWebServer begins a [background task](https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html) whenever the first HTTP connection is opened and ends it only when the last one is closed. This prevents iOS from suspending the app after it goes in the background, which would immediately kill HTTP connections to the client.
+ - While the app is in the background, as long as new HTTP connections keep being initiated, the background task will continue to exist and iOS will not suspend the app (unless under sudden and unexpected memory pressure).
+ - If the app is still in the background when the last HTTP connection is closed, GCDWebServer will suspend itself and stop accepting new connections as if you had called ```-stop``` (this behavior can be disabled with the ```GCDWebServerOption_AutomaticallySuspendInBackground``` option).
+- If the app goes in the background while no HTTP connections are opened, GCDWebServer will immediately suspend itself and stop accepting new connections as if you had called ```-stop``` (this behavior can be disabled with the ```GCDWebServerOption_AutomaticallySuspendInBackground``` option).
+- If the app comes back to the foreground and GCDWebServer had been suspended, it will automatically resume itself and start accepting again new HTTP connections as if you had called ```-start```.
+
+HTTP connections are often initiated in batches (or bursts), for instance when loading a web page with multiple resources. This makes it difficult to accurately detect when the *very last* HTTP connection has been closed: it's possible 2 consecutive HTTP connections part of the same batch would be separated by a small delay instead of overlapping. It would be bad for the client if GCDWebServer suspended itself right in between. The ```GCDWebServerOption_ConnectedStateCoalescingInterval``` option solves this problem elegantly by forcing GCDWebServer to wait some extra delay before performing any action after the last HTTP connection has been closed, just in case a new HTTP connection is initiated within this delay.
+
+Logging in GCDWebServer
+=======================
+
+Both for debugging and informational purpose, GCDWebServer logs messages extensively whenever something happens. Furthermore, when building GCDWebServer in "Debug" mode versus "Release" mode, it logs even more information but also performs a number of internal consistency checks. To enable this behavior, define the preprocessor constant ```DEBUG=1``` when compiling GCDWebServer. In Xcode target settings, this can be done by adding ```DEBUG=1``` to the build setting ```GCC_PREPROCESSOR_DEFINITIONS``` when building in "Debug" configuration. Finally, you can also control the logging verbosity at run time by calling ```+[GCDWebServer setLogLevel:]```.
+
+By default, all messages logged by GCDWebServer are sent to its built-in logging facility, which simply outputs to ```stderr``` (assuming a terminal type device is connected). In order to better integrate with the rest of your app or because of the amount of information logged, you might want to use another logging facility.
+
+GCDWebServer has automatic support for [XLFacility](https://github.com/swisspol/XLFacility) (by the same author as GCDWebServer and also open-source) and [CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack). If either of them is in the same Xcode project, GCDWebServer should use it automatically instead of the built-in logging facility (see [GCDWebServerPrivate.h](GCDWebServer/Core/GCDWebServerPrivate.h) for the implementation details).
+
+It's also possible to use a custom logging facility - see [GCDWebServer.h](GCDWebServer/Core/GCDWebServer.h) for more information.
+
+Advanced Example 1: Implementing HTTP Redirects
+===============================================
+
+Here's an example handler that redirects "/" to "/index.html" using the convenience method on ```GCDWebServerResponse``` (it sets the HTTP status code and "Location" header automatically):
+
+```objectivec
+[self addHandlerForMethod:@"GET"
+                     path:@"/"
+             requestClass:[GCDWebServerRequest class]
+             processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+    
+  return [GCDWebServerResponse responseWithRedirect:[NSURL URLWithString:@"index.html" relativeToURL:request.URL]
+                                          permanent:NO];
+    
+}];
+```
+
+Advanced Example 2: Implementing Forms
+======================================
+
+To implement an HTTP form, you need a pair of handlers:
+* The GET handler does not expect any body in the HTTP request and therefore uses the ```GCDWebServerRequest``` class. The handler generates a response containing a simple HTML form.
+* The POST handler expects the form values to be in the body of the HTTP request and percent-encoded. Fortunately, GCDWebServer provides the request class ```GCDWebServerURLEncodedFormRequest``` which can automatically parse such bodies. The handler simply echoes back the value from the user submitted form.
+
+```objectivec
+[webServer addHandlerForMethod:@"GET"
+                          path:@"/"
+                  requestClass:[GCDWebServerRequest class]
+                  processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+  
+  NSString* html = @" \
+    <html><body> \
+      <form name=\"input\" action=\"/\" method=\"post\" enctype=\"application/x-www-form-urlencoded\"> \
+      Value: <input type=\"text\" name=\"value\"> \
+      <input type=\"submit\" value=\"Submit\"> \
+      </form> \
+    </body></html> \
+  ";
+  return [GCDWebServerDataResponse responseWithHTML:html];
+  
+}];
+
+[webServer addHandlerForMethod:@"POST"
+                          path:@"/"
+                  requestClass:[GCDWebServerURLEncodedFormRequest class]
+                  processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+  
+  NSString* value = [[(GCDWebServerURLEncodedFormRequest*)request arguments] objectForKey:@"value"];
+  NSString* html = [NSString stringWithFormat:@"<html><body><p>%@</p></body></html>", value];
+  return [GCDWebServerDataResponse responseWithHTML:html];
+  
+}];
+```
+
+Advanced Example 3: Serving a Dynamic Website
+=============================================
+
+GCDWebServer provides an extension to the ```GCDWebServerDataResponse``` class that can return HTML content generated from a template and a set of variables (using the format ```%variable%```). It is a very basic template system and is really intended as a starting point to building more advanced template systems by subclassing ```GCDWebServerResponse```.
+
+Assuming you have a website directory in your app containing HTML template files along with the corresponding CSS, scripts and images, it's pretty easy to turn it into a dynamic website:
+
+```objectivec
+// Get the path to the website directory
+NSString* websitePath = [[NSBundle mainBundle] pathForResource:@"Website" ofType:nil];
+
+// Add a default handler to serve static files (i.e. anything other than HTML files)
+[self addGETHandlerForBasePath:@"/" directoryPath:websitePath indexFilename:nil cacheAge:3600 allowRangeRequests:YES];
+
+// Add an override handler for all requests to "*.html" URLs to do the special HTML templatization
+[self addHandlerForMethod:@"GET"
+                pathRegex:@"/.*\.html"
+             requestClass:[GCDWebServerRequest class]
+             processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+    
+    NSDictionary* variables = [NSDictionary dictionaryWithObjectsAndKeys:@"value", @"variable", nil];
+    return [GCDWebServerDataResponse responseWithHTMLTemplate:[websitePath stringByAppendingPathComponent:request.path]
+                                                    variables:variables];
+    
+}];
+
+// Add an override handler to redirect "/" URL to "/index.html"
+[self addHandlerForMethod:@"GET"
+                     path:@"/"
+             requestClass:[GCDWebServerRequest class]
+             processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {
+    
+    return [GCDWebServerResponse responseWithRedirect:[NSURL URLWithString:@"index.html" relativeToURL:request.URL]
+                                            permanent:NO];
+    
+];
+
+```
+
+Final Example: File Downloads and Uploads From iOS App
+======================================================
+
+GCDWebServer was originally written for the [ComicFlow](http://itunes.apple.com/us/app/comicflow/id409290355?mt=8) comic reader app for iPad. It allow users to connect to their iPad with their web browser over WiFi and then upload, download and organize comic files inside the app.
+
+ComicFlow is [entirely open-source](https://github.com/swisspol/ComicFlow) and you can see how it uses GCDWebServer in the [WebServer.h](https://github.com/swisspol/ComicFlow/blob/master/Classes/WebServer.h) and [WebServer.m](https://github.com/swisspol/ComicFlow/blob/master/Classes/WebServer.m) files.

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Run-Tests.sh
----------------------------------------------------------------------
diff --git a/Run-Tests.sh b/Run-Tests.sh
new file mode 100755
index 0000000..1bfa0af
--- /dev/null
+++ b/Run-Tests.sh
@@ -0,0 +1,60 @@
+#!/bin/bash -ex
+
+OSX_SDK="macosx"
+if [ -z "$TRAVIS" ]; then
+  IOS_SDK="iphoneos"
+else
+  IOS_SDK="iphonesimulator"
+fi
+
+OSX_TARGET="GCDWebServer (Mac)"
+IOS_TARGET="GCDWebServer (iOS)"
+CONFIGURATION="Release"
+
+BUILD_DIR="/tmp/GCDWebServer-Build"
+PRODUCT="$BUILD_DIR/$CONFIGURATION/GCDWebServer"
+
+PAYLOAD_ZIP="Tests/Payload.zip"
+PAYLOAD_DIR="/tmp/GCDWebServer-Payload"
+
+function runTests {
+  rm -rf "$PAYLOAD_DIR"
+  ditto -x -k "$PAYLOAD_ZIP" "$PAYLOAD_DIR"
+  TZ=GMT find "$PAYLOAD_DIR" -type d -exec SetFile -d "1/1/2014 00:00:00" -m "1/1/2014 00:00:00" '{}' \;  # ZIP archives do not preserve directories dates
+  if [ "$4" != "" ]; then
+    cp -f "$4" "$PAYLOAD_DIR/Payload"
+    pushd "$PAYLOAD_DIR/Payload"
+    SetFile -d "1/1/2014 00:00:00" -m "1/1/2014 00:00:00" `basename "$4"`
+    popd
+  fi
+  logLevel=2 $1 -mode "$2" -root "$PAYLOAD_DIR/Payload" -tests "$3"
+}
+
+# Build for iOS for oldest deployment target (TODO: run tests on iOS)
+rm -rf "$BUILD_DIR"
+xcodebuild -sdk "$IOS_SDK" -target "$IOS_TARGET" -configuration "$CONFIGURATION" build "SYMROOT=$BUILD_DIR" "IPHONEOS_DEPLOYMENT_TARGET=5.1.1" > /dev/null
+
+# Build for iOS for default deployment target (TODO: run tests on iOS)
+rm -rf "$BUILD_DIR"
+xcodebuild -sdk "$IOS_SDK" -target "$IOS_TARGET" -configuration "$CONFIGURATION" build "SYMROOT=$BUILD_DIR" > /dev/null
+
+# Build for OS X for oldest deployment target
+rm -rf "$BUILD_DIR"
+xcodebuild -sdk "$OSX_SDK" -target "$OSX_TARGET" -configuration "$CONFIGURATION" build "SYMROOT=$BUILD_DIR" "MACOSX_DEPLOYMENT_TARGET=10.7" > /dev/null
+
+# Build for OS X for default deployment target
+rm -rf "$BUILD_DIR"
+xcodebuild -sdk "$OSX_SDK" -target "$OSX_TARGET" -configuration "$CONFIGURATION" build "SYMROOT=$BUILD_DIR" > /dev/null
+
+# Run tests
+runTests $PRODUCT "htmlForm" "Tests/HTMLForm"
+runTests $PRODUCT "htmlFileUpload" "Tests/HTMLFileUpload"
+runTests $PRODUCT "webServer" "Tests/WebServer"
+runTests $PRODUCT "webDAV" "Tests/WebDAV-Transmit"
+runTests $PRODUCT "webDAV" "Tests/WebDAV-Cyberduck"
+runTests $PRODUCT "webDAV" "Tests/WebDAV-Finder"
+runTests $PRODUCT "webUploader" "Tests/WebUploader"
+runTests $PRODUCT "webServer" "Tests/WebServer-Sample-Movie" "Tests/Sample-Movie.mp4"
+
+# Done
+echo "\nAll tests completed successfully!"

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLFileUpload/001-200.response
----------------------------------------------------------------------
diff --git a/Tests/HTMLFileUpload/001-200.response b/Tests/HTMLFileUpload/001-200.response
new file mode 100644
index 0000000..f39660c
--- /dev/null
+++ b/Tests/HTMLFileUpload/001-200.response
@@ -0,0 +1,9 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Content-Length: 299
+Content-Type: text/html; charset=utf-8
+Connection: Close
+Server: GCDWebServer
+Date: Fri, 25 Apr 2014 14:15:11 GMT
+
+<html><body>           <form name="input" action="/" method="post" enctype="multipart/form-data">           <input type="hidden" name="secret" value="42">           <input type="file" name="files" multiple><br/>           <input type="submit" value="Submit">           </form>         </body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLFileUpload/001-GET.request
----------------------------------------------------------------------
diff --git a/Tests/HTMLFileUpload/001-GET.request b/Tests/HTMLFileUpload/001-GET.request
new file mode 100644
index 0000000..6480774
--- /dev/null
+++ b/Tests/HTMLFileUpload/001-GET.request
@@ -0,0 +1,10 @@
+GET / HTTP/1.1
+Host: localhost:8080
+Connection: keep-alive
+Cache-Control: max-age=0
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36
+DNT: 1
+Accept-Encoding: gzip,deflate,sdch
+Accept-Language: en-US,en;q=0.8,fr;q=0.6
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLFileUpload/002-200.response
----------------------------------------------------------------------
diff --git a/Tests/HTMLFileUpload/002-200.response b/Tests/HTMLFileUpload/002-200.response
new file mode 100644
index 0000000..a3ec365
--- /dev/null
+++ b/Tests/HTMLFileUpload/002-200.response
@@ -0,0 +1,9 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Content-Length: 447
+Content-Type: text/html; charset=utf-8
+Connection: Close
+Server: GCDWebServer
+Date: Fri, 25 Apr 2014 14:15:21 GMT
+
+<html><body><p>secret = 42<br>files = &quot;hero_mba_11.jpg&quot; (image/jpeg | 106 KB)<br>files = &quot;Test File.txt&quot; (text/plain | 21 Bytes)<br></p><hr>           <form name="input" action="/" method="post" enctype="multipart/form-data">           <input type="hidden" name="secret" value="42">           <input type="file" name="files" multiple><br/>           <input type="submit" value="Submit">           </form>         </body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLFileUpload/002-POST.request
----------------------------------------------------------------------
diff --git a/Tests/HTMLFileUpload/002-POST.request b/Tests/HTMLFileUpload/002-POST.request
new file mode 100644
index 0000000..da29882
Binary files /dev/null and b/Tests/HTMLFileUpload/002-POST.request differ

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLForm/001-200.response
----------------------------------------------------------------------
diff --git a/Tests/HTMLForm/001-200.response b/Tests/HTMLForm/001-200.response
new file mode 100644
index 0000000..77a3972
--- /dev/null
+++ b/Tests/HTMLForm/001-200.response
@@ -0,0 +1,9 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Content-Length: 293
+Content-Type: text/html; charset=utf-8
+Connection: Close
+Server: GCDWebServer
+Date: Fri, 25 Apr 2014 14:12:09 GMT
+
+             <html><body>               <form name="input" action="/" method="post" enctype="application/x-www-form-urlencoded">               Value: <input type="text" name="value">               <input type="submit" value="Submit">               </form>             </body></html>           
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLForm/001-GET.request
----------------------------------------------------------------------
diff --git a/Tests/HTMLForm/001-GET.request b/Tests/HTMLForm/001-GET.request
new file mode 100644
index 0000000..6480774
--- /dev/null
+++ b/Tests/HTMLForm/001-GET.request
@@ -0,0 +1,10 @@
+GET / HTTP/1.1
+Host: localhost:8080
+Connection: keep-alive
+Cache-Control: max-age=0
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36
+DNT: 1
+Accept-Encoding: gzip,deflate,sdch
+Accept-Language: en-US,en;q=0.8,fr;q=0.6
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLForm/002-200.response
----------------------------------------------------------------------
diff --git a/Tests/HTMLForm/002-200.response b/Tests/HTMLForm/002-200.response
new file mode 100644
index 0000000..4874a64
--- /dev/null
+++ b/Tests/HTMLForm/002-200.response
@@ -0,0 +1,9 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Content-Length: 47
+Content-Type: text/html; charset=utf-8
+Connection: Close
+Server: GCDWebServer
+Date: Fri, 25 Apr 2014 14:12:20 GMT
+
+<html><body><p>Hellø Wörld!</p></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/HTMLForm/002-POST.request
----------------------------------------------------------------------
diff --git a/Tests/HTMLForm/002-POST.request b/Tests/HTMLForm/002-POST.request
new file mode 100644
index 0000000..d30c7c9
--- /dev/null
+++ b/Tests/HTMLForm/002-POST.request
@@ -0,0 +1,15 @@
+POST / HTTP/1.1
+Host: localhost:8080
+Connection: keep-alive
+Content-Length: 30
+Cache-Control: max-age=0
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
+Origin: http://localhost:8080
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36
+Content-Type: application/x-www-form-urlencoded
+DNT: 1
+Referer: http://localhost:8080/
+Accept-Encoding: gzip,deflate,sdch
+Accept-Language: en-US,en;q=0.8,fr;q=0.6
+
+value=Hell%C3%B8+W%C3%B6rld%21
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/Payload.zip
----------------------------------------------------------------------
diff --git a/Tests/Payload.zip b/Tests/Payload.zip
new file mode 100644
index 0000000..0157687
Binary files /dev/null and b/Tests/Payload.zip differ

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/Sample-Movie.mp4
----------------------------------------------------------------------
diff --git a/Tests/Sample-Movie.mp4 b/Tests/Sample-Movie.mp4
new file mode 100644
index 0000000..b2879c7
Binary files /dev/null and b/Tests/Sample-Movie.mp4 differ

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/001-200.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/001-200.response b/Tests/WebDAV-Cyberduck/001-200.response
new file mode 100755
index 0000000..51c9c76
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/001-200.response
@@ -0,0 +1,6 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:42 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/001-HEAD.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/001-HEAD.request b/Tests/WebDAV-Cyberduck/001-HEAD.request
new file mode 100755
index 0000000..dba741b
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/001-HEAD.request
@@ -0,0 +1,6 @@
+HEAD / HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/002-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/002-207.response b/Tests/WebDAV-Cyberduck/002-207.response
new file mode 100755
index 0000000..1a3b9fd
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/002-207.response
@@ -0,0 +1,14 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 1106
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:42 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/images</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/002-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/002-PROPFIND.request b/Tests/WebDAV-Cyberduck/002-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/002-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/003-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/003-207.response b/Tests/WebDAV-Cyberduck/003-207.response
new file mode 100755
index 0000000..db0aff7
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/003-207.response
@@ -0,0 +1,12 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 700
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:47 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/PDF%20Reports/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports/Apple%20Economic%20Impact%20on%20Cupertino.pdf</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2013-05-01T12:01:13+00:00</D:creationdate><D:getlastmodified>Wed, 01 May 2013 12:01:13 GMT</D:getlastmodified><D:getcontentlength>181952</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/003-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/003-PROPFIND.request b/Tests/WebDAV-Cyberduck/003-PROPFIND.request
new file mode 100755
index 0000000..932d41d
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/003-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND /PDF%20Reports/ HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/004-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/004-207.response b/Tests/WebDAV-Cyberduck/004-207.response
new file mode 100755
index 0000000..de32c84
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/004-207.response
@@ -0,0 +1,13 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 998
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:47 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/images/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/images/capable_green_ipad_l.png</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T21:46:56+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 21:46:56 GMT</D:getlastmodified><D:getcontentlength>116066</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/images/hero_mba_11.jpg</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T21:51:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 21:51:14 GMT</D:getlastmodified><D:getcontentlength>106799</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/004-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/004-PROPFIND.request b/Tests/WebDAV-Cyberduck/004-PROPFIND.request
new file mode 100755
index 0000000..56d4e72
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/004-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND /images/ HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/005-200.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/005-200.response b/Tests/WebDAV-Cyberduck/005-200.response
new file mode 100755
index 0000000..4553d7d
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/005-200.response
@@ -0,0 +1,6 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:51 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/005-HEAD.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/005-HEAD.request b/Tests/WebDAV-Cyberduck/005-HEAD.request
new file mode 100755
index 0000000..dba741b
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/005-HEAD.request
@@ -0,0 +1,6 @@
+HEAD / HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/006-404.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/006-404.response b/Tests/WebDAV-Cyberduck/006-404.response
new file mode 100755
index 0000000..ab0e086
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/006-404.response
@@ -0,0 +1,7 @@
+HTTP/1.1 404 Not Found
+Content-Length: 204
+Content-Type: text/html; charset=utf-8
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:51 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/006-HEAD.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/006-HEAD.request b/Tests/WebDAV-Cyberduck/006-HEAD.request
new file mode 100755
index 0000000..9631e6c
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/006-HEAD.request
@@ -0,0 +1,6 @@
+HEAD /Copy%20%284%3A11%3A14%2C%209%3A52%20PM%29.txt HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/007-201.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/007-201.response b/Tests/WebDAV-Cyberduck/007-201.response
new file mode 100755
index 0000000..9e0396e
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/007-201.response
@@ -0,0 +1,6 @@
+HTTP/1.1 201 Created
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:51 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/007-COPY.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/007-COPY.request b/Tests/WebDAV-Cyberduck/007-COPY.request
new file mode 100755
index 0000000..7eb04c0
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/007-COPY.request
@@ -0,0 +1,8 @@
+COPY /Copy.txt HTTP/1.1
+Destination: http://localhost:8080/Copy%20%284%3A11%3A14%2C%209%3A52%20PM%29.txt
+Overwrite: T
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/008-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/008-207.response b/Tests/WebDAV-Cyberduck/008-207.response
new file mode 100755
index 0000000..14613e9
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/008-207.response
@@ -0,0 +1,15 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 1448
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:51 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy%20(4:11:14,%209:52%20PM).txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/images</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/008-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/008-PROPFIND.request b/Tests/WebDAV-Cyberduck/008-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/008-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/009-200.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/009-200.response b/Tests/WebDAV-Cyberduck/009-200.response
new file mode 100755
index 0000000..1ed7386
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/009-200.response
@@ -0,0 +1,6 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:52:59 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/009-HEAD.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/009-HEAD.request b/Tests/WebDAV-Cyberduck/009-HEAD.request
new file mode 100755
index 0000000..dba741b
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/009-HEAD.request
@@ -0,0 +1,6 @@
+HEAD / HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/010-200.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/010-200.response b/Tests/WebDAV-Cyberduck/010-200.response
new file mode 100755
index 0000000..944e0d5
Binary files /dev/null and b/Tests/WebDAV-Cyberduck/010-200.response differ

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/010-GET.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/010-GET.request b/Tests/WebDAV-Cyberduck/010-GET.request
new file mode 100755
index 0000000..e3b80fa
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/010-GET.request
@@ -0,0 +1,6 @@
+GET /images/capable_green_ipad_l.png HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/011-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/011-207.response b/Tests/WebDAV-Cyberduck/011-207.response
new file mode 100755
index 0000000..b2e9323
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/011-207.response
@@ -0,0 +1,13 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 998
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:07 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/images/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/images/capable_green_ipad_l.png</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T21:46:56+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 21:46:56 GMT</D:getlastmodified><D:getcontentlength>116066</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/images/hero_mba_11.jpg</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T21:51:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 21:51:14 GMT</D:getlastmodified><D:getcontentlength>106799</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/011-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/011-PROPFIND.request b/Tests/WebDAV-Cyberduck/011-PROPFIND.request
new file mode 100755
index 0000000..56d4e72
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/011-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND /images/ HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/012-204.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/012-204.response b/Tests/WebDAV-Cyberduck/012-204.response
new file mode 100755
index 0000000..223f472
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/012-204.response
@@ -0,0 +1,6 @@
+HTTP/1.1 204 No Content
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:07 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/012-DELETE.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/012-DELETE.request b/Tests/WebDAV-Cyberduck/012-DELETE.request
new file mode 100755
index 0000000..9efec78
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/012-DELETE.request
@@ -0,0 +1,6 @@
+DELETE /images/capable_green_ipad_l.png HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/013-204.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/013-204.response b/Tests/WebDAV-Cyberduck/013-204.response
new file mode 100755
index 0000000..223f472
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/013-204.response
@@ -0,0 +1,6 @@
+HTTP/1.1 204 No Content
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:07 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/013-DELETE.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/013-DELETE.request b/Tests/WebDAV-Cyberduck/013-DELETE.request
new file mode 100755
index 0000000..4f5131f
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/013-DELETE.request
@@ -0,0 +1,6 @@
+DELETE /images/hero_mba_11.jpg HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/014-204.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/014-204.response b/Tests/WebDAV-Cyberduck/014-204.response
new file mode 100755
index 0000000..223f472
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/014-204.response
@@ -0,0 +1,6 @@
+HTTP/1.1 204 No Content
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:07 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/014-DELETE.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/014-DELETE.request b/Tests/WebDAV-Cyberduck/014-DELETE.request
new file mode 100755
index 0000000..1353820
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/014-DELETE.request
@@ -0,0 +1,6 @@
+DELETE /images/ HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/015-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/015-207.response b/Tests/WebDAV-Cyberduck/015-207.response
new file mode 100755
index 0000000..76271de
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/015-207.response
@@ -0,0 +1,14 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 1214
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:07 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy%20(4:11:14,%209:52%20PM).txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/015-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/015-PROPFIND.request b/Tests/WebDAV-Cyberduck/015-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/015-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/016-201.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/016-201.response b/Tests/WebDAV-Cyberduck/016-201.response
new file mode 100755
index 0000000..eb039d5
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/016-201.response
@@ -0,0 +1,6 @@
+HTTP/1.1 201 Created
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:13 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/016-MOVE.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/016-MOVE.request b/Tests/WebDAV-Cyberduck/016-MOVE.request
new file mode 100755
index 0000000..63d2c39
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/016-MOVE.request
@@ -0,0 +1,8 @@
+MOVE /Copy%20%284%3A11%3A14%2C%209%3A52%20PM%29.txt HTTP/1.1
+Destination: http://localhost:8080/Test.txt
+Overwrite: T
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/017-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/017-207.response b/Tests/WebDAV-Cyberduck/017-207.response
new file mode 100755
index 0000000..0384b51
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/017-207.response
@@ -0,0 +1,14 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 1189
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:13 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Test.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/017-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/017-PROPFIND.request b/Tests/WebDAV-Cyberduck/017-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/017-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/018-201.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/018-201.response b/Tests/WebDAV-Cyberduck/018-201.response
new file mode 100755
index 0000000..5ce2907
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/018-201.response
@@ -0,0 +1,6 @@
+HTTP/1.1 201 Created
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:14 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/018-MOVE.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/018-MOVE.request b/Tests/WebDAV-Cyberduck/018-MOVE.request
new file mode 100755
index 0000000..78015b7
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/018-MOVE.request
@@ -0,0 +1,8 @@
+MOVE /Test.txt HTTP/1.1
+Destination: http://localhost:8080/PDF%20Reports/Test.txt
+Overwrite: T
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/019-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/019-207.response b/Tests/WebDAV-Cyberduck/019-207.response
new file mode 100755
index 0000000..3dcf0a7
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/019-207.response
@@ -0,0 +1,13 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 872
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:14 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/019-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/019-PROPFIND.request b/Tests/WebDAV-Cyberduck/019-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/019-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/020-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/020-207.response b/Tests/WebDAV-Cyberduck/020-207.response
new file mode 100755
index 0000000..4377386
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/020-207.response
@@ -0,0 +1,13 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 1031
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:14 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/PDF%20Reports/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports/Apple%20Economic%20Impact%20on%20Cupertino.pdf</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2013-05-01T12:01:13+00:00</D:creationdate><D:getlastmodified>Wed, 01 May 2013 12:01:13 GMT</D:getlastmodified><D:getcontentlength>181952</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports/Test.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/020-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/020-PROPFIND.request b/Tests/WebDAV-Cyberduck/020-PROPFIND.request
new file mode 100755
index 0000000..932d41d
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/020-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND /PDF%20Reports/ HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/021-200.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/021-200.response b/Tests/WebDAV-Cyberduck/021-200.response
new file mode 100755
index 0000000..843b6c5
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/021-200.response
@@ -0,0 +1,6 @@
+HTTP/1.1 200 OK
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:22 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/021-HEAD.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/021-HEAD.request b/Tests/WebDAV-Cyberduck/021-HEAD.request
new file mode 100755
index 0000000..dba741b
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/021-HEAD.request
@@ -0,0 +1,6 @@
+HEAD / HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/022-404.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/022-404.response b/Tests/WebDAV-Cyberduck/022-404.response
new file mode 100755
index 0000000..3757c13
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/022-404.response
@@ -0,0 +1,7 @@
+HTTP/1.1 404 Not Found
+Content-Length: 190
+Content-Type: text/html; charset=utf-8
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:22 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/022-HEAD.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/022-HEAD.request b/Tests/WebDAV-Cyberduck/022-HEAD.request
new file mode 100755
index 0000000..1ab6cee
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/022-HEAD.request
@@ -0,0 +1,6 @@
+HEAD /Test%20File.txt HTTP/1.1
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/023-201.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/023-201.response b/Tests/WebDAV-Cyberduck/023-201.response
new file mode 100755
index 0000000..ce4db7a
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/023-201.response
@@ -0,0 +1,6 @@
+HTTP/1.1 201 Created
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:22 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/023-PUT.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/023-PUT.request b/Tests/WebDAV-Cyberduck/023-PUT.request
new file mode 100755
index 0000000..b94f128
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/023-PUT.request
@@ -0,0 +1,11 @@
+PUT /Test%20File.txt HTTP/1.1
+Content-Length: 21
+Content-Type: text/plain
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+X-GCDWebServer-CreationDate: 2014-04-12T04:53:22+00:00
+X-GCDWebServer-ModifiedDate: Sat, 12 Apr 2014 04:53:22 GMT
+
+Nothing to see here!

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/024-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/024-207.response b/Tests/WebDAV-Cyberduck/024-207.response
new file mode 100755
index 0000000..250b167
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/024-207.response
@@ -0,0 +1,14 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 1195
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:22 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Test%20File.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-12T04:53:22+00:00</D:creationdate><D:getlastmodified>Sat, 12 Apr 2014 04:53:22 GMT</D:getlastmodified><D:getcontentlength>21</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/024-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/024-PROPFIND.request b/Tests/WebDAV-Cyberduck/024-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/024-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/025-201.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/025-201.response b/Tests/WebDAV-Cyberduck/025-201.response
new file mode 100755
index 0000000..e44e7e8
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/025-201.response
@@ -0,0 +1,6 @@
+HTTP/1.1 201 Created
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:35 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/025-MKCOL.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/025-MKCOL.request b/Tests/WebDAV-Cyberduck/025-MKCOL.request
new file mode 100755
index 0000000..a731b57
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/025-MKCOL.request
@@ -0,0 +1,8 @@
+MKCOL /Text%20Files/ HTTP/1.1
+Content-Length: 0
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+X-GCDWebServer-CreationDate: 2014-04-12T04:53:35+00:00
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/026-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/026-207.response b/Tests/WebDAV-Cyberduck/026-207.response
new file mode 100755
index 0000000..8ba974e
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/026-207.response
@@ -0,0 +1,15 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 1435
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:35 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Test%20File.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-12T04:53:22+00:00</D:creationdate><D:getlastmodified>Sat, 12 Apr 2014 04:53:22 GMT</D:getlastmodified><D:getcontentlength>21</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Text%20Files</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-04-12T04:53:35+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/026-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/026-PROPFIND.request b/Tests/WebDAV-Cyberduck/026-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/026-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/027-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/027-207.response b/Tests/WebDAV-Cyberduck/027-207.response
new file mode 100755
index 0000000..306ad7e
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/027-207.response
@@ -0,0 +1,11 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 327
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:36 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/Text%20Files/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-04-12T04:53:35+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/027-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/027-PROPFIND.request b/Tests/WebDAV-Cyberduck/027-PROPFIND.request
new file mode 100755
index 0000000..760fe73
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/027-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND /Text%20Files/ HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/028-201.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/028-201.response b/Tests/WebDAV-Cyberduck/028-201.response
new file mode 100755
index 0000000..444c34d
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/028-201.response
@@ -0,0 +1,6 @@
+HTTP/1.1 201 Created
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:39 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/028-MOVE.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/028-MOVE.request b/Tests/WebDAV-Cyberduck/028-MOVE.request
new file mode 100755
index 0000000..70cae94
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/028-MOVE.request
@@ -0,0 +1,8 @@
+MOVE /Test%20File.txt HTTP/1.1
+Destination: http://localhost:8080/Text%20Files/Test%20File.txt
+Overwrite: T
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/029-201.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/029-201.response b/Tests/WebDAV-Cyberduck/029-201.response
new file mode 100755
index 0000000..444c34d
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/029-201.response
@@ -0,0 +1,6 @@
+HTTP/1.1 201 Created
+Cache-Control: no-cache
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:39 GMT
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/029-MOVE.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/029-MOVE.request b/Tests/WebDAV-Cyberduck/029-MOVE.request
new file mode 100755
index 0000000..5f51f8e
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/029-MOVE.request
@@ -0,0 +1,8 @@
+MOVE /Copy.txt HTTP/1.1
+Destination: http://localhost:8080/Text%20Files/Copy.txt
+Overwrite: T
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/030-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/030-207.response b/Tests/WebDAV-Cyberduck/030-207.response
new file mode 100755
index 0000000..3c1d3e1
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/030-207.response
@@ -0,0 +1,13 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 795
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:39 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/PDF%20Reports</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-01-01T00:00:00+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Text%20Files</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-04-12T04:53:35+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/030-PROPFIND.request
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/030-PROPFIND.request b/Tests/WebDAV-Cyberduck/030-PROPFIND.request
new file mode 100755
index 0000000..b1b74bc
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/030-PROPFIND.request
@@ -0,0 +1,10 @@
+PROPFIND / HTTP/1.1
+Depth: 1
+Content-Type: text/xml; charset=utf-8
+Content-Length: 99
+Host: localhost:8080
+Connection: Keep-Alive
+User-Agent: Cyberduck/4.4.3 (Mac OS X/10.9.2) (x86_64)
+Accept-Encoding: gzip,deflate
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><propfind xmlns="DAV:"><allprop/></propfind>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/1547b6bc/Tests/WebDAV-Cyberduck/031-207.response
----------------------------------------------------------------------
diff --git a/Tests/WebDAV-Cyberduck/031-207.response b/Tests/WebDAV-Cyberduck/031-207.response
new file mode 100755
index 0000000..f61942b
--- /dev/null
+++ b/Tests/WebDAV-Cyberduck/031-207.response
@@ -0,0 +1,13 @@
+HTTP/1.1 207 Multi-Status
+Cache-Control: no-cache
+Content-Length: 993
+Content-Type: application/xml; charset="utf-8"
+Connection: Close
+Server: GCDWebDAVServer
+Date: Sat, 12 Apr 2014 04:53:39 GMT
+
+<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:">
+<D:response><D:href>/Text%20Files/</D:href><D:propstat><D:prop><D:resourcetype><D:collection/></D:resourcetype><D:creationdate>2014-04-12T04:53:35+00:00</D:creationdate></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Text%20Files/Copy.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-10T11:10:14+00:00</D:creationdate><D:getlastmodified>Thu, 10 Apr 2014 11:10:14 GMT</D:getlastmodified><D:getcontentlength>271</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+<D:response><D:href>/Text%20Files/Test%20File.txt</D:href><D:propstat><D:prop><D:resourcetype/><D:creationdate>2014-04-12T04:53:22+00:00</D:creationdate><D:getlastmodified>Sat, 12 Apr 2014 04:53:22 GMT</D:getlastmodified><D:getcontentlength>21</D:getcontentlength></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response>
+</D:multistatus>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message