The list of ETag values used in the If-Match and If-None-Match header has this format:
"ETag-value"[, "ETag-value"]...
Because the individual ETag values are enclosed in double quotation marks ("), in curl and PycURL commands, you need to enclose the entire header in single quotation marks ('), as shown below:
'If-None-Match: "d158a5494cf76bf2cbbe40a7aa674543",
"638c9bd8d4c2c1022c6fcac9227f5af4"'
In the If-Match and If-None-Match headers, you typically use the ETag values returned in ETag headers of prior requests, such as when you store objects. This way, for example, you can prevent your application from retrieving a version of an object that your application has already cached or from storing an object version that already exists in HCP.
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.