Apache CGI and variables

The name of the pictureThe name of the pictureThe name of the pictureClash 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.









share|improve this question



















  • 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














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.









share|improve this question



















  • 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












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.









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay