Pending Review
Last Updated: 13 May 2019 15:58 by EricLaw
Jan
Created on: 10 May 2019 10:03
Type: Feature Request
1
Abilitiy to export all messages sent and receive over a websocket

Hi,

Websocket monitoring is such a cool feature in fiddler. What i´m missing is the possibility to export all messages sent and received via the websocket.

In Wireshark i would associate that functionality with "Follow TCP stream".

 

The reason behind:

I want to search within the websocket communication for certain id´s patterns etc. This is currently not possible as every message is handled separately in fiddler.

What i would expect:

Beeing able to export selected or all messages in the WebSocket pane. (one could think of adding "received","sent" and a timestamp between the messages with a certain beginning to be able to filter those messages later.)

 

I would call the fact that:

- "Save" - "Selected Sessions" "as Text or ZIP" is only saving the websocket HTTP upgrade request together with the response but without the websockets payload

 a bug.

 

Or i am missing something. Comments welcome...

 

Jan

4 comments
EricLaw
Posted on: 13 May 2019 15:58

You said: "- "Save" - "Selected Sessions" "as Text or ZIP" is only saving the websocket HTTP upgrade request together with the response but without the websockets payload" a bug.

I replied that this does not seem to be the case. You then changed the subject: "saving the websocket as saz and reopening this file doesn´t help me. The messages are again dedicated single messages..."

...so I can't tell if you're acknowledging that this works as expected, but doesn't meet your other needs?

>So also within the script engine a dedicated output is a missing feature...

FiddlerScript exposes the full power of the .NET framework; there's no reason why you'd have to limit yourself to just writing to the Log. You could write the data directly to a text file, or a database, or any other data format you'd like.

Jan
Posted on: 13 May 2019 14:23

Hi Eric,

saving the websocket as saz and reopening this file doesn´t help me. The messages are again dedicated single messages...

I would just like to have the plain text content as plain text in one file and not dedicated messages.

I cannot search within the websocket communication.

 

Copy Paste plain text would also be sufficient.

I helped me out with

static function OnWebSocketMessage(oMsg: WebSocketMessage) {
  if(oMsg.IsOutbound)
    FiddlerApplication.Log.LogString("OUT\r\n" + oMsg.PayloadAsString());
  else
    FiddlerApplication.Log.LogString("IN\r\n" + oMsg.PayloadAsString());
}

in the fiddler script. But the main log is filled with other stuff. So also within the script engine a dedicated output is a missing feature...

Jan

Attached Files:
Eric
Posted on: 11 May 2019 22:01

The Session Archive Zip file format contains the raw websocket messages; when you save the WebSocket session in the Session List, you can reopen the SAZ file, double-click the WebSocket session, and see the raw messages.

I've verified this across many builds; if you're seeing something else, please share repro steps and/or a SAZ file. Thanks!

Eric
Posted on: 11 May 2019 21:58
In what format, specifically, would you want to export these sessions? Into what would you import the result?