lemonadeice
lemonadeice

Reputation: 13

Lighttpd SSI: Setting variable to value of HTTP_ACCEPT

I am using this shtml file for testing.

<!--#set var="lemon" value="HTTP_ACCEPT" -->
<!--#echo var="lemon" -->
<!--#include virtual="HTTP_ACCEPT" -->
<!--#include file="HTTP_ACCEPT" -->
<!--#fsize virtual="HTTP_ACCEPT" -->
<!--#flastmod virtual="HTTP_ACCEPT" -->

This echoes the value stored in the variable lemon, but the variable lemon does not have the value of HTTP_ACCEPT. How do I fix this?

I have tried it like this too.

<!--#set var="lemon" value="$HTTP_ACCEPT" -->
<!--#echo var="lemon" -->
<!--#include virtual="HTTP_ACCEPT" -->
<!--#include file="HTTP_ACCEPT" -->
<!--#fsize virtual="HTTP_ACCEPT" -->
<!--#flastmod virtual="HTTP_ACCEPT" -->

Upvotes: 1

Views: 211

Answers (1)

gstrauss
gstrauss

Reputation: 2404

see wikipedia: Server Side Includes

<!--#echo var="HTTP_ACCEPT"-->

Upvotes: 1

Related Questions