add sent_cookie variable

add sent_cookie variable to fetch the cookie of response.