To access the default HTTP headers, you can extract their values from the environment and display them. This example uses a shell script, called TEST.SH, to return these variables to the browser.
#!/bin/sh # First put out a valid header echo Content-Type: text/html echo # Then echo out the variables echo HTTP_SM_USER: $HTTP_SM_USER echo HTTP_SM_AUTHTYPE: $HTTP_SM_AUTHTYPE echo HTTP_SM_AUTHDIRNAME: $HTTP_SM_AUTHDIRNAME echo HTTP_SM_SERVERSESSIONID: $HTTP_SM_SERVERSESSIONID echo HTTP_SM_SESSIONID: $HTTP_SM_SESSIONID
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |