Skip to content

Get files

Jon Watte edited this page Sep 24, 2012 · 1 revision

Home - HTTP Interface - Get files

Usage

GET /
GET /favicon.ico
GET /files/FILE
GET /?f=FILE

Parameters

  • FILE - The name of a file contained the files/ directory. Required, depending on path provided.
  • This path cannot contain any slashes / -- they will be replaced by dots . if given. Thus, paths can only be files directly under the files/ directory.

Overview

This is used to grab a specific file in the istatd's files/ directory.

  • If the URL is / is given, then /files/index.html will be retrieved.
  • If the URL is /favicon.ico, then /files/favicon.ico will be retrieved.

Response

If the file exists,

  • Status code: 200
  • The response will be served with appropriate MIME type and file data.

If the file does not exist,

  • Status code: 404

Clone this wiki locally