Listening to HTTP requests from a process

  • Thread starter Thread starter codejunkie
  • Start date Start date
C

codejunkie

Hello,

Are there any ways i can listen and log all HTTP messages from a
process on my machine. Here is my scenario. I am writing a tool, that
launches a process and then listens to any HTTP requests sent from
that process. I am interested in one such request as i have to parse
some data from that request.

I have looked into HTTP listener but HTTP listener API's do not allow
me to get specific to view messages sent from a process.

My tool is in C# so I am most interesterd in ways to do the same
using .NET. Any help to make progress will be very helpful.

Thanks
Gowri
 
Hello,

Are there any ways i can listen and log all HTTP messages from a
process on my machine. Here is my scenario. I am writing a tool, that
launches a process and then listens to any HTTP requests sent from
that process.  I am interested in one such request as i have to parse
some data from that request.

I have looked into HTTP listener but HTTP listener API's do not allow
me to get specific to view messages sent from a process.

My tool is in C# so I am most interesterd in ways to do the same
using .NET. Any help to make progress will be very helpful.

Thanks
Gowri

Hi,

Maybe I didnt understand your needs but it seems like you need a
sniffer such as http://www.wireshark.org/

M
 
Hello,

Are there any ways i can listen and log all HTTP messages from a
process on my machine. Here is my scenario. I am writing a tool, that
launches a process and then listens to any HTTP requests sent from
that process.  I am interested in one such request as i have to parse
some data from that request.

I have looked into HTTP listener but HTTP listener API's do not allow
me to get specific to view messages sent from a process.

My tool is in C# so I am most interesterd in ways to do the same
using .NET. Any help to make progress will be very helpful.

Thanks
Gowri

Hi,

You want to "sniff" the traffic of that process. This is doable, but
it imply a lot of low level work, it's much better if you use a third
party tool for that, if you search for "sniffer" you will find a good
number of them
 
Back
Top