NAME
httpfile – serve a single web file

SYNOPSIS
httpfile [ –9d ] [ –c count ] [ –f file ] [ –m mtpt ] [ –s srvname ] [ –x net ] 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 –x option specifies an alternate network directory (e.g., /net.alt).

The –c option sets the number of file blocks kept cached in memory (default 32).

EXAMPLE
Mount an ISO image on a web server:
ip/httpfile http://www.9grid.de/plan9/plan9.iso
9660srv
mount /srv/9660 /n/iso plan9.iso

SOURCE
/sys/src/cmd/ip/httpfile.c

SEE ALSO
hget(1), webfs(4)
Copyright © 2024 Alcatel-Lucent. All rights reserved.