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

Example for Open File #21

Open
lovejotd opened this issue Dec 18, 2020 · 3 comments
Open

Example for Open File #21

lovejotd opened this issue Dec 18, 2020 · 3 comments

Comments

@lovejotd
Copy link

Is it possible to leverage this on opening a pcap instead of pulling from the device itself? If so, can you provide a short example?

@chmorgan
Copy link
Collaborator

For whatever reason I didn't see this comment until just now, several months later...

So if you look under UnitTest/HttpSessionWatcherTest/HttpSessionWatcherTests.cs you'll find examples of passing packets in after reading them from an on-disk capture file.

It would be helpful to have an example but maybe just a note in the README.md about how its basically the same as how PacketDotNet works could work?

@lovejotd
Copy link
Author

hmmm... I am unable to get any data in the body of the request. So when I import a pcap with a image file for example, I see the metadata, but I cannot find the bytes in the request. Is there something I am doing wrong? I followed the same process as the HttpSessionWatcherTests. Have you gotten this to work in the past? Thanks!

@chmorgan
Copy link
Collaborator

Hi @lovejotd do you have an example pcap file that reproduces the issue? The packets should be passed through the system. It's been a while since I used the library myself but I can't imagine I wouldn't be passing the packets back at the tcp level and the full http message passed at the http level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants