Added referer and cookie parsing.