- added a method to read cookie values from the header