#12: add cookie verification functionality.  Peng & Jinwen

We add the functionality of handling http headers when verifying the request.