Simon,
Firstly I would look to turn on the logs via the protocolLogging function at level 10 to get a full trace of messages.
Secondly the client you are connecting to send the gzip encoding to, also has to accept the gzip encoding as part of the negotiations.
See if the protocolLogging output explains anything more.
LRET = protocolLogging("secureCallLog.LOG","ON","10") ... turns the logging on to level 10 to a trace file called secureCalllog.LOG
LRET = protocolLogging("secureCallLog.LOG","OFF","10") ... turns the logging off in that example
Please turn logging off, after turning it on , otherwise it will remain on.
Thanks,
------------------------------
Jonathan Smith
UniData ATS
Rocket Support
------------------------------
Original Message:
Sent: 07-28-2022 05:49
From: Simon Woolfall
Subject: Sending gzipped files via http POST
Hi all,
Just wondered if anyone has tried this or may know the answer. I have gzipped files in unix and I am trying to send these via a http POST, but having issues. I've tested via postman, so know it's something I am doing wrong.
I have added 'Content-Type application/json", and "Content-Encoding gzip" to the header, and read in the file to use as the payload, but get the following when checking the response header:
------------------------------
Simon Woolfall
Senior Software Engineer
Rocket Forum Shared Account
BELFAST GB
------------------------------