
Protocol specific information
-----------------------------

SWI HTTP_GetData
================

Meaning of flags in R0 on entry to this SWI are:

  bit 0 set:   R6 points to alternative user agent identifier
  bit 1 set:   R5 is the length of data pointed to by R4 (if R4 not zero)
  bits 2-7 :   reserved
  bit 29:      reserved for internal use (secure connection flag)
  bit 30:      reserved for use by WebServe (request to not add cookies)
  bit 31:      reserved for use by URL module (if set, this is a proxy request)

Methods in bottom 8 bits of R2 are (NOT a bitfield)
          1:   GET
          2:   HEAD
          3:   reserved - do not use
          4:   POST
      5,6,7:   reserved - do not use
          8:   PUT

Bits 8-15 of R2 are the type of data wanted (if R0:1 set, else in bits 0-31 of R5)
          0:   Body only
          1:   Head only
          2:   Both

Bits 16-31 are reserved and should be zero




SWI "HTTP_EnumerateCookies"
===========================
On entry:
R0 = flags (bit 0 set means action, unset means info only)
     ie only reset bit 16 if bit zero is set
     (bit 1 set means cookies in list, unset means in queue)
R1 = unique cookie handle, 0 for initial call

On exit:
R0 = flags (bit 0 set means secure channel should be used)
R1 = unique cookie handle, 0 for no more cookies
R2 = total number of cookies created
R3 = number of cookies not read
R4 = pointer to domain name string
R5 = pointer to NAME string
R6 = pointer to VALUE string
R7 = pointer to path string



SWI "HTTP_ConsumeCookie"
========================
On entry:
R0 - flags, bit zero set for accept or unset for reject
R1 - session, forget what this is for
R2 - cookie handle

No exit defined


SWI "HTTP_AddCookie"
====================
On entry:
R0 - flags, bit 0 set for secure
R1 - name
R2 - value
R3 - expires
R4 - path
R5 - domain

No exit defined


The following SWI has been withdrawn in favour of an additional parameter
supplied to HTTP_Start.

## SWI "HTTP_UserAgent"
## ====================
## On entry:
## R0 - flags (currently reserved)
## R1 - session ID (ie pollword address, as per all other normal SWIs)
## R2 - pointer to a null terminated string giving the user agent string
## 
## No exit defined
