Added ability to get header and cookie info