86 lines · 1.2 KB · Text
RawDownload
.TH HTTPFILE 4.SH NAMEhttpfile \- serve a single web file.SH SYNOPSIS.B httpfile[.B -9d][.B -c.I count][.B -f.I file][.B -m.I mtpt][.B -s.I srvname][.B -x.I net].I url.SH DESCRIPTION.I Httpfileserves the web page specified by the URL.I urlas a new file.I filein the directory.IR mtpt .The default.I fileis the last path element of the URL,and the default.I mtptis the current directory..PP.I Httpfiledoes not download large files all at once.Instead, it requests 64-kilobyte blocks as they areneeded to satisfy reads, caching a few blocks in memory at a time..PPThe .B -Dand.B -doptions enable a trace of the 9P trafficand general debugging messages..PPThe.B -soption causes .I httpfileto post the 9P service as.BI /srv/ srvnameand disables the default mount..PPThe.B -xoption specifies an alternate network directory.RI ( e.g., .BR /net.alt )..PPThe.B -coption sets the number of file blocks kept cached in memory (default 32)..SH EXAMPLEMount an ISO image on a web server:.IP.EXip/httpfile http://www.9grid.de/plan9/plan9.iso9660srvmount /srv/9660 /n/iso plan9.iso.EE.SH SOURCE.B /sys/src/cmd/ip/httpfile.c.SH "SEE ALSO.IR hget (1),.IR webfs (4)