Remember res can be nil. Should be checked before sending and using it in get_useful_cookies