Range Header

Topic Last Modified: 2006-06-13

The Range header is used to specify which rows are to be returned in a client WebDAV SEARCH Method.

SEARCH /public/folder1/ HTTP/1.1
Content-Type: text/xml
Content-Length: XXX
Range: rows=20-39
Specification Recordset result

Range: rows=20-39

Rows 30-39

Range: rows=0-5, 10-15, 20-25, 30-35

Discontinuous rows as specified

Range: rows=-50

Last 50 rows

Range: rows=228-

All rows from the 228th to the end of the result set

Range: rows=0-4,-5

The first and last five rows

Range: rows=-0

Could be used by clients doing replication

Example

Use the XMLHTTP COM Class to set the HTTP request header for a certain range, as in the following example where req is an XMLHTTPRequest object:

set req = createobject("microsoft.xmlhttp")
req.open "SEARCH", strURL, false, "NYCDomain\Administrator", "pw4me"
req.setrequestheader "Translate", "f"
req.setrequestheader "Content-Type", "text/xml"
req.setrequestheader "Depth", "0"
req.setRequestHeader "Range", "rows=10-20,40-50"
req.send doc

See Also

Other Resources

Searching Folders (WebDAV)
SEARCH Method