Passing ETag as Bash Variable to cURL
Passing ETag as Bash Variable to cURL I’m struggling passing my etag to cURL and getting a successful response. I get the etag with: etag=$( curl -SIXGET -u $token -H "Accept: application/json" "$api_url/domain-types/activation_run/collections/pending_changes" | awk ‘/^ETag:/ { print $2 }’ I have verified that this returns the correct etag. However the following cURL request fails: …