Dynamic Web Servers

Recap

  1. Servers can generate HTML on the fly
    • e.g., generating a directory listing
  2. Servers can launch external program whose output is a web page.
    1. Could be just any other program that generates HTML in an ad-hoc method.
    2. Could be a two-part system: code calculates several key variables, then they aer substituted into a mostly-complete HTML documents (e.g., the Ruby example I showed)
    3. HTML and code are mixed

Node / NPM

Input from web apps

GET

Forms

POST

GET vs POST

Other verbs