-
Notifications
You must be signed in to change notification settings - Fork 33
Get files
Jon Watte edited this page Sep 24, 2012
·
1 revision
Home - HTTP Interface - Get files
GET /
GET /favicon.ico
GET /files/FILE
GET /?f=FILE
-
FILE- The name of a file contained thefiles/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 thefiles/directory.
This is used to grab a specific file in the istatd's files/ directory.
- If the URL is
/is given, then/files/index.htmlwill be retrieved. - If the URL is
/favicon.ico, then/files/favicon.icowill be retrieved.
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