Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apache Header vs RequestHeader

It seems that mod_headers directives Header and RequestHeade have the same functionality. It also seems that the only diference is that Header can read header information sent by PHP, while RequestHeader can not. is that right?

The documentation for Header says:

This directive can replace, merge or remove HTTP response headers. The header is modified just after the content handler and output filters are run, allowing outgoing headers to be modified.

The documentarion for RequestHeader says:

This directive can replace, merge, change or remove HTTP request headers. The header is modified just before the content handler is run, allowing incoming headers to be modified.

like image 263
oabarca Avatar asked Jul 16 '26 16:07

oabarca


1 Answers

It's not right. The difference is request headers vs. response headers.

like image 191
covener Avatar answered Jul 18 '26 23:07

covener



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!