Link to home
Start Free TrialLog in
Avatar of thangtbt
thangtbt

asked on

Java application to trap IE download envents

Hello,

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

Cheers,
Avatar of girionis
girionis
Flag of Greece image

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.
Here is a proxy server written in Java with source code included: http://www.geocities.com/SiliconValley/Bay/8925/jproxy.html
Native call is the only way to do...
Avatar of thangtbt
thangtbt

ASKER

No, proxy is not good for me. I need a desktop application...
You need to write a dll which will interact with IE.  That is the only option left out for you.
> 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.
> 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?.



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
>  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.
@ 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.

ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Point value raised