Get cookie from http response

how do i get the cookie response from an http post request?