Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Hooking" Internet Explorer's HTTP Requests 1

Status
Not open for further replies.

AmiTavory

Instructor
Jun 12, 2000
6
IL
Hello,<br><br>As part of an academic research simulation, I would like to have internet explorer's HTTP GET requests pass through my own functions. I would be grateful to know how this could be done.<br><br>Many thanks, <br><br>Ami Tavory<br><br>
 
Dear Ami,<br><br>Is it the HTTP conversation that you want to 'spy' on? Then you could write your own HTTP Server, or actually there are many free source code projects available for this. That would allow you to see the actual HTTP Requests sent to the Server by IE.<br><br>I'm not sure this is what you meant.<br><br>-pete<br>
 
Hello,<br><br>Thanks, Pete, for the response. <br>I aplogize for not making my question clear. We are researching a caching and prefetching system for HTTP (from the client side). In order to test performance, we need to have the Internet Explorer request its HTTP GETs from our functions, instead of its server. Writing our own HTTP server is possible, but how would we get the IE to contact it when making a GET request?<br><br>Many Thanks,<br><br>Ami Tavory<br><br>
 
Dear Ami,<br><br>I believe starting with IE4 you can write DLL's that will be loaded into the IE process. I think that is how some of the &quot;Net Nanny&quot; type products work.<br><br>Obviously you can't install the DLL without the knowledge of the user.<br><br>I apologize for not knowing any of the interfaces or installation or configuration details, but they are all available at msdn.microsoft.com<br><br>Good luck<br>-pete
 
Hello (especially Pete),<br><br>I belatedly found out that a combination of using MFCs CHTTPServer and setting a proxy on IE5 works fine. Setting the proxy's address as the local loop (127.0.0.1) and the port as the one on which the CHTTPServer object is running, allows me to &quot;trap&quot; all of IEs HTTP requests. <br>This inelegant solution is adequate for my needs.<br><br>Thanks (again, especially Palbano)<br><br>Ami Tavory
 
Dear Ami,<br><br>That sound great... that's the kind of innovative thinking that provides the most useful solutions in the real world.<br><br>Keep up the good work!<br><br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top