Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dumping plain text network traffic #1327

Open
bgrainger opened this issue Jun 5, 2023 · 0 comments
Open

Support dumping plain text network traffic #1327

bgrainger opened this issue Jun 5, 2023 · 0 comments

Comments

@bgrainger
Copy link
Member

.NET 5 added a SocketsHttpHandler.PlaintextStreamFilter Property. This allows user code to inspect the plaintext HTTP protocol traffic before it's written to the network.

Per dotnet/runtime#37915 (comment), https://github.com/wfurt/PcapStream/blob/main/src/PcapStream/PcapStream.cs is a project that writes Stream data to a file in the pcap format. This allows it to be imported into Wireshark and viewed.

We could do something similar as a workaround for dotnet/runtime#37915 not (yet) being implemented:

  • Add a MySqlDataSource property for a plaintext stream filter
  • Recommend the use of PcapStream to log the data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant