Override HttpWebRequest

A

alan

Hi,

I am trying to write a class in C# that inherits from the
HttpWebRequest class to allow me to intercept lower level function
calls.

For example, I would like to be able to figure out how long it takes
for the DNS resolution to take place. I assume that somewhere in the
HttpWebRequest (or inside a parent object) a call takes place to
resolve DNS? I would like to override this function call to allow me to
calculate the time taken to complete this process. i.e. grab the time
before the call to resolve the DNS and grab the time when it returns.

Does anyone have any pointers as to where I should start looking?
Thanks in advance

Alan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top