Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
WebSpeed API Reference : output-http-header
 

output-http-header

This function outputs the specified HTTP header with an associated value followed by a carriage return and linefeed. If the header name is blank, then the value and carriage return\linefeed pair are still output.

Location

web\method\cgiutils.i

Parameters

INPUT p_header AS CHARACTER
The HTTP Header name.
INPUT p_value AS CHARACTER
The header value.

Returns

CHARACTER

Notes

This procedure must be executed before the output-content-type function.

Examples

This should cause the Web server to do an internal redirection for the specified URL in the location header, as shown:
output-http-header("Status":U, "302
Redirect":U).output-http-header("Location":U,
"\cgi-bin\demo.sh\restart.w":U).output-http-header("", "").

See also

output-content-type