Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

Sending Compressed Request from Browser to API server

  • Нет ответов
  • 0 имеют эту проблему
  • 1 просмотр
more options

Hi developers, I wanted to send compressed requests (i.e raw JSON to Gzip) from firefox browser to API server which can understand both compressed and un-compressed requests. For same, I am setting up content-encoding header as gzip, will the browser automatically compress the raw requests just by adding the content-encoding request header or do I need to manually compress the requests using some code snippet ?

Hi developers, I wanted to send compressed requests (i.e raw JSON to Gzip) from firefox browser to API server which can understand both compressed and un-compressed requests. For same, I am setting up content-encoding header as gzip, will the browser automatically compress the raw requests just by adding the content-encoding request header or do I need to manually compress the requests using some code snippet ?