The variables specified for “-w” are not directly connected to the http header.
So it looks like you have to “parse” them on your own:
curl -I "server/some/resource" | grep -Fi etag | sed -r 's/.*"(.*)".*/\1/'
The variables specified for “-w” are not directly connected to the http header.
So it looks like you have to “parse” them on your own:
curl -I "server/some/resource" | grep -Fi etag | sed -r 's/.*"(.*)".*/\1/'