array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/~fielding/index.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
'HTTP_DESTINATION' => 'http://www.ics.uci.edu/users/f/fielding/index.html',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
),
2 =>
array (
'collection' =>
array (
'description' => '>>Request
COPY /container/ HTTP/1.1
Host: www.foo.bar
Destination: http://www.foo.bar/othercontainer/
Depth: infinity
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
*
>>Response
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
http://www.foo.bar/othercontainer/R2/
HTTP/1.1 412 Precondition Failed
',
),
'request' =>
array (
'body' => '
*
',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'HTTP_DESTINATION' => 'http://www.foo.bar/othercontainer/',
'HTTP_DEPTH' => 'infinity',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
),
),
'response' =>
array (
'body' => '
http://www.foo.bar/othercontainer/R2/
HTTP/1.1 412 Precondition Failed
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
3 =>
array (
'overwrite' =>
array (
'description' => '>>Request
COPY /~fielding/index.html HTTP/1.1
Host: www.ics.uci.edu
Destination: http://www.ics.uci.edu/users/f/fielding/index.html
Overwrite: F
>>Response
HTTP/1.1 412 Precondition Failed
',
),
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/~fielding/index.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
'HTTP_DESTINATION' => 'http://www.ics.uci.edu/users/f/fielding/index.html',
'HTTP_OVERWRITE' => 'F',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 412 Precondition Failed',
),
),
4 =>
array (
'success' =>
array (
'description' => '>>Request
COPY /~fielding/index.html HTTP/1.1
Host: www.ics.uci.edu
Destination: http://www.ics.uci.edu/users/f/fielding/index.html
>>Response
HTTP/1.1 204 No Content
',
),
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'COPY',
'REQUEST_URI' => '/~fielding/index.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
'HTTP_DESTINATION' => 'http://www.ics.uci.edu/users/f/fielding/index.html',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
),
5 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'DELETE',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
),
),
'response' =>
array (
'body' => '
http://www.foo.bar/container/resource3
HTTP/1.1 423 Locked
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
6 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/~fielding',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Content-Length' => '4096',
'ETag' => '89637f586f72a744fc0692a7eb9076e2',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 200 OK',
),
),
7 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/~fielding/index.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
),
),
'response' =>
array (
'body' => '
Foo Bar
',
'headers' =>
array (
'ETag' => '5ed4bd36ad87f04d473460f7ea1a9223',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/html; charset="utf-8"',
),
'status' => 'HTTP/1.1 200 OK',
),
),
8 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MKCOL',
'REQUEST_URI' => '/webdisc/xfiles/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.server.org',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
),
9 =>
array (
'collection' =>
array (
'description' => '>>Request
MOVE /container/ HTTP/1.1
Host: www.foo.bar
Destination: http://www.foo.bar/othercontainer/
Overwrite: F
If: ()
()
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
*
>>Response
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
http://www.foo.bar/othercontainer/C2/
HTTP/1.1 423 Locked
',
),
'request' =>
array (
'body' => '
*
',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'HTTP_DESTINATION' => 'http://www.foo.bar/othercontainer/',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => '() ()',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
),
),
'response' =>
array (
'body' => '
http://www.foo.bar/othercontainer/C2/
HTTP/1.1 412 Precondition Failed
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
10 =>
array (
'resource' =>
array (
'description' => '>>Request
MOVE /~fielding/index.html HTTP/1.1
Host: www.ics.uci.edu
Destination: http://www.ics.uci.edu/users/f/fielding/index.html
>>Response
HTTP/1.1 201 Created
Location: http://www.ics.uci.edu/users/f/fielding/index.html
',
),
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/~fielding/index.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
'HTTP_DESTINATION' => 'http://www.ics.uci.edu/users/f/fielding/index.html',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
),
11 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'OPTIONS',
'REQUEST_URI' => '/~fielding',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'DAV' => '1',
'Allow' => 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, DELETE, COPY, MOVE, MKCOL, PUT',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 200 OK',
),
),
12 =>
array (
'allprop' =>
array (
'description' => '>>Request
PROPFIND /container/ HTTP/1.1
Host: www.foo.bar
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
>>Response
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
http://www.foo.bar/container/
Box type A
Hadrian
1997-12-01T17:42:21-08:00
Example collection
HTTP/1.1 200 OK
http://www.foo.bar/container/front.html
Box type B
1997-12-01T18:27:21-08:00
Example HTML resource
4525
text/html
zzyzx
Monday, 12-Jan-98 09:25:56 GMT
HTTP/1.1 200 OK
',
),
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'HTTP_DEPTH' => '1',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
),
),
'response' =>
array (
'body' => '
http://www.foo.bar/container/
1997-12-01T17:42:21-0800
Example collection
en
httpd/unix-directory
e81e84d5197f72cd038aa2a768d15247
Mon, 15 Aug 2005 15:13:00 +0000
4096
Box type A
Hadrian
HTTP/1.1 200 OK
http://www.foo.bar/container/front.html
1997-12-01T18:27:21-0800
Example HTML resource
en
text/html
zzyzx
Mon, 12 Jan 1998 09:25:56 +0000
4525
Box type B
HTTP/1.1 200 OK
http://www.foo.bar/container/R2
2003-05-27T11:27:00+0000
R2
en
httpd/unix-directory
08f842b302fbfbfde8049178085e6972
Mon, 15 Aug 2005 15:13:00 +0000
4096
HTTP/1.1 200 OK
http://www.foo.bar/container/resource3
2003-05-27T11:27:00+0000
resource3
en
application/octet-stream
a952a3dcd83383fc7dbacee5f21106cb
Mon, 15 Aug 2005 15:13:00 +0000
0
HTTP/1.1 200 OK
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
13 =>
array (
'prop' =>
array (
'description' => '>>Request
PROPFIND /file HTTP/1.1
Host: www.foo.bar
Content-type: text/xml; charset="utf-8"
Content-Length: xxxx
>>Response
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
http://www.foo.bar/file
Box type A
J.J. Johnson
HTTP/1.1 200 OK
HTTP/1.1 403 Forbidden
The user does not have access to
the DingALing property.
There has been an access violation error.
',
),
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/file',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
),
),
'response' =>
array (
'body' => '
http://www.foo.bar/file
Box type A
J.J. Johnson
HTTP/1.1 200 OK
HTTP/1.1 404 Not Found
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
14 =>
array (
'propname' =>
array (
'description' => '>>Request
PROPFIND /container/ HTTP/1.1
Host: www.foo.bar
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
>>Response
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
http://www.foo.bar/container/
HTTP/1.1 200 OK
http://www.foo.bar/container/front.html
HTTP/1.1 200 OK
',
),
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
),
),
'response' =>
array (
'body' => '
http://www.foo.bar/container/
HTTP/1.1 200 OK
http://www.foo.bar/container/front.html
HTTP/1.1 200 OK
http://www.foo.bar/container/R2
HTTP/1.1 200 OK
http://www.foo.bar/container/resource3
HTTP/1.1 200 OK
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
15 =>
array (
'request' =>
array (
'body' => '
Jim Whitehead
Roy Fielding
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPPATCH',
'REQUEST_URI' => '/bar.html',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.com',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
),
),
'response' =>
array (
'body' => '
http://www.foo.bar/bar.html
Jim Whitehead
Roy Fielding
HTTP/1.1 403 Forbidden
HTTP/1.1 424 Failed Dependency
',
'headers' =>
array (
'Content-Type' => 'text/xml; charset="utf-8"',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
),
'status' => 'HTTP/1.1 207 Multi-Status',
),
),
16 =>
array (
'request' =>
array (
'body' => 'Test text to put
',
'server' =>
array (
'REQUEST_METHOD' => 'PUT',
'REQUEST_URI' => '/~fielding/upload.txt',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.ics.uci.edu',
'CONTENT_TYPE' => 'text/plain; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '17',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'ETag' => '0546b17485ca927ea9a56c5cb6b8d8ac',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 201 Created',
),
),
);
?>