I have the following command which gives me value of Set-Cookie header:
curl --head http://www.stackoverflow.com | sed -n "/^Set-Cookie:/p" | cut -c 13-
Output:
prov=abed7528-7639-e2e3-39a0-361a6d3f7925; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly
I need this output in quotes, like this:
"prov=abed7528-7639-e2e3-39a0-361a6d3f7925; domain=.stackoverflow.com; expires=Fri, 01-Jan-2055 00:00:00 GMT; path=/; HttpOnly"