My Products
Help
adrianm
PARTNER

Response compression does not work with batch

by adrianm

This request

POST https://integration.visma.net/API/controller/api/v1/$batch HTTP/1.1
Accept: application/json
Authorization: Bearer <hidden>
ipp-application-type: Visma.net Financials
ipp-company-id: <hidden>
Content-Type: multipart/mixed; boundary="dd0ebe69-139d-4cc4-911c-96bb30e21b16"
Host: integration.visma.net
Content-Length: 374
Connection: Keep-Alive

--dd0ebe69-139d-4cc4-911c-96bb30e21b16
Content-Type: application/http; msgtype=request
GET /api/v1/salesordertype/SO HTTP/1.1
Host: integration.visma.net

--dd0ebe69-139d-4cc4-911c-96bb30e21b16
Content-Type: application/http; msgtype=request
GET /api/v1/salesorder/SO/2000955 HTTP/1.1
Host: integration.visma.net
--dd0ebe69-139d-4cc4-911c-96bb30e21b16--

Works fine, but if I add "Accept-Encoding: gzip, deflate" the response is corrupted (from fiddler)

CorruptBatchResponse.png

gzipped content starts with magic marker 0x1f, 0x8b which is not present here. 0xef, 0xbf, 0xbd is � so it looks like you utf-8 encode the gzipped part

1 REPLY 1

by Yıldırım

Hi, we'll check it out.