Sending Compressed Request from Browser to API server
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 ?