×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

"Hooking" Internet Explorer's HTTP Requests

"Hooking" Internet Explorer's HTTP Requests

"Hooking" Internet Explorer's HTTP Requests

(OP)
Hello,

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.

Many thanks,

Ami Tavory

RE: "Hooking" Internet Explorer's HTTP Requests

Dear Ami,

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.

I'm not sure this is what you meant.

-pete

RE: "Hooking" Internet Explorer's HTTP Requests

(OP)
Hello,

Thanks, Pete, for the response.
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?

Many Thanks,

Ami Tavory

RE: "Hooking" Internet Explorer's HTTP Requests

Dear Ami,

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 "Net Nanny" type products work.

Obviously you can't install the DLL without the knowledge of the user.

I apologize for not knowing any of the interfaces or installation or configuration details, but they are all available at msdn.microsoft.com

Good luck
-pete

RE: "Hooking" Internet Explorer's HTTP Requests

(OP)
Hello (especially Pete),

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 "trap" all of IEs HTTP requests.
This inelegant solution is adequate for my needs.

Thanks (again, especially Palbano)

Ami Tavory

RE: "Hooking" Internet Explorer's HTTP Requests

Dear Ami,

That sound great... that's the kind of innovative thinking that provides the most useful solutions in the real world.

Keep up the good work!

-pete

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close