Welcome to the Linux Foundation Forum!

Exercise 8.1 clarification

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:


  1. Content-type: text/plain


    File is bar

 

Am I misunderstanding something?

Comments

  • 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. 

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training