Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Perl Programming quiz, level Advanced, question 25
Question: When writing a CGI script and generating an HTML page, how must you start your response?
Answer 1:With the line Content-type: text/html and follow it with a blank line (i.e. with two new line characters)
This was the CORRECT answer
Answer 2:You must send back three lines (minimum):
Content-type: text/html
Status: 200 OK

(then a blank line)
Answer 3:EITHER with a line Content-type: text/html OR with a line starting <HTML>
Answer 4:With a line starting <HTML>

This was a question from our quiz ... but we have now provided you with the answer (above) - we prefer to provide you with information rather than to puzzle you.
Lua
PHP
Perl
Java
MySQL
Python
Linux
Apache Tomcat
Apache httpd
C and C++
Tcl and Tcl/Tk
Hotel
Recent additions


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2012: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho