# How to send gzipped data in the POST request

**URL:** <https://community.postman.com/t/how-to-send-gzipped-data-in-the-post-request/4150>\
**Category:** Help Hub\
**Created:** [February 15, 2019, 4:27am UTC](https://community.postman.com/t/how-to-send-gzipped-data-in-the-post-request/4150 "2019-02-15T04:27:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![palfans](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/palfans/32/1334_2.png) [@palfans](https://community.postman.com/u/palfans)\
**Post date:** [February 15, 2019, 4:27am UTC](https://community.postman.com/t/how-to-send-gzipped-data-in-the-post-request/4150/1 "2019-02-15T04:27:18Z")

</div>

Our server app only accepts JSON request data in gzip format. When I generate gzipped binary file manually and send via Body-\>binary file, it works. But it is not able to test the collection automatically as we have to get token from the response to generate subsequent binary requests.  
I tried to eval an external JS lib, and gzip the string. But the output is an Array, rather a binary string.  
Is there an official support to generate gzipped data in Pre-req script to achieve such goal?

---

<div class="post-metadata">

**Author:** ![og-mishgun](https://avatars.discourse-cdn.com/v4/letter/o/4af34b/32.png) [@og-mishgun](https://community.postman.com/u/og-mishgun)\
**Post date:** [January 24, 2023, 7:13am UTC](https://community.postman.com/t/how-to-send-gzipped-data-in-the-post-request/4150/2 "2023-01-24T07:13:02Z")

</div>

Hello

Can somebody answer please?

---

<div class="post-metadata">

**Author:** ![cruxto](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@cruxto](https://community.postman.com/u/cruxto)\
**Post date:** [July 27, 2023, 12:15pm UTC](https://community.postman.com/t/how-to-send-gzipped-data-in-the-post-request/4150/3 "2023-07-27T12:15:52Z")

</div>

Can anyone help?? Is there no solution to this yet?

Are there no libraries in Postman that will Gzip a string?

I have to send a request with part of the request body being Gzipped.

Cheers
