gzip Compressed HTTP Response in SoapUI
Why I am getting gzip compressed HTTP response in SoapUI?
If you run a HTTP request for some Website, you may get gzip compressed HTTP response back as shown in this tutorial.
1. Create a new project in SoapUI and add the following HTTP request:
TestStep Name: Bing Home Endpoint: http://www.bing.com
2. Run the request and click the "Raw" tab on the Response panel. You see the header "Content-Encoding: gzip":
HTTP/1.1 200 OK Cache-Control: private, max-age=0 Content-Length: 41882 Content-Type: text/html; charset=utf-8 Content-Encoding: gzip Vary: Accept-Encoding P3P: CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND" Set-Cookie: _SS=SID=2BCB20860FA76EF015E12B0F0E206FC5; domain=.bing.com; path=/ ... (strange characters...)
3. Click the "HTML" tab on the Response panel. You see strange characters.
4. Click the "Raw" tab on the Request panel. You see the header "Accept-Encoding: gzip,deflate":
GET http://www.bing.com/ HTTP/1.1 Accept-Encoding: gzip,deflate Host: www.bing.com Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
So the reason you are getting gzip compressed response is that SoapUI accepts gzip compression, and bing.com supports gzip compression.
See the next tutorial on how to turn off compression.
The picture below shows you gzip compressed HTTP response messages in SoapUI:
â‡’ Turn Off HTTP Response Compression in SoapUI
â‡ View Request and Response Raw Messages in SoapUI
â‡‘ Understanding SoapUI Functionalities
â‡‘â‡‘ SoapUI Tutorials
2022-03-18, 10145👍, 1💬
How to convert a date and time to a standard format? Date and time can be displayed in a number of s...
How to convert hexadecimal encoded data back to binary data (or Hex to Binary Decoding)? Hex to Bina...
How to generate date and time test values? Timestamp values are frequently needed in testing almost ...
How to find out my browser request headers? To help you to see your browser request headers, FYIcent...
How to perform UUDecode (Unix-to-Unix Decode)? UUEncode is Unix-to-Unix encoding used on Unix system...