---
sidebar_position: 2
description: Use Gzip compression  and other functions to work with HTTP-client in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, HTTP-client]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Use Gzip compression 
 Enables or disables the header for receiving data from the server in compressed form



`Function UseGzipCompression(Val Flag) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Flag | - | Boolean | &#x2714; | Flag for gzip using |

  
  Returns:  DataProcessorObject.OPI_HTTPClient - This processor object

:::tip
By default, the response from the server is requested with gzip compression
:::

:::caution
**NOCLI:** this method is not available in CLI version
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    URL = "https://bin.openintegrations.dev";
    URL = URL + "/post";

    Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

    Result = OPI_HTTPRequests.NewRequest()
        .Initialize(URL)
        .SetBinaryBody(Image)
        .UseGzipCompression(False) // <---
        .ProcessRequest("POST", False)
        .ReturnRequest();
```
 



```json title="Result"
NOT JSON: HTTPЗапрос
```
