Page view counter
Monitor http traffic
Last post 08-11-2008 5:13 AM by Dastei. 6 replies.
Sort Posts:
08-08-2008 1:19 PM
Monitor http traffic

Can I monitor the http traffic on the page where a silverlight control is embedded? I want to do this with SIlverlight without writing any BHO or ActiveX controls for IE to do this... Is this possible with Silverlight?

Thanks

sahina

Loading...
Joined on 12-11-2004
New Jersey
Posts 6
08-08-2008 3:14 PM
Re: Monitor http traffic

I think there is an inherent "disconnect" around what you are asking to do. Remember, when you request a web page that hosts Silverlight content, Silverlight runs on the client in your browser, not on "the server" -- which is where you would be monitoring traffic. There are lots of tools to monitor HTTP traffic and log it including free ones like Google Analytics. But unless you only want Silverlight to retrieve and display such statistics, it is running in the "wrong place" to accomplish what you want.

[C# MVP]
Unblog|WebSite|IttyUrl

pbromberg

Loading...
Joined on 06-25-2002
Orlando FL
Posts 238
08-08-2008 6:05 PM
Re: Monitor http traffic

Hi Peter,

I apologize, I was not clear. I am trying to monitor the client traffic, not the server traffic. For a web page to be rendered, there will be multiple requests to various resources on page; such as images, css files, javascript files, etc... I want to monitor these requests before the page is rendered. I know that the Silverlight object is rendered as part of the page after all these resources are requested and the final html is rendered in browser.

I don't think what I am trying to do is possible with Silverlight but I wanted to ask anyway. May be I could get a pointer in the right direction.

The proxies such as Firebug (Firefox) and Web Development Helper (IE) does this but they are ActiveX (not sure how Firebug works in Firefox) controls. How can I achieve this kind of traffic http listening on a browser level?

sahina

Loading...
Joined on 12-11-2004
New Jersey
Posts 6
08-08-2008 6:25 PM
Marked as Answer
Re: Monitor http traffic
Silverlight not gonna help you. You would need to write a browser plug-in or rather plugins since different browsers use different plug-in architecture.
sl.ayer

Loading...
Joined on 06-02-2008
Silicon Valley
Posts 35
08-09-2008 1:32 AM
Re: Monitor http traffic

hello,

       you may know fire bug is open source! im just remind you again... if you want to do such thing go through the fire bug source you will get the idea behind it.

open source fire bug link below

http://code.google.com/p/fbug/

Hope this helps
Md.Nahidul Kibria
http://nahidulkibria.blogspot.com

nahidul

Loading...
Joined on 07-28-2008
Bangladesh,Dhaka
Posts 21
08-11-2008 3:57 AM
Marked as Answer
Re: Monitor http traffic

Hello, the only solution without extra plug-in is to monitor the requests on the server, store the information in a session variable, and use a web service to return the data to your Silverlight application.

For example, if you're using ASP.NET, you can write some code in global.asax file to monitor every request.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.

Yi-Lun Luo - MSFT

Loading...
Joined on 10-29-2007
Posts 2,688
08-11-2008 5:13 AM
Marked as Answer
Re: Monitor http traffic

 I use Fiddler to watch my http traffic. Its a small .Net tool that works as proxy in every browser

 

Regards,
David Steinkopff

Dastei

Loading...
Joined on 07-23-2008
Rosenheim, Bavaria, Germany
Posts 20
Microsoft Communities