Get the x-zip content from response and save it to zip file

Hi All,

I have a scenario where I need to get the application/x-zip content from response and save it to a zip file.

Below is the response of my api:

{
“status” : 200,
“statusText” : “”,
“httpVersion” : “”,
“cookies” : [ ],
“headers” : [ {
“name” : “Transfer-Encoding”,
“value” : “chunked”
}, {
“name” : “Server”,
“value” : “nginx”
}, {
“name” : “X-Content-Type-Options”,
“value” : “nosniff”
}, {
“name” : “Connection”,
“value” : “keep-alive”
}, {
“name” : “Pragma”,
“value” : “public”
}, {
“name” : “Content-Transfer-Encoding”,
“value” : “binary”
}, {
“name” : “Date”,
“value” : “Wed, 25 Dec 2019 15:14:23 GMT”
}, {
“name” : “X-Frame-Options”,
“value” : “SAMEORIGIN”
}, {
“name” : “Strict-Transport-Security”,
“value” : “max-age=31536000; includeSubdomains”
}, {
“name” : “Cache-Control”,
“value” : “public, must-revalidate”
}, {
“name” : “Content-Disposition”,
“value” : “attachment; filename*=UTF-8’'Zip-nscAy.zip”
}, {
“name” : “removed”,
“value” : “removed the url”
}, {
“name” : “Expires”,
“value” : “0”
}, {
“name” : “#status#”,
“value” : “HTTP/1.1 200 OK”
}, {
“name” : “X-XSS-Protection”,
“value” : “1; mode=block”
}, {
“name” : “Content-Type”,
“value” : “application/x-zip”
} ],
“content” : {
“size” : 220,
“mimeType” : “application/x-zip”,
“text” : “PK\u0003\u0004-\u0000\b\u0000\b\u0000�y�O\u0000\u0000\u0000\u0000��������\u0005\u0000\u0014\u0000Pclrk\u0001\u0000\u0010\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000+I�(QHLIIMQ(�W(�HU�K-WH��I\u0005\u0000PK\u0007\b6�^:\u001C\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u001A\u0000\u0000\u0000\u0000\u0000\u0000\u0000PK\u0001\u0002\u001E\u0003-\u0000\b\u0000\b\u0000�y�O6�^:\u001C\u0000\u0000\u0000\u001A\u0000\u0000\u0000\u0005\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0000\u0000\u0000\u0000\u0000\u0000\u0000PclrkPK\u0005\u0006\u0000\u0000\u0000\u0000\u0001\u0000\u0001\u00003\u0000\u0000\u0000k\u0000\u0000\u0000\u0000\u0000”,
“comment” : “”
}}