Welcome to the Linux Foundation Forum!

Exercise 8.1 clarification

fliker09
fliker09 Posts: 39
edited October 2017 in LFS211 Class Forum

One thing I would like to clarify - what is the purpose of:

echo -e "Content-type: text/plain\n\n"

?

From what I understand - it is destined for browser, but I actually get it on the page like:


Content-type: text/plain


File is bar

 

Am I misunderstanding something?

Comments

  • lee42x
    lee42x Posts: 380
    edited September 2017

    The echo command causes the string to be printed rather than interpeted by the browser. This is the cgi script exicuting. 

Categories

Upcoming Training