Is there any way to decompress post data in Fiddler, sent from application? Post request to server contain headers like this:
Content-type: application/x-compressed-json
Content-length: 3xx
Sent JSON data is unreadable. Any ideas are welcome!
6 Answers, 1 is accepted
Fiddler can perform any transformation you like, but in order to do this, you would have to know what exactly "x-compressed-json" is-- this is not a standard data format.
If you share a SAZ file (click Help > Send Feedback in Fiddler) containing such traffic, I can probably help.
Regards,
Eric Lawrence
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

...but in order to do this, you would have to know what exactly "x-compressed-json" is-- this is not a standard data format.
[/quote]
Tnx for the reply
This is actually GZIP encoded data stream. If I save POST data only in file and then use GZIP decompressor, I can see all data in readable JSON format. But this is not a solution, because program send this every 150 seconds
Just inside the Handlers class, add the following:
public static ToolsAction("decompressJSON")
function dodecomp(oS: Session[])
{
for (var i: int=0; i<oS.Length; i++)
{
if (oS[i].oRequest.headers.ExistsAndContains("Content-Type", "application/x-compressed-json"))
{
oS[i].utilSetRequestBody(Utilities.GzipExpand(oS[i].requestBodyBytes));
oS[i].oRequest["Content-Type"] = "application/json";
}
}
}
Save the file. You can now right-click sessions in the Web Sessions list and choose decompressJSON.
Regards,
Eric Lawrence
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Hi Arthur,
Your request body seems like octet-stream (as described in the Content-Type header), which is usually used for binary data. So it is not actually possible to decode this content as its intention is to be binary data. You can try enabling the Decode option (check attached image), which will help you when the content is encoded with gzip for example. But for octet-stream, it is not possible to decode it.
Hope this helps.
Regards,
Rosen Vladimirov
Progress Telerik
Тhe web is about to get a bit better!
The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.
