home *** CD-ROM | disk | FTP | other *** search
- GoServe Filter routine to return the header sent by a browser
- -------------------------------------------------------------
-
- Sample call:
-
- when sel='!header' then return header()
-
- Subroutine:
-
- /* ----------------------------------------------------------------------- */
- /* HEADER -- return header received from browser */
- /* ----------------------------------------------------------------------- */
- /* This must be in the main filter program (uses REQUEST). */
- /* (Alternatively, REQUEST could be passed as an argument.) */
- /* It returns the GoServe command to send the result. */
- header: procedure expose request
- 'READ HEADER VAR head'
- if rc\=0 then return 'STRING READ command error (rc='rc')'
- crlf='0d0a'x
- all=request''crlf''head
- pre='Request and header ['length(all)+2 'bytes] were:'crlf crlf
- return 'STRING' pre''all
-
- ----------------
- mfc - 1995/04/14
-