REST and gzip

Jamsta1912
Tera Guru

Hello all.

I am currently working on a third party integration using REST. The third party want to compress the messages to our ServiceNow instance using gzip. Is there a particular methodology I’ll need to use to decompress the message our end, or is this handled automatically?

Thank you.

Jamie 

1 ACCEPTED SOLUTION

You can test it at your end by sending request to your endpoint by postman or rest api explorer with header

Content-Encoding as gzip

 

 

Hope this helps.

 

Regards

Ujjawal

View solution in original post

8 REPLIES 8

John Caruso
Kilo Guru

It should be handled automatically as is documented for SOAP requests. Just add the HTTP Header:

https://docs.servicenow.com/bundle/kingston-application-development/page/integrate/inbound-soap/conc...

 

Hello John

Thank you for your reply. That topic refers to SOAP rather than REST and the scenarios it covers are outbound messages, and responses to outbound messages. My query is about handling inbound REST messages, where we have no direct control over the header (as it would need to be set by the third party).

Jamie.

Hi Jamie,

 

I think servicenow will automatically accept according to encoding set by sender.

Are you facing any error while dealing with such requests?

 

Regards

Ujjawal

Hello Ujjawal

Thanks for this advice. As yet, we haven't got to the stage where the third party has been able to send any test messages, but I wanted to pre-empt any difficulties. It sounds as though we may be OK. I'm expecting to receive some test messages early this coming week, so I will update this post with the results.

Jamie