3 webfs \- world wide web file system
16 presents a file system interface to the parsing and retrieving
25 is specified, will post a service file descriptor in
28 If the enviroment variable
30 is set, all HTTP request initiated by
32 will be made thru that proxy url.
35 presents a three-level file system suggestive
36 of the network protocol hierarchies
41 The top level contains the files files:
48 file is used to maintain parameters global to the instance of
52 file yields the current values of the parameters.
53 Writing strings of the form
54 .RB `` attr " " value ''
55 sets a particular attribute.
56 The top-level directory also contains
57 numbered directories corresponding to connections, which
58 may be used to fetch a single URL.
59 To allocate a connection, open the
61 file and read a number
66 file is equivalent to the file
68 A connection is assumed closed once all files in its
69 directory have been closed, and is then will be reallocated.
71 Each connection has a URL attribute
74 This URL may be an absolute URL such as
75 .I http://www.lucent.com/index.html
76 or a relative URL such as
80 attribute sets the URL against which relative URLs
82 Once the URL has been set by wrting to the
84 file of the connetcion, its pieces can be retrieved via
85 individual files in the
93 .UU url http://pete:secret@www.example.com:8000/cgi/search?q=kittens#results
97 .UU host www.example.com
103 If there is associated data to be posted with the request,
110 initiates the request. If the request fails,
115 file will fail and return a error string.
119 file has been opend, response headers appear
120 as files in the connection directory. For example
123 file yields the MIME content type of the body data.
124 If the request was redirected, the URL represended
127 directory will change to the final destination.
129 The resulting data may be read from
133 The following is a list of attributes that can be
134 set to to a connection prior initiating the request:
140 Sets a custom useragent string to be used with the request.
143 Sets the MIME content type of the postbody.
146 Usualy, the HTTP method used is
150 file is opend first or
152 otherwise. This can be overriden with the
154 attribute so send arbitrary HTTP requests.
157 Adds arbitrary HTTP headers to be send with
163 .B /sys/src/cmd/webfs
170 should be running and mounted on
172 otherwise cookies will be ignored.