Sep 20
CGI
Comments on homework have been posted. Most of you should
spend a bit more time on cookies, forms, and HTTP headers,
in whichever server language you choose to work in.
There are three distinct skills to master:
- Getting any script to run on the server, including editing (with correct file formats) and debugging.
- Understanding the nuts'n'bolts of a scripting language: string manipulation, function calls, file input/output, environment variables, libraries, lists and other data structures, loops, conditionals and booleans.
- Understanding the CGI data manipulation : how HTTP headers are printed and cookies are set, pulling data (i.e. form key,value pairs and cookies) from web pages into the script, and generating content (HTML, images, or whatever).
I have written another demo which I would like you to look at closely.
The homework is pretty open ended, but one good choice would be to try
to do something like that script using node.js (i.e. server side javascript).
Javascript
Continue discussion from last time, using notes from last Tues.
If we get far enough, pick a project to do together in class.