HMP Pull Mode
Firmware 3.0, version 1.0
11
The ETag is an identifier which must be unique for each file. Two files with the same ETag
and the same file name will be considered as identical. The HMP100 will use the ETag to
check whether a file must be uploaded or not.
Example:
Description of the index file with an ETag:
<response>
<href>/index.svg</href>
<propstat><prop>
<getetag>"3d06d7-7e0-f58a7c0"</getetag>
</prop></propstat>
</response>
<getlastmodified>
Specifies the date of the last modification of a file.
If the ETag is not present, the HMP will use the date of the last modification to check
whether a file must be uploaded or not.
Example:
Description of an svg file called spinetix.svg located in the media folder:
<response>
<href>/media/spinetix.svg</href>
<propstat><prop>
<getlastmodified>Wed, 23 Jul 2008 13:38:37 GMT</getlastmodified>
</prop></propstat>
</response>
Complete file
Example of XML description of a server containing an index.svg and spinetix.svg in a
folder called media.
This example can be downloaded from:
http://demo.spinetix.com/project/default/publish.xml
<?
xml
version
="1.0"
encoding
="UTF-8"?>
<
projects
xmlns
="http://www.spinetix.com/namespace/1.0/spxproj">
<
multistatus
xmlns
="DAV:"
xml:base
="http://demo.spinetix.com/project/default/" >
<
response
>
<
href
>/</
href
>
</
response
>
<
response
>
<
href
>/index.svg</
href
>
<
propstat
><
prop
>
<
getetag
>"3d06d7-7e0-f58a7c0"</
getetag
>
</
prop
></
propstat
>
</
response
>
<
response
>
<
href
>/media/</
href
>
</
response
>
<
response
>
<
href
>/media/spinetix.svg</
href
>
<
propstat
><
prop
>
<
getlastmodified
>Wed, 23 Jul 2008 13:38:37 GMT</
getlastmodified
>
</
prop
></
propstat
>
</
response
>