cancel
Showing results for 
Search instead for 
Did you mean: 

Compressing ODATA Response Data (Payload)

Former Member
0 Kudos

Dear Experts

I have a requirement of compressing the response payload which returns a huge number of records.

Tried GZIP option as a Accept-Encoding header but no luck.

Can anyone explain how this concept work? How is the zip format identified?

Note: We are in SAP GW 2.0 - SP8

Best Regards,

Vijay

Accepted Solutions (0)

Answers (2)

Answers (2)

SB9
Active Participant
0 Kudos

If gzip is defined as content type then the web server will compress the data using gzip algorithm. the browser will download the compressed data and will decompress it. If the browser does not support gzip then it will ignore the content-type and will download the data in uncompressed format.

From client - browser: accept-encoding: gzip, deflate

From web server: content-encoding: gzip

kammaje_cis
Active Contributor
0 Kudos

Vijay,

gzip is on in ABAP servers by default.

You can check the response headers of your Gateway call. It should contain

  1. content-encoding:gzip