RPGspSetHeader Function


Lets you send messages to the web server via the header of your page. Does not return a value.


Syntax

RPGspSetHeader(header string)

Part Description
header string Required. Any valid http header string.


Remarks

RPGspSetHeader allows you to send HTTP header messages to your web server. A common use for the RPGspSetHeader function is to control the caching of the browser page.


Examples

The following line of code uses RPGspSetHeader to turn off caching:

     C                   CallP     RPGspSetHeader('Cache-Control: no-cache')


The following line uses RPGspSetHeader to specify that the content of the page is in British English:

     C                   CallP     RPGspSetHeader('Content-Language: en_UK')


See Also

RPGspSetCntType


Profound Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925