Program outputs
The query_contents program must return a response that is UTF-8 encoded, and the response must include the following header:content-type: text/plain;charset=utf8The body of the response must contain one line with a return code followed by the directory listing, with one object or container name per line:<return-code> <file or directory> <file or directory> <file or directory>where <return-code> is 100, 102, or 103, as defined in the following table.Object names and containers in the response must follow these rules:
Query Status Description QUERY_STATUS_OK = 100 The directory listing operation succeeded. QUERY_STATUS_NO_EXISTS = 102 The directory queried does not exist. QUERY_STATUS_NOT_DIR = 103 The directory queried is not a directory.
- Containers end in two forward slashes, for example,: /path/directory//
- Punctuation "." and ".." are not included in the directory entries.
- Object or container data must be UTF-8 encoded and then URI encoded.
Parent topic: Custom query_contents program