HTTP is the basis for all Web communication.

Implementing Routing

Web servers must implement the basic HTTP methods appropriately.

Exercise 6.1

Do the following exercises.

When that is done, consider the following questions.

  1. Identify the request methods that you can and can’t test using the two tools listed above. If a method cannot be testing using a particular tool, explain why this is the case. List the Curl commands you used successfully.
  2. What is the most appropriate HTTP response code for pages that aren’t defined by an Express route?

Save your answers to these questions in a lab06.txt file in the root of your lab repo.

Using Forms

HTML Forms are a fundamental input mechanism for web apps.

Exercise 6.2

Work through the tutorial specified here: My first HTML form. Note the following.

When that is done, consider the following questions.

  1. What HTTP methods do forms support?
  2. How is the form data being passed back to the server and what syntactic form does it take? Is the data modified in any way?

Save your answers to these questions in your lab06.txt file.

Checking in

We will grade your work according to the following criteria: