Solved

Grab url from anybrowser? Windows C#? track visited site?

Posted on 2013-01-08
3
1,288 Views
Last Modified: 2013-01-11
I am currently playing with C# and WPF aplication on Windows. My queston is is it possible to grab the url from current browser the user is using?

Example:
I am opening internet explorer and typing www.google.com, the page loads and it shows me google.

I want to track that I have visited and then store in an database.
ANother example would be in firefox, or in google chorme?. How can I do this in Windows enviroment and the inportant queston, is it possible to do this with C#?
0
Comment
Question by:chugarah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
HaiFai earned 500 total points
ID: 38754283
Hi

If you dont know what browser is in use probably only way to make sure that you will catch url is capture ethernet packet.
There is many tools for doing that but here is few what you could try

http://sourceforge.net/projects/sharppcap/
http://www.wireshark.org/

so just capture port 80 traffic and filter urls from traffic, that should do it
0
 
LVL 1

Author Comment

by:chugarah
ID: 38758083
Hi, can I also extract the URL encrypted page like https?. Which one do you recommend for both http and https?

Thanks
0
 
LVL 1

Author Comment

by:chugarah
ID: 38767662
I used Sharpcap and it works greate in LAN enviroment. I tried using this one on my laptop and using my phone as modem and it didnt give any result.

I decided to go with 3 major browsers and apply code for getting the address. If you guys want the source code write an answer and I will post.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question