You must hand in by using git
bitbucket.org,
gitlab.com, or
github.com,
git push your local repo to the above remote repo.
node_modules/
.gitignore file.
Send a mail to <nmla@iba.dk> with:
handin <subjectname>'
in the subject line of your mail
Using your own version of the lesson's myg52/main.js
You should submit something like
http://localhost:3000/test.html?name=Niels&position=Lecturer&height=183
to the started server.
Do the same experiment with different URL lines from your
browser. Try varying the test.html to something
else, and try varying the query string
too.
Check the log of the server and write briefly an explanation to the output.
Using your own version of myg53/main.js. You must
write an HTML5 page with a form
containing three or four fields, ie similar to
Example 16.5 but with more input
fields.
This page must be run in your browser via the file
protocol. It cannot yet be
served by your server. On submit it must use
method="post" action="http://localhost:3000/" as
server. The server must of course be started.
When you submit data from the form, check the log of the server
and write briefly an explanation to the output. Explain also
why the page with the form must be started with the file
protocol.
This is very similar to the previous assignment.
Using your own version of myg53/main.js. You must
write an HTML5 page with a form
containing three or four fields, ie similar to
Example 16.5 but with more input
fields.
This page must be run in your browser via the file
protocol. It cannot yet be
served by your server. On submit it must use
method="get" action="http://localhost:3000/" as
server. The server must of course be started.
When you submit data from the form, check the log of the server
and write briefly an explanation to the output. Explain also
why the page with the form must be started with the file
protocol.
When you have finished testing this, explain the differences
between submitting form data with the post, and
with the get method. It seems to be a common
misunderstanding that you can only request data with the
get method. Is that true?
Write, test, and document a module libWebUtil.js
that takes GET as well as POST data and turns them into
Get and Post objects respectively.
The objects must contain the received name, values pairs, and
present them in the proper object syntax.