cancel
Showing results for 
Search instead for 
Did you mean: 

ServiceV all responses are zipped GZIP, how to send simple content of string?

SOLVED
Highlighted
Contributor

ServiceV all responses are zipped GZIP, how to send simple content of string?

Hello, no idea why, but each response created by Groovy is put in to GZip. 

My client is unable to read this kind of responses. 

Is there any way, how to disable this zipping?

My code in response is:

context.mockResponse.setResponseContent("some text here - calculated by script")

In ServiceV transaction log response view I can see the RAW response in readable form with this text. But in Headers is "Content-Encoding: gzip".

When I catch this respnse by WireShark.. I can see, that body content is compressed.. 

So is correct, because my server expect this GZIP. But I want to simulate situation, when instead of compressed data I am sending simple RAW data. This is the test of configuration. 

 

So my server send request to MOCK with Encoding: gzip and I need to send non compressed response to him.

Now is compressed.

 

Please tell me, how to turn OFF this feature of ServiceV.

Thank you in advance for your advice.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Re: ServiceV all responses are zipped GZIP, how to send simple content of string?

Hi @vikititor,

 

It looks like this question is too specific to your environment as we don't see replies from the Community. If you still have the issue, I recommend that you contact our Support Team to investigate this question. You can reach out to them here: https://support.smartbear.com/message/?prod=ReadyAPI

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

1 REPLY 1
Highlighted
Community Manager

Re: ServiceV all responses are zipped GZIP, how to send simple content of string?

Hi @vikititor,

 

It looks like this question is too specific to your environment as we don't see replies from the Community. If you still have the issue, I recommend that you contact our Support Team to investigate this question. You can reach out to them here: https://support.smartbear.com/message/?prod=ReadyAPI

---------
Tanya Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Filtering data retrieved from a DataSource

See replies!

Get data from Petstore and add it to Excel sheets

Participate!