Every time I visit a new website in a browser I would like to pass the URL I visited to a Java function that will be running in the background. What would be the best way to go about this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use Fiddler (Windows only). You can subscribe to events like HTTP requests, and respond in an appropriate way – calling the Java function in your example.
If you only want to respond to websites that you visit with the browser, you can check the user-agent HTTP header.