capture browser requests and responses

  • Thread starter Thread starter John Giblin
  • Start date Start date
J

John Giblin

I was trying to write a program that captures the requests and responses
from the browser. I tried using the tcplistener using the acceptsocket
method, but realize this was incorrect since I got an error, since I had a
web server running. I just want to see the requests and responses from IE,
much like web application stress tool, when you are recording a script.
First, I wanted to know how IE works with and a webserver running on your
machine and also how to hook into IE to see the activity.

thanks, John
 
John,

There are no easy hooks into IE in order to see the request/response
patters in IE. IE uses COM monikers to download content from websites.
These monikers use the WinInet API functions to implement the functionality
for the http/https/gopher/ftp schemes. WinInet, in turn, is the
implementation of the defined RFC specs for those protocols.

While COM monikers do provide a mechanism to hook into them, what is
needed to establish those hooks is not exposed through IE.

Your best bet is to do what you are doing, sniffing the packet once it
leaves IE, and before it goes out on the network.

Hope this helps.
 
Back
Top