Solved

Java application to trap IE download envents

Posted on 2004-04-15
14
166 Views
Last Modified: 2010-03-31
Hello,

Is there anyway to develop a standalone Java application to catch IE download events like FlashGet and some other download managers does?

Cheers,
0
Comment
Question by:thangtbt
[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
  • 5
  • 4
  • 3
14 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 10831858
You can write a proxy that sits between the browser and the internet and filtering the traffic. Other than that you cannot twick IE with java to catch download events.
0
 
LVL 35

Expert Comment

by:girionis
ID: 10831873
Here is a proxy server written in Java with source code included: http://www.geocities.com/SiliconValley/Bay/8925/jproxy.html
0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10831884
Native call is the only way to do...
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

Author Comment

by:thangtbt
ID: 10831906
No, proxy is not good for me. I need a desktop application...
0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10831917
You need to write a dll which will interact with IE.  That is the only option left out for you.
0
 
LVL 35

Expert Comment

by:girionis
ID: 10832005
> No, proxy is not good for me. I need a desktop application...

You mean a desktop application with GUI and stuff? Other than this a proxy is a desktop application. Besides you can extend a proxy to contain GUI as well.
0
 

Author Comment

by:thangtbt
ID: 10832485
> You mean a desktop application with GUI and stuff? Other than this a proxy is a desktop
> application. Besides you can extend a proxy to contain GUI as well.

Hey, it might be interesting idea? Did you mean that proxy can act transparently between browsers and Internet in a end-user machine, filter traffic and react to certain events?

If so, it is obviously a great advance although that's not all I'm looking for 'cos I still need the location where download files are saved. That information proxies cannot catch, rite?.



0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10832524
Everything needs to pass thru proxy.  So you can find what kind of request is that and everything.  But still distrubing the data is a not a good idea at the proxy level.

Proxy is to monitor and track the requests and responses.  There is nothing related to distrubing data.  Say the file is being downloaded by the proxy and there could be high chance of data loss.

Better Idea would be interacting with the browser thru a DLL to get the things done


Regards,
Muruga
0
 
LVL 35

Expert Comment

by:girionis
ID: 10832591
>  Did you mean that proxy can act transparently between browsers and Internet in a end-user machine,
>filter traffic and react to certain events?

Yes this is what I meant, and this is some of the functionallity that a proxy provides, it filters traffic. You can extend it to react to certain events if you want, for exampel if the user accesses a specific site you can pop up a java warning or smth like this.

>  I still need the location where download files are saved.
> That information proxies cannot catch, rite?.

I am afraid you are right, you cannot do that with a proxy. Maybe if you scan the user's hard drive (since you will have the name of the file thought the proxy filtering) you will be able to find the location where it's stored.
0
 

Author Comment

by:thangtbt
ID: 10832725
@ girionis:
The java proxy package you showed is not transparent, users must setup proxy configuration in their browsers. I am afraid that developing a transparent proxy using Java is a real pain as well.

0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 10833213
You need to set up proxy configuration in the browser anyway, allproxies work that way. If you can't/don't want to do this then the only solution is to use some native code.
0
 

Author Comment

by:thangtbt
ID: 10851402
Point value raised
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

688 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