array (
'request' =>
array (
'body' => '
http://example.com/~ejw/contact.html
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/workspace/webdav/proposal.doc',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
'HTTP_AUTH' => 'Digest username="ejw", realm="ejw@example.com", nonce="...", uri="/workspace/webdav/proposal.doc", response="...", opaque="..."',
),
),
'response' =>
array (
'body' => '
Infinity
http://example.com/~ejw/contact.html
Second-604800
opaquelocktoken:e71d4fae-5dec-22d6-fea5-00a0c91e6be4
2008-11-10T00:16:47+00:00
',
'headers' =>
array (
'Lock-Token' => 'opaquelocktoken:e71d4fae-5dec-22d6-fea5-00a0c91e6be4',
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 200 OK',
),
),
2 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/workspace/webdav/proposal.doc',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-40',
'HTTP_IF' => '()',
'HTTP_AUTH' => 'Digest username="ejw", realm="ejw@example.com", nonce="...", uri="/workspace/webdav/proposal.doc", response="...", opaque="..."',
),
),
'response' =>
array (
'body' => '
Infinity
http://example.com/~ejw/contact.html
Second-40
opaquelocktoken:e71d4fae-5dec-22d6-fea5-00a0c91e6be4
2008-11-09T22:14:18+00:00
',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Type' => 'text/xml; charset="utf-8"',
),
'status' => 'HTTP/1.1 200 OK',
),
),
3 =>
array (
'request' =>
array (
'body' => '
http://example.com/~ejw/contact.html
',
'server' =>
array (
'REQUEST_METHOD' => 'LOCK',
'REQUEST_URI' => '/webdav/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_TIMEOUT' => 'Infinite, Second-4100000000',
'HTTP_DEPTH' => 'infinity',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
'HTTP_AUTH' => 'Digest username="ejw", realm="ejw@example.com", nonce="...", uri="/workspace/webdav/proposal.doc", response="...", opaque="..."',
),
),
'response' =>
array (
'body' => '
http://example.com/webdav/secret
HTTP/1.1 403 Forbidden
http://example.com/webdav/
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',
),
),
4 =>
array (
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'HTTP_CONTENT_LENGTH' => '1234',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
),
),
'response' =>
array (
'body' => '
http://example.com/container/
0
Jane Smith
Second-40
opaquelocktoken:f81de2ad-7f3d-a1b2-4f3c-00a0c91a9d76
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',
),
),
5 =>
array (
'request' =>
array (
'body' => '
*
',
'server' =>
array (
'REQUEST_METHOD' => 'MOVE',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'HTTP_DESTINATION' => 'http://example.com/othercontainer/',
'HTTP_OVERWRITE' => 'F',
'HTTP_IF' => '() ()',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
'HTTP_CONTENT_LENGTH' => '1234',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => 0,
),
'status' => 'HTTP/1.1 412 Precondition Failed',
),
),
6 =>
array (
'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://example.com/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://example.com/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://example.com/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://example.com/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',
),
),
7 =>
array (
'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://example.com/container/
HTTP/1.1 200 OK
http://example.com/container/front.html
HTTP/1.1 200 OK
http://example.com/container/R2
HTTP/1.1 200 OK
http://example.com/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',
),
),
8 =>
array (
'request' =>
array (
'body' => '
',
'server' =>
array (
'REQUEST_METHOD' => 'PROPFIND',
'REQUEST_URI' => '/container/',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'www.foo.bar',
'HTTP_CONTENT_LENGTH' => '1234',
'CONTENT_TYPE' => 'text/xml; charset="utf-8"',
),
),
'response' =>
array (
'body' => '
http://example.com/container/
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',
),
),
9 =>
array (
'request' =>
array (
'body' => '',
'server' =>
array (
'REQUEST_METHOD' => 'UNLOCK',
'REQUEST_URI' => '/workspace/webdav/info.doc',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'HTTP_HOST' => 'example.com',
'HTTP_LOCK_TOKEN' => '',
'HTTP_AUTH' => 'Digest username="ejw", realm="ejw@example.com", nonce="...", uri="/workspace/webdav/proposal.doc", response="...", opaque="..."',
),
),
'response' =>
array (
'body' => '',
'headers' =>
array (
'Server' => 'eZComponents/dev/ezcWebdavTransportMock',
'Content-Length' => '0',
),
'status' => 'HTTP/1.1 204 No Content',
),
),
);
?>