locked
way to show activities from IE when browsing a website RRS feed

  • Question

  • User-1392235324 posted

    Is there a way to show activities that send/receive from IE/Firefox by using C#/VB/VBScript?

    Monday, December 15, 2014 4:24 AM

Answers

  • User753101303 posted

    Ah this is the kind of "monitoring" you were talking about previously?

    You would have to check the page and see which fields it have to make an HTTP request etc... By actually it seems that this site doesn't fit your needs. Usually this kind of site does provide a simple API to do this kind of things without having to "hack" the site.

    You double checked then don't have a developper or API section? If they don't provide this it is harder (need to reverse engineer what to do), error prone (ie could break if the site is updated) and perhaps not a fair use (ie unwanted from the site owner else they would provide an API). For this last reason alone, I never automate a web site.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 16, 2014 12:59 PM

All replies

  • User753101303 posted

    Hi,

    IIS allows to log http requests http://technet.microsoft.com/en-us/library/cc754631(v=WS.10).aspx if this is what you meant with "activities". Else try to give some more context or explain your final goal.

    Monday, December 15, 2014 4:40 AM
  • User-1392235324 posted

    I want to monitor HTTP/HTTPS traffic with C#

    Monday, December 15, 2014 11:59 AM
  • User-760709272 posted

    asp.net isn't a suitable technology to do this, you need a windows service or a desktop app.  asp.net code only runs while the page is being rendered, it is no good for tasks like monitoring traffic.

    Monday, December 15, 2014 12:09 PM
  • User753101303 posted

    Please be explicit, "monitor" is quite vague. Also it's a bit unclear if you meant implicitly that the IIS log doesn't fit your needs (and more importantly why it doesn't fit your needs). You can also log custom information: http://www.iis.net/learn/extensions/advanced-logging-module/advanced-logging-for-iis-custom-logging

    If you want to prevent DoS attack you have modules you can add to IIS to do that...

    Or if you want a firewall or proxy, you have software doing that...

    For now it doesn't seems something that requires doing that yourself and you likely have tools doing that already (but we have first to understand what is exactly the *final* goal, "monitoring" is not a goal but a way to reach some goal).

    Edit: Ah or as pointed by someone else do you meant that you want to "monitor" the client side traffic for example using http://www.telerik.com/fiddler or whatever? Then you should post to a Windows forum and once again depending on what you want maybe configure browsers in your company so they are all going through a proxy of some kind (if you want to prevent users to access forbidden sites or whatever...)

    Monday, December 15, 2014 12:15 PM
  • User-1392235324 posted

    I got Tamper Data for Firefox browser which gives me parameters that pass through a website. This helped me, because I have an account on STC site that gives me 25 free SMS weekly; but I want to make a page on my site to send these SMSs.

    Until now I cannot solve this problem,,,

    https://my.stc.com.sa/wps/portal/stconline/en/login

    This link is good but!!!!!

    C# - Log in to Website Programmatically How to log in to a website with code

    http://www.dreamincode.net/forums/topic/152297-c%23-log-in-to-website-programmatically/

    Tuesday, December 16, 2014 5:21 AM
  • User753101303 posted

    Ah this is the kind of "monitoring" you were talking about previously?

    You would have to check the page and see which fields it have to make an HTTP request etc... By actually it seems that this site doesn't fit your needs. Usually this kind of site does provide a simple API to do this kind of things without having to "hack" the site.

    You double checked then don't have a developper or API section? If they don't provide this it is harder (need to reverse engineer what to do), error prone (ie could break if the site is updated) and perhaps not a fair use (ie unwanted from the site owner else they would provide an API). For this last reason alone, I never automate a web site.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 16, 2014 12:59 PM