Kbase P114698: How to change the HTTP header that is sent back to the client?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/02/2011 |
|
Status: Verified
GOAL:
How to change the HTTP header that is sent back to the client?
GOAL:
How to change HTTP status sent in the HTTP header?
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
FIX:
The output-http-header function can be used. The function outputs the specified HTTP header with an associated value followed by a carriage return and linefeed, for example:
output-http-header("Status", "401 Unauthorized":U).
The HTTP result in this case would be:
GET /scripts/cgiip.exe/WService=wsbroker1/httpheader.p
HTTP/1.1 401 Unauthorized
Server: Microsoft-IIS/5.1
Date: Tue, 28 Mar 2006 20:33:42 GMT
Content-Length: 4347