You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jakob Breivik Grimstveit <ja...@grimstveit.no> on 2011/02/12 14:37:32 UTC

[users@httpd] Adding RequestHeader content from script

Hey,

I'd like to add RequestHeader content executing a script - is this possible?

For example:

    RequestHeader add MyHeader `scripts/hello.php`

... and then echo this variable content of MyHeader using the regular

    "Header echo MyHeader"

If this is possible, the headers of my apache server can become ...
quite interesting :-).

Thank you in advance. Keep the great project running!


-- 
Vyrdsamt,
   Jakob Breivik Grimstveit | +47 4829 8152
   http://grimstveit.no/jakob

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Adding RequestHeader content from script

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 12.02.11 14:37, Jakob Breivik Grimstveit wrote:
> I'd like to add RequestHeader content executing a script - is this possible?

Do you mean, to asdd request header at the stage when script headers were
already processed and pushed to the script?

Maybe when apache acts as proxy server...

> For example:
> 
>     RequestHeader add MyHeader `scripts/hello.php`

but not sure if this way...

> ... and then echo this variable content of MyHeader using the regular
> 
>     "Header echo MyHeader"
> 
> If this is possible, the headers of my apache server can become ...
> quite interesting :-).

Why do you want this?

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"The box said 'Requires Windows 95 or better', so I bought a Macintosh".

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org