Skip to content

Instantly share code, notes, and snippets.

@salaros
Created June 12, 2023 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salaros/29f1982d3875e7c253bfb1decd4142e9 to your computer and use it in GitHub Desktop.
Save salaros/29f1982d3875e7c253bfb1decd4142e9 to your computer and use it in GitHub Desktop.
Fiddler snippets
[ContextAction("Force Decode (zlib)")]
public static void AddEncoding(Session[] oSessions)
{
for (var x = 0; x < oSessions.Length; x++){
if (oSessions[x].oRequest.headers["Content-Encoding"]=="zlib"){
oSessions[x].oRequest.headers["Content-Encoding"]="deflate";
oSessions[x].utilDecodeRequest();
}
if (oSessions[x].oResponse.headers["Content-Encoding"]=="zlib"){
oSessions[x].oResponse.headers["Content-Encoding"]="deflate";
oSessions[x].utilDecodeResponse();
}
}
FiddlerApplication.UI.actUpdateInspector(true,true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment