January 01, 2002
Writing CGI Scripts in REXX (Web Techniques, May 1996)
Writing CGI Scripts in REXX, Listing 6 (Web Techniques, May 1996)
Web Techniques Magazine
May 1996
Volume 1, Issue 2 |
Writing CGI Scripts in REXX
Listing Six
/* PrintHeader
Puts out the magic line which tells WWW that what kind of
document is to follow. If no argument is provided, then
the default document type is HTML, else the argument
provides the type/subtype, e.g.
SAY PrintHeader('application/postscript')
*/
PrintHeader: PROCEDURE; PARSE ARG Content
/*N.B. '0a'x is the hex code for a newline*/
IF Content/='' THEN RETURN 'Content-type:' Content||'0a'x
ELSE RETURN 'Content-type: text/html'||'0a'x
( back )
Copyright Web Techniques. All rights reserved.
Previous Page |
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
Next Page