term% cat index.txt HTTPFILE(4) Kernel Interfaces Manual HTTPFILE(4)
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 re‐
quests 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 de‐
bugging 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 (de‐
fault 32).
EXAMPLE
Mount an ISO image on a web server:
ip/httpfile http://www.r-36.net/9front/9front.iso
9660srv
mount /srv/9660 /n/iso 9front.iso
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.
HTTPFILE(4)