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.Solved2KViews0likes1CommentUpload File in Request Body with different Content-Type and Content-Encoding in SoapUi
Dear SoapUi Team, first of all thank you for the software you provide. I am impressed by the rich features implemented. Sadly I am currently struggling a bit with SoapUi, but I am sure you can help me with that. I want to send binary data as an attachment in the body of a request to a REST API. The attachment is in the body, when the Content-Type and the Content-Encoding Header have the same value, as explained here: https://sqa.stackexchange.com/questions/22224/how-do-you-send-a-zip-file-in-the-request-body-in-soapui-readyapi The thing is that I am sending gzipped Json Data in the body. That means that the correct Content-Type is application/json and the Content-Encoding is application/gzip. Why is the body empty when I set the Content-Type to application/json and the Content-Encoding to application/gzip? Thank you for your help on this. Thank you, Jonas2.7KViews0likes3Comments