3 webfs \- world wide web file system
22 presents a file system interface to the parsing and retrieving
31 is specified, will post a service file descriptor in
34 If the enviroment variable
36 is set, all HTTP request initiated by
38 will be made thru that proxy url.
41 presents a three-level file system suggestive
42 of the network protocol hierarchies
47 The top level contains the files files:
54 file is used to maintain parameters global to the instance of
58 file yields the current values of the parameters.
59 Writing strings of the form
60 .RB `` attr " " value ''
61 sets a particular attribute.
62 The top-level directory also contains
63 numbered directories corresponding to connections, which
64 may be used to fetch a single URL.
65 To allocate a connection, open the
67 file and read a number
72 file is equivalent to the file
74 A connection is assumed closed once all files in its
75 directory have been closed, and is then will be reallocated.
77 Each connection has a URL attribute
80 This URL may be an absolute URL such as
81 .I http://www.lucent.com/index.html
82 or a relative URL such as
86 attribute sets the URL against which relative URLs
88 Once the URL has been set by wrting to the
90 file of the connetcion, its pieces can be retrieved via
91 individual files in the
99 .UU url http://pete:secret@www.example.com:8000/cgi/search?q=kittens#results
103 .UU host www.example.com
109 If there is associated data to be posted with the request,
116 initiates the request. If the request fails,
121 file will fail and return a error string.
125 file has been opend, response headers appear
126 as files in the connection directory. For example
129 file yields the MIME content type of the body data.
130 If the request was redirected, the URL represended
133 directory will change to the final destination.
135 The resulting data may be read from
139 The following is a list of attributes that can be
140 set to do a connection prior initiating the request:
146 Sets a custom useragent string to be used with the request.
149 Sets the MIME content type of the postbody.
152 Usualy, the HTTP method used is
156 file is opend first or
158 otherwise. This can be overriden with the
160 attribute so send arbitrary HTTP requests.
163 Adds arbitrary HTTP headers to be send with
169 .B /sys/src/cmd/webfs
176 should be running and mounted on
178 otherwise cookies will be ignored.