I want to extract values from Response Headers and store them as Strings and eventually make assertions with certain values. From the following Reponse Header I want to extract* Set-Cookie:id=xxxxxx-xxxxxxx-xxxxxx; and store it. I am using Rest Assured. Thanks!
Response Headers * Cache-Control:no-cache, no-store, must-revalidate * Connection:keep-alive * Content-Length:108 * Content-Type:image/png * Date:Wed, 22 Mar 2017 13:19:51 GMT * Expires:0 * Pragma:no-cache * Server:nginx/1.4.6 (Ubuntu) * Set-Cookie: AWSELB=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;PATH=/;DOMAIN=.xxxx.xxxxx.com;MAX-AGE=3600;VERSION=1 * Set-Cookie:id=xxxxxx-xxxxxxx-xxxxxx; Version=1; Path=/; Domain=.xxxx.xxxxx.com; Max-Age=157680000 * Set-Cookie:Session=xxxx-xxxxxx-xxxxxx-xxxxx; Version=1; Path=/; Domain=.xxxxx.xxxxxx.com; Max-Age=3600 * X-Powered-By:Xxxxxxxx/1 * X-Robots-Tag:noindex, nofollow