home *** CD-ROM | disk | FTP | other *** search
- Structures & Variables
- ----------------------
-
- fetch
- -----
-
- +0 - Next
- +4 - Browser's handle
- +8 - file handle for the URL
- +12 - file handle for the fetched data
- +16 - socket number
- +20 - ptr to header fields
- +24 - amount of header sent
- 0 when receiving MIME
- -1 when receiving contents
- -2 when receiving contents and InProgress message sent
- (may be set back to -1 if the message is not acked)
- +28 - size of header
- +32 - my_ref from Fetch message
- +36 - task handle of requester (i.e. Browser)
- +40 - Copy of flags from request message
- +44 - discovered file type
- +48 - Input buffer
- +52 - ptr to input buffer
- +56 - Expected file length (or -1 for unknown)
- +60 - ptr to local filename
- +64 - PTR authentication string
- 0 = none needed, probably, must ask for the info if we
- receive a WWW-AUTHENTICATE
- -1 - Was needed (probably) and was sent.
- if > 0 on closing the connection AND error = 401 get auth data
- and fetch again
- +68 - Error number from header
- 401 - authorisation failed if +64 = -1
- ask for auth info and retry IF +64 >0
- +72 - Handle of Post file or -1 for GETs
- +76 - Fetch method flag
- +80.. - URL to fetch
-
- Realms (Authentication data)
- ------
- +0 - Next
- +4 - ptr to coded password info
- +8
- ..
- n - url the authentication applies to.
-