Apache CGI and variables
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Who is responsible to passing information from a client request to CGI variables (Apache?). We use IBM Tivoli Access Manager and it basically pre-authenticates all users and sets a variable in the HTTP header iv-user
. I can than see on Apache that the variable is "rewritten ?" to HTTP_IV_USER
.
CGI specification
Protocol-Specific Meta-Variables
The server SHOULD set meta-variables specific to the protocol and
scheme for the request. Interpretation of protocol-specific
variables depends on the protocol version in SERVER_PROTOCOL. The
server MAY set a meta-variable with the name of the scheme to a
non-NULL value if the scheme is not the same as the protocol. The
presence of such a variable indicates to a script which scheme is
used by the request.
Meta-variables with names beginning with "HTTP_" contain values read
from the client request header fields, if the protocol used is HTTP.
The HTTP header field name is converted to upper case, has all
occurrences of "-" replaced with "_" and has "HTTP_" prepended to
give the meta-variable name. The header data can be presented as
sent by the client, or can be rewritten in ways which do not change
its semantics.
apache-httpd variable cgi
add a comment |
up vote
0
down vote
favorite
Who is responsible to passing information from a client request to CGI variables (Apache?). We use IBM Tivoli Access Manager and it basically pre-authenticates all users and sets a variable in the HTTP header iv-user
. I can than see on Apache that the variable is "rewritten ?" to HTTP_IV_USER
.
CGI specification
Protocol-Specific Meta-Variables
The server SHOULD set meta-variables specific to the protocol and
scheme for the request. Interpretation of protocol-specific
variables depends on the protocol version in SERVER_PROTOCOL. The
server MAY set a meta-variable with the name of the scheme to a
non-NULL value if the scheme is not the same as the protocol. The
presence of such a variable indicates to a script which scheme is
used by the request.
Meta-variables with names beginning with "HTTP_" contain values read
from the client request header fields, if the protocol used is HTTP.
The HTTP header field name is converted to upper case, has all
occurrences of "-" replaced with "_" and has "HTTP_" prepended to
give the meta-variable name. The header data can be presented as
sent by the client, or can be rewritten in ways which do not change
its semantics.
apache-httpd variable cgi
1
Possible duplicate of Apache CGI Workflow
– Rui F Ribeiro
12 hours ago
Thank you. The linked post indeed helps but now the question would be how does the server set them?
– blablatrace
12 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Who is responsible to passing information from a client request to CGI variables (Apache?). We use IBM Tivoli Access Manager and it basically pre-authenticates all users and sets a variable in the HTTP header iv-user
. I can than see on Apache that the variable is "rewritten ?" to HTTP_IV_USER
.
CGI specification
Protocol-Specific Meta-Variables
The server SHOULD set meta-variables specific to the protocol and
scheme for the request. Interpretation of protocol-specific
variables depends on the protocol version in SERVER_PROTOCOL. The
server MAY set a meta-variable with the name of the scheme to a
non-NULL value if the scheme is not the same as the protocol. The
presence of such a variable indicates to a script which scheme is
used by the request.
Meta-variables with names beginning with "HTTP_" contain values read
from the client request header fields, if the protocol used is HTTP.
The HTTP header field name is converted to upper case, has all
occurrences of "-" replaced with "_" and has "HTTP_" prepended to
give the meta-variable name. The header data can be presented as
sent by the client, or can be rewritten in ways which do not change
its semantics.
apache-httpd variable cgi
Who is responsible to passing information from a client request to CGI variables (Apache?). We use IBM Tivoli Access Manager and it basically pre-authenticates all users and sets a variable in the HTTP header iv-user
. I can than see on Apache that the variable is "rewritten ?" to HTTP_IV_USER
.
CGI specification
Protocol-Specific Meta-Variables
The server SHOULD set meta-variables specific to the protocol and
scheme for the request. Interpretation of protocol-specific
variables depends on the protocol version in SERVER_PROTOCOL. The
server MAY set a meta-variable with the name of the scheme to a
non-NULL value if the scheme is not the same as the protocol. The
presence of such a variable indicates to a script which scheme is
used by the request.
Meta-variables with names beginning with "HTTP_" contain values read
from the client request header fields, if the protocol used is HTTP.
The HTTP header field name is converted to upper case, has all
occurrences of "-" replaced with "_" and has "HTTP_" prepended to
give the meta-variable name. The header data can be presented as
sent by the client, or can be rewritten in ways which do not change
its semantics.
apache-httpd variable cgi
apache-httpd variable cgi
edited 12 hours ago
Rui F Ribeiro
38.1k1475123
38.1k1475123
asked 12 hours ago
blablatrace
437
437
1
Possible duplicate of Apache CGI Workflow
– Rui F Ribeiro
12 hours ago
Thank you. The linked post indeed helps but now the question would be how does the server set them?
– blablatrace
12 hours ago
add a comment |
1
Possible duplicate of Apache CGI Workflow
– Rui F Ribeiro
12 hours ago
Thank you. The linked post indeed helps but now the question would be how does the server set them?
– blablatrace
12 hours ago
1
1
Possible duplicate of Apache CGI Workflow
– Rui F Ribeiro
12 hours ago
Possible duplicate of Apache CGI Workflow
– Rui F Ribeiro
12 hours ago
Thank you. The linked post indeed helps but now the question would be how does the server set them?
– blablatrace
12 hours ago
Thank you. The linked post indeed helps but now the question would be how does the server set them?
– blablatrace
12 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f481268%2fapache-cgi-and-variables%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Possible duplicate of Apache CGI Workflow
– Rui F Ribeiro
12 hours ago
Thank you. The linked post indeed helps but now the question would be how does the server set them?
– blablatrace
12 hours ago