问题
I want to sniff a local HTTP request to an ASP.NET web application.
Is telnet an option?
How do you capture packets to a web application?
回答1:
Depending on your exact requirements, Fiddler may be sufficient.
回答2:
http://www.wireshark.org/ is a very advanced and free sniffer/protocol analyzer. I use it on our servers to monitor things from sip protocol info to raw http data. Its all you need and you can add filter rules to just get the data from certain IP etc. ie:
ip.addr == 192.168.1.1
Raw packets and headers all included.
回答3:
For ease of setup, I personally would use either the Tamper Data (https://addons.mozilla.org/en-US/firefox/addon/966) or Live HTTP Headers (https://addons.mozilla.org/addon/3829) plugin for the FireFox browser - or for a lower level solution WireShark (http://www.wireshark.org/)
回答4:
Have you tried browser plugins that allow you to do this? Firebug, etc.
回答5:
I found this in another post, it works
http://socketsniff.nirsoft-freeware.qarchive.org/_download2.html
回答6:
There are browser add-ins that can make sniffing of the HTTP requests easy:
For Internet Explorer, there is the Fiddler Web Debugger.
For Firefox, there is the Live HTTP Headers add-in.
来源:https://stackoverflow.com/questions/2630780/how-to-sniff-http-requests