---
title: Comunicação do Agent
slug: aiops2/comunicacao-do-agent
description: Learn how to validate communication using GZIP compression and without compression with two practical examples. This document demonstrates the use of the curl command to send a POST request to a specific URL, including headers for Accept-Encoding, Content
docTags: 
createdAt: 2023-10-20T18:18:01.233Z
---

## Validando a comunicação por GZIP (Compressed)

```shell
curl -XPOST \
  --url https://SIMON-MASTER-NODE/sphere-sync/api/sync/ \
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Content-Encoding: gzip' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: chave' \
  --data 'Cg=='
```

## Validando a comunicação pura

```shell
curl -XPOST \
  --url https://SIMON-MASTER-NODE/sphere-sync/api/sync/ \
  --header 'Accept-Encoding: gzip, deflate' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: chave' \
  --data '{}'
```

