Internet
Security
Seminar

Spring 2020
course
site

server side 101

update after class :

I've expanded on the form + cgi I was doing in class, which you can find on shannon .


I've decided that what I proposed on Tuesday was too ambitious. Instead I'd like to go over the basics more slowly, and have each of you create a PHP site with forms, cookies, dynamic content, and data storage in files on the server. Then we'll look at the same task using Flask. And then be ready for a security discussion, and for larger group projects.


An overview is at MDN: server-side website programming

Your goal should be to understand (a) what's actually being sent back and forth with HTTP and any other protocols, and (b) how to actually accomplish that within some of the many choices of web systems and languages.

Topics to understand :

CGI

Although the CGI approach is considered mostly obsolete for several reasons (modern frameworks are faster and do much of the work for you), it has the advantage that of letting you see explicitly how the client-server communication works.

PHP

Work through some PHP basics :

exercises

Can you do those two tasks in javascript using document.cookie ? Why is or isn't that possible or a good idea?

aside

We aren't on this topic yet but ...

https://cs.marlboro.college /cours /spring2020 /internet /notes /feb20
last modified Thu November 21 2024 12:21 pm