This page is from the Fall 2013 course.
It may be replaced with an updated version later this semester. [Permalink to this version]
It may be replaced with an updated version later this semester. [Permalink to this version]
Problem Set 1 Reference Solution
Our reference solution for PS1 is here: zhttpto.rs. Thanks to Kiet Tran for providing code we used for the reference solution.
Note that our code makes an attempt to close the horrendous security hole of allowing the server to send any requested file by removing '/../'s from the request, but there is (at least) one major security vulnerability remaining. (Finding it is worth a Rust sticker.)