NAME
httpfile – serve a single web file |
SYNOPSIS
ip/httpfile [ –9d ] [ –c count ] [ –f file ] [ –m mtpt ] [ –s srvname
] url |
DESCRIPTION
Httpfile serves the web page specified by the URL url as a new
file file in the directory mtpt. The default file is the last
path element of the URL, and the default mtpt is the current directory.
Httpfile does not download large files all at once. Instead, it requests 64–kilobyte blocks as they are needed to satisfy reads, caching a few blocks in memory at a time. The –D and –d options enable a trace of the 9P traffic and general debugging messages. The –s option causes httpfile to post the 9P service as /srv/srvname and disables the default mount.
The –c option sets the number of file blocks kept cached in memory
(default 32). |
EXAMPLE
Mount an ISO image on a web server:
|
SOURCE
/sys/src/cmd/ip/httpfile.c |
SEE ALSO
hget(1), webfs(4) |
DIAGNOSTICS
Httpfile requires webfs(4) service mounted on /mnt/web to work. |